3
我在嘗試構建Android應用程序時遇到了travis中的這個錯誤。Travis CI Android Play服務錯誤
> Could not find com.google.android.gms:play-services-games:8.4.0.
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.pom
https://jcenter.bintray.com/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.jar
https://maven.fabric.io/public/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.pom
https://maven.fabric.io/public/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.jar
file:/usr/local/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.pom
file:/usr/local/android-sdk/extras/android/m2repository/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.jar
file:/usr/local/android-sdk/extras/google/m2repository/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.pom
file:/usr/local/android-
sdk/extras/google/m2repository/com/google/android/gms/play-services-games/8.4.0/play-services-games-8.4.0.jar
這裏是.travis.yml文件:
language: android
android:
components:
- tools
- build-tools-23.0.3
- android-23
- extra-google-google_play_services
- sys-img-armeabi-v7a-android-23
- extra-android-m2repository
這裏是的build.gradle文件
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.google.android.gms:play-services-games:8.4.0'
compile('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true;
}
好像特拉維斯應該能夠找到發揮服務相依。 發生了什麼事?