2016-09-11 6 views
0

ライブラリの解決を試みるときcom.roughike:bottom-bar:1.4.0.1エラーが発生する ヒントがあれば行う? build.gradle:エラー解決:com.roughike:bottom-bar:1.4.0.1

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "24" 
    defaultConfig { 
     applicationId "com.maleki.royalvas.rbottom" 
     minSdkVersion 14 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
     testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 
    } 
    buildTypes { 
     release { 
      minifyEnabled false 
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
     } 
    } 
} 

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.roughike:bottom-bar:1.4.0.1' 
    compile 'com.android.support:appcompat-v7:24.1.1' 
    testCompile 'junit:junit:4.12' 
} 

EROR:

Error:(26, 13) Failed to resolve: com.roughike:bottom-bar:1.4.0.1 
+0

古いバージョンを使用する必要があるのは何ですか? これを代わりに試してください:com.roughike:bottom-bar:2.0.2 ' –

+0

エラー:(26,13)解決に失敗しました:com.roughike:bottom-bar:2.0.2 –

+0

あなたのグレードファイルhttps:/ /cdn.mxpnl.com/cache/9c6b87fa232699502a8eaa2e4dba0dfc/images/help/android-sync-gradle.png –

答えて

0

内部のあなたのトップbuild.gradle(アプリモジュールではありませんこれは1、プロジェクトモジュールに見つかります)、で、これを試してみてくださいallprojectsjcenter()を追加します。 だからこのようになります

allprojects { 
    repositories { 
     jcenter() 
    } 
} 

プロジェクトを同期します。

関連する問題