Solved: You need to use a Theme.AppCompat theme (or descendant) with this activity

One of those types of annoying errors that'll have you do a lot of work for something that's actually a 2 second job and no real effort.

If you find yourself with an app that crashes with no output, open logcat from visual studio and you'll notice that around the time of our app crash, there's a lot that states 'You need to use a Theme.AppCompat theme (or descendant) with this activity'. At first you'll start to look into the application and where you might change the theme, but in reality, if we go down that route, it could end up changing your entire app look and feel, something which will take a long time to put back to normal.

It turns out that the fix for this issue is actually to clean the Android solution and run again as normal, this will solve the crash and your error will disappear from logcat.

If you run into any issues after cleaning and running where this error is still present, comment below.

My particular setup when I got this error was as follows:

Minimum Android Version: 4.2 (API 17 - Jelly Bean)

Target Android Version: 7.0 (API 24 - Nougat)

Published at

Tags: Android,Xamarin

Luke Alderton


Thanks Bro, this helped. Glad you posted this because I was stranded.
Post a comment
Sit tight...
We're adding your comment.
Thank you.
Your comment has been added.
There's been a problem.
Please try again later.
Share with
Latest Comments
By tiky on JQuery Unobtrusive Validation for dynamically created elements
16 Aug 2019, 13:10 PM
By Gerry on Replacing the Xamarin Header/Navigation bar with a custom view/template
11 Jul 2019, 17:12 PM
By steve choi on Xamarin Forms multiple instances of same app open
30 Jun 2019, 09:09 AM
By esrgr on JQuery Unobtrusive Validation for dynamically created elements
11 Jun 2019, 06:01 AM
By annualmars on Raspberry Pi - Running Java app on Raspbian
10 May 2019, 15:48 PM
By Shahriar H. Razi on Xamarin Forms - Working with threads
7 May 2019, 09:25 AM
By Person on MVC forms in Umbraco
30 Apr 2019, 13:33 PM
By christopher on How to add a Xamarin Forms Loading Screen/Overlay
27 Mar 2019, 11:59 AM
App Development
Game Development
Web Development