Linked Questions
149 questions linked to/from You need to use a Theme.AppCompat theme (or descendant) with this activity
4
votes
2
answers
25k
views
"You need to use a Theme.AppCompat theme (or descendant) with this activity." [duplicate]
I am new to Android programming and I am running into a simple XML issue. I am in the process of trying to make one of my empty activities into a fullscreen activity. I tried adding this line of code
...
0
votes
1
answer
7k
views
Change from Activity to AppCompatActivity [duplicate]
I changed from Activity to AppCompatActivity.
Added this to gradle:
dependencies {
compile "com.android.support:appcompat-v7:23.0.0"
}
but my app is crashing. The reason for the change is that ...
1
vote
1
answer
4k
views
How to implement an alert dialog in androidX [duplicate]
I have migrated my project to androidX, and I want to implement an alert dialog with positive and negative feedback from the user.
I am using this code:
AlertDialog.Builder builder1 = new ...
3
votes
2
answers
2k
views
AlertDialog inside BasicActivity doesn't work Theme.AppCompat [duplicate]
I have a BasicActivity and I want to show an AlertDialog when the user click on the Floating Action Button.
When I clock on the FAB: the app stops with this error:
java.lang.IllegalStateException: ...
-3
votes
1
answer
6k
views
"Unfortunately app has stopped working " Android Studio [duplicate]
Please i am trying to change my launcher Activity to an authentication Activity i just developed using twitter digits, i already made the necessary adjustment in my android manifest and java code but ...
0
votes
1
answer
4k
views
Theme Error - You need to use a Theme.AppCompat theme (or descendant) with this activity [duplicate]
I am running across the following error while launching my app:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.shantanu.fireaudit, PID: 24098
java....
3
votes
1
answer
5k
views
Hello World android app crashes on startup [duplicate]
So I'm trying to use Android Studio for a class project but making even just a blank activity which should display "HelloWorld" crashes when I try starting it and I don't know why. I don't know how to ...
-3
votes
3
answers
517
views
Android app crashing - unknown reason [duplicate]
I am a beginner and have been using treehouse to learn. I am very early in the course and suddenly started getting a crash message when I start the app. I am unsure what is happening. I have posted ...
-1
votes
1
answer
1k
views
Android Studio giving me Rendering Problems "You need to use a Theme.AppCompat theme (or descendant with the design library" [duplicate]
Picture below: (Android Studio won't even let me copy the text)
I made another app before this and it worked well. I then made a new project and started getting errors like this one for no reason, ...
2
votes
2
answers
423
views
How to make semi-transparent layout? [duplicate]
I am trying to make semi-transparent layout but doesn't work, can someone help me with this ?
Here is my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://...
-1
votes
1
answer
764
views
Error while running app in android studio [duplicate]
I am new Android developer and I am facing below error while running my application in my device. Can anyone please help me regarding below error. Your help would be appreciated.
E/AndroidRuntime: ...
-3
votes
1
answer
505
views
When to use android:Theme.Material.Light [duplicate]
i have tried to use android:Theme.Material.Ligh in my values-v21/styles.xml and my activity extends AppCompatActivity, which android didnt allow and got error saying 'IllegalStateException:You need to ...
-1
votes
3
answers
389
views
Binary XML file line #73: Error inflating class Button [duplicate]
This issue has been an ache for me and i'm not entirely sure what's causing it any help would be appreciated.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.tencil/com....
1
vote
0
answers
230
views
API LEVEL 21: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity [duplicate]
My Project involves use of navigation drawer and Dialog Box.
I am using toolbar instead of ActionBar.
It was working fine on API Level 16.
I am migrating it to API Level 21. But it is showing the ...
0
votes
1
answer
187
views
Showing an activity as a dialog [duplicate]
Here is the activity that i want to be a dialog :
public class TrainerBookingDialogActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
...