[英]Gradle error 'Unable to resolve dependency' SDK Amadeus on Android Studio
I'm currently trying to use the Kotlin SDK of Amadeus API ( https://github.com/amadeus4dev/amadeus-android ).
我正在使用 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仍處於測試版。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.