我正在创建一个BottomBar
菜单,但是当我尝试导入OnMenuTabClickListener
时我com.roughike.bottombar.OnMenuTabClickListener
收到错误,其中OnMenuTabClickListener
无法解析符号'。另一个错误是在以下代码行中,您还得到“无法解析符号”:
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'