Nithish Naidu
Nithish Naidu

Reputation: 23

How do I resolve "failed to find style 'bottomnavigationstyle'

I've been trying to add BottomNavigationView to my Activity but I've got a rendering problem which says :

"failed to find style 'bottomnavigationstyle' in current theme".

I've added this dependency (didn't throw any error, so I'm assuming it exists)

implementation 'com.android.support:design:28.0.0'

Can anyone help me out with this?

Upvotes: 0

Views: 54

Answers (2)

Nithish Naidu
Nithish Naidu

Reputation: 23

I had to upgrade my gradle. It works now!

Upvotes: 1

Parjapati
Parjapati

Reputation: 43

You can try after updating your android studio and supported libraries. My gradle:app config are:-

implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:appcompat-v7:27.0.2'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:support-v4:27.1.1'
    implementation 'com.android.support:design:27.1.1'
    //implementation 'com.google.android.gms:play-services-plus:15.0.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'

    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.android.support:recyclerview-v7:27.0.2'

Upvotes: 0

Related Questions