When i use target SDK 26 then my application is crashed or close in android Studio
When i use target SDK 26 then my application is crashed or close in android Studio
When I use target SDK 26 then my application is crashed or close in mobile.
Earlier when I used targetSdkVersion 21 and compileSdkVersion 21, the application was running fine when I did targetSdkVersion 26 and compileSdkVersion 26 then my application was shutting down
My build.gradle code
compileSdkVersion 26
buildToolsVersion '27.0.3'
defaultConfig
applicationId "purehd.record.pro"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
dependencies
implementation 'com.android.support:cardview-v7:21.0.+'
implementation 'com.android.support:recyclerview-v7:21.0.+'
implementation 'com.melnykov:floatingactionbutton:1.1.0'
implementation 'com.jpardogo.materialtabstrip:library:1.0.6' implementation 'com.android.support:appcompat-v7:21.0.3'
Error is this
Caused by: java.lang.IllegalArgumentException: AppCompat does not
support the current theme features: { windowActionBar: false,
windowActionBarOverlay: false, android:windowIsFloating: false,
windowActionModeOverlay: false, windowNoTitle: false
please solve this problem
Earlier when I used targetSdkVersion 21 and compileSdkVersion 21, the application was running fine when I did targetSdkVersion 26 and compileSdkVersion 26 then my application was shutting down
– aspdotnet trick
Sep 16 '18 at 6:29
any logcat messages?
– navylover
Sep 16 '18 at 6:33
post your logcat messages
– DarShan
Sep 16 '18 at 6:37
sir logcat message too long
– aspdotnet trick
Sep 16 '18 at 6:43
1 Answer
1
keep windowActionBar
to false
and add windowNoTitle
as well and set it to true.
windowActionBar
false
windowNoTitle
ie
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
Change
implementation 'com.android.support:cardview-v7:21.0.+'
implementation 'com.android.support:recyclerview-v7:21.0.+'
to
implementation 'com.android.support:cardview-v7:26.0.+'
implementation 'com.android.support:recyclerview-v7:26.0.+'
Sir, I did this even though Theme.AppCompat.NoActionBar I am having problems
– aspdotnet trick
Sep 16 '18 at 6:59
in dependencies show red color
– aspdotnet trick
Sep 16 '18 at 7:21
compileSdkVersion 26 buildToolsVersion '27.0.3' defaultConfig applicationId "purehd.record.pro" minSdkVersion 16 targetSdkVersion 26 versionCode 1 versionName "1.0"
– aspdotnet trick
Sep 16 '18 at 7:21
got 17 error error: cannot find symbol method findViewById(int)
– aspdotnet trick
Sep 16 '18 at 8:09
error: cannot find symbol class ActionBarActivity
– aspdotnet trick
Sep 16 '18 at 8:10
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy
post your error as well
– Anubhav Gupta
Sep 16 '18 at 6:23