我该如何解决“找不到样式'bottomnavigationstyle'

时间:2018-10-19 13:29:39

标签: android gradle android-gradle

我一直在尝试将BottomNavigationView添加到我的活动中,但是出现了显示问题,提示:

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

我添加了此依赖项(没有引发任何错误,所以我假设它存在)

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

有人可以帮我吗?

2 个答案:

答案 0 :(得分:1)

我不得不升级我的gradle。现在可以使用!

答案 1 :(得分:0)

您可以在更新android studio和支持的库后尝试。 我的gradle:app配置是:-

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'
相关问题