Usama Fayyaz
Usama Fayyaz

Reputation: 105

Failed to load AppCompat ActionBar constraints layout Android Studio 3.1.3

This was my first time using Android studio and I don't know what are those errors mean and i saw many solution include change appcomat to alpha1 and change theme into base.theme and many but no one is working

Render Problem "Failed to find style 'coordinatorLayoutStyle' in current theme Tip: Try to refresh the layout. "

Gradle Scripts>build.gradle

dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0-rc01' implementation 'com.android.support.constraint:constraint-layout:1.1.2' implementation 'com.android.support:design:28.0.0-rc01' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' }

res>values>style.xml style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar" @color/colorPrimary @color/colorPrimaryDark @color/colorAccent

enter image description here Image 1

enter image description here Image 2

Upvotes: 4

Views: 773

Answers (3)

SkypeDogg
SkypeDogg

Reputation: 1040

Change Base.Theme.AppCompat.Light.DarkActionBar to Theme.AppCompat.Light.DarkActionBar. Hope it will work.

Upvotes: 0

Boris Van Leuven
Boris Van Leuven

Reputation: 21

These are my dependenceis en it works fine for me

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:cardview-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'android.arch.core:runtime:1.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.firebaseui:firebase-ui-firestore:4.1.0'
implementation 'com.android.support:recyclerview-v7:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
compile 'com.google.firebase:firebase-core:16.0.0'
apply plugin: 'com.google.gms.google-services'

}

Upvotes: 0

Imran Sk
Imran Sk

Reputation: 327

Open Your build.gradle(Module: app)

Write

implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'

instead of

implementation 'com.android.support:appcompat-v7:28.0.0-rc01'

Hope it will Help You

Upvotes: 1

Related Questions