Gradle 错误 'Unable to resolve dependency' SDK Amadeus 在 Android Studio 上
Gradle error 'Unable to resolve dependency' SDK Amadeus on Android Studio
我目前正在尝试使用 Amadeus API (https://github.com/amadeus4dev/amadeus-android) 的 Kotlin SDK。
我正在使用 Android Studio,所以我需要在 Gradle 中添加 implementation "com.amadeus:amadeus-android:0.0.2"
。
但是由于 Amadeus 的原因同步失败了。
显示的错误如下:
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:trip:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:trip:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:trip:unspecified
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:air:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:air:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:air:unspecified
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:base:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:base:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:base:unspecified
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:hotel:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:hotel:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:hotel:unspecified
Gradle、Android Studio 和 Kotlin 版本都是最新的。
我尝试了一个新项目,但我仍然有同样的错误。
有什么办法可以解决这个问题吗?还是来自 SDK 本身?
谢谢!
你说得对,0.0.2版本有问题。它已被修复并重新部署(在 JCentral 和 MavenCentral 上)。您现在可以使用 amadeus-android 版本 0.0.4。
implementation 'com.amadeus:amadeus-android:0.0.4'
请注意 Android SDK 仍处于测试版。
我目前正在尝试使用 Amadeus API (https://github.com/amadeus4dev/amadeus-android) 的 Kotlin SDK。
我正在使用 Android Studio,所以我需要在 Gradle 中添加 implementation "com.amadeus:amadeus-android:0.0.2"
。
但是由于 Amadeus 的原因同步失败了。
显示的错误如下:
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:trip:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:trip:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:trip:unspecified
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:air:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:air:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:air:unspecified
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:base:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:base:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:base:unspecified
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not find Amadeus Android:hotel:unspecified
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not find Amadeus Android:hotel:unspecified
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find Amadeus Android:hotel:unspecified
Gradle、Android Studio 和 Kotlin 版本都是最新的。 我尝试了一个新项目,但我仍然有同样的错误。
有什么办法可以解决这个问题吗?还是来自 SDK 本身?
谢谢!
你说得对,0.0.2版本有问题。它已被修复并重新部署(在 JCentral 和 MavenCentral 上)。您现在可以使用 amadeus-android 版本 0.0.4。
implementation 'com.amadeus:amadeus-android:0.0.4'
请注意 Android SDK 仍处于测试版。