1

我正在创建一个菜单,但是当我尝试导入时BottomBar出现错误,提示“无法解析符号”。另一个错误是在以下代码行中,您还会得到“无法解析符号”:OnMenuTabClickListenercom.roughike.bottombar.OnMenuTabClickListenerOnMenuTabClickListener

mBottomBar = BottomBar.attach(this, savedInstanceState);
    mBottomBar.setItems(R.menu.bottombar_menu);
    mBottomBar.setOnMenuTabClickListener(new OnMenuTabClickListener() {
  ....

我的 build.gradle :

android {
compileSdkVersion 24
buildToolsVersion "25.0.1"

defaultConfig {
    applicationId "faster.app.name.kga"
    minSdkVersion 15
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), '     proguard-rules.pro'
    }
}
 compile fileTree(dir: 'libs', include: ['*.jar'])
  testCompile 'junit:junit:4.12'
  compile 'com.android.support:appcompat-v7:24.2.1'
  compile 'com.ncapdevi:frag-nav:1.0.3'
  compile 'com.roughike:bottom-bar:1.3.9'
4

0 回答 0