2017-07-28 12 views
0

LocationLayerプラグインをグラデーションファイルに含めるとエラーが発生します。 トラフィックプラグインとビルディングプラグインは正常に動作します。Mapbox:LocationLayerプラグインをグラデルで追加します

エラー:

Failed to resolve: android.arch.lifecycle:extension:1.0.0-alpha3 

Failed to resolve: android.arch.lifecycle:runtime:1.0.0-alpha3 

build.gradle:these instructionsパー

repositories { 

mavenCentral() 

} 

dependencies { 

    //Mapbox 
    compile('com.mapbox.mapboxsdk:mapbox-android-sdk:[email protected]') { 
     transitive = true 
    } 

    //Navigation 
    compile 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.3.1' 
    //Location layer 
    compile 'com.mapbox.mapboxsdk:mapbox-android-plugin-locationlayer:0.1.0' 
    //Google Play Location Service 
    compile 'com.google.android.gms:play-services-location:11.0.2' 
    //Geolocation 
    compile 'com.mapbox.mapboxsdk:mapbox-android-ui:2.1.3' 

    compile fileTree(include: ['*.jar'], dir: 'libs') 
    androidTestCompile('com.android.support.test.espresso:espressocore:2.2.2', { 
     exclude group: 'com.android.support', module: 'support-annotations' 
    }) 
    compile 'com.android.support:appcompat-v7:25.3.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    testCompile 'junit:junit:4.12' 
} 

答えて

4

は、あなたがあなたのrepositoriesからmaven { url 'https://maven.google.com' }を追加し、Gradleのをリフレッシュしてみてくださいだろうか?基本的には次のようになります。

allprojects { 
    repositories { 
     jcenter() 
     mavenCentral() 
     maven { url 'https://maven.google.com' } 
    } 
} 
+0

はい!どうもありがとう。 – Dave

関連する問題