Hi,
I’m trying to build an android project with some 23.1.1 dependencies, e.g. android support appcompat-v7, but I’ve this error:
> Could not resolve all dependencies for configuration ':app:_debugCompile'.
> Could not find com.android.support:appcompat-v7:23.1.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.pom
https://jcenter.bintray.com/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.jar
https://jitpack.io/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.pom
https://jitpack.io/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.jar
file:/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.pom
file:/usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.jar
file:/usr/local/android-sdk-linux/extras/google/m2repository/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.pom
file:/usr/local/android-sdk-linux/extras/google/m2repository/com/android/support/appcompat-v7/23.1.1/appcompat-v7-23.1.1.jar
Required by:
myapp-android:app:unspecified
I’ve seen that the pre-downloaded library inside the container has not yet updated to this latest release: inside /usr/local/android-sdk-linux/extras/android/m2repository/com/android/support/appcompat-v7/, the latest version is 23.1.0
So, I’ve tried updating it manually during the build, adding these lines to my circle.yml file:
pre:
- echo y | android update sdk --no-ui --all --filter “extra-android-support” to my circle.yml file, but nothing changed
From the initial dependencies phase output seems that all is ok:
Do you accept the license 'android-sdk-license-5be876d5' [y/n]:
Installing Archives:
Preparing to install archives
Downloading Android Support Library, revision 23.1.1
Installing Android Support Library, revision 23.1.1
Installed Android Support Library, revision 23.1.1
Done. 1 package installed.
But when the build executes the gradle dependencies phase I’ve got the same errore reported above.
Do you know if an update for the circleci android environment is planned?
Am I missing something with the build configuration?
Thanks