I’m currently trying to use the Kotlin SDK of Amadeus API (https://github.com/amadeus4dev/amadeus-android).
I’m using Android Studio so I need to add implementation "com.amadeus:amadeus-android:0.0.2"
in the Gradle.
But then the sync fails because of Amadeus.
Here are the errors displayed :
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 and Kotlin versions are all up to date. I tried with a new project but I still have the same errors.
Is there any way to solve this problem ? Or does it come from the SDK itself ?
Thanks !
You are right, the version 0.0.2 had an issue. It has been fixed and redeployed (on JCentral and MavenCentral). You can now use the amadeus-android version 0.0.4.
implementation 'com.amadeus:amadeus-android:0.0.4'
Note that the Android SDK is still in beta version.