Google 示例通用音乐播放器构建错误
Google example universal music player build error
下载并导入示例后,我遇到了这样的构建错误
https://github.com/googlesamples/android-UniversalMusicPlayer
Error:A problem occurred configuring project ':mobile'.
Could not resolve all dependencies for configuration ':mobile:_debugCompile'.
Could not find com.google.android.support:wearable:1.2.0.
Searched in the following locations:
https ://jcenter.bintray.com/com/google/android/support/wearable/1.2.0/wearable-1.2.0.pom
https ://jcenter.bintray.com/com/google/android/support/wearable/1.2.0/wearable-1.2.0.jar
file:/Users/Jieyi/Downloads/android-UniversalMusicPlayer-master/mobile/libs/wearable-1.2.0.jar
file:/Users/Jieyi/Downloads/android-UniversalMusicPlayer-master/mobile/libs/wearable.jar
file:/Users/Jieyi/Library/Android/sdk/extras/android/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.pom
file:/Users/Jieyi/Library/Android/sdk/extras/android/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.jar
file:/Users/Jieyi/Library/Android/sdk/extras/google/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.pom
file:/Users/Jieyi/Library/Android/sdk/extras/google/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.jar
Required by:
android-UniversalMusicPlayer-master:mobile:unspecified
确保您已经通过 SDK 管理器安装了 Google 存储库,并确保它是最新的。在那里可以找到 com.google.android.support:wearable
的 1.2.0 版。鉴于您的错误,我的猜测是您已经安装了它,但它不是最新的。
下载并导入示例后,我遇到了这样的构建错误 https://github.com/googlesamples/android-UniversalMusicPlayer
Error:A problem occurred configuring project ':mobile'.
Could not resolve all dependencies for configuration ':mobile:_debugCompile'.
Could not find com.google.android.support:wearable:1.2.0.
Searched in the following locations:
https ://jcenter.bintray.com/com/google/android/support/wearable/1.2.0/wearable-1.2.0.pom
https ://jcenter.bintray.com/com/google/android/support/wearable/1.2.0/wearable-1.2.0.jar
file:/Users/Jieyi/Downloads/android-UniversalMusicPlayer-master/mobile/libs/wearable-1.2.0.jar
file:/Users/Jieyi/Downloads/android-UniversalMusicPlayer-master/mobile/libs/wearable.jar
file:/Users/Jieyi/Library/Android/sdk/extras/android/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.pom
file:/Users/Jieyi/Library/Android/sdk/extras/android/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.jar
file:/Users/Jieyi/Library/Android/sdk/extras/google/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.pom
file:/Users/Jieyi/Library/Android/sdk/extras/google/m2repository/com/google/android/support/wearable/1.2.0/wearable-1.2.0.jar
Required by:
android-UniversalMusicPlayer-master:mobile:unspecified
确保您已经通过 SDK 管理器安装了 Google 存储库,并确保它是最新的。在那里可以找到 com.google.android.support:wearable
的 1.2.0 版。鉴于您的错误,我的猜测是您已经安装了它,但它不是最新的。