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






post your error as well

– Anubhav Gupta
Sep 16 '18 at 6:23






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

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Crossroads (UK TV series)

ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế