CircleCi Not compiling on gradle 2.0 failed to resolve support-annotations-23.3.0

Hi,

I am unable to run resolve dependencies on my Android project. Build is failing on gradle dependencies . Currently getting this in log:

Could not resolve com.android.support:support-annotations:23.3.0.
Required by:
goibibo_mobile:rest:unspecified
Could not resolve com.android.support:support-annotations:23.3.0.
Could not get resource ‘https://jitpack.io/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.pom’.
Could not GET ‘https://jitpack.io/com/android/support/support-annotations/23.3.0/support-annotations-23.3.0.pom’.
peer not authenticated

Also used:
$ echo y | android update sdk --no-ui --all --filter “tools,platform-tools,android-23,extra-google-m2repository,extra-android-m2repository,extra-android-support”

but getting this:

Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Do you accept the license 'android-sdk-license-c81a61d9' [y/n]: 
Unknown response ''.
Max number of retries exceeded. Rejecting 'android-sdk-license-c81a61d9'
Package Android Support Repository, revision 30 not installed due to rejected license 'android-sdk-license-c81a61d9'.
Package Android Support Library, revision 23.2.1 not installed due to rejected license 'android-sdk-license-c81a61d9'.
Package Google Repository, revision 25 not installed due to rejected license 'android-sdk-license-c81a61d9'.
Installing Archives:
  Preparing to install archives
  Downloading Android SDK Tools, revision 24.4.1
  Installing Android SDK Tools, revision 24.4.1
    Installed Android SDK Tools, revision 24.4.1
  Downloading Android SDK Platform-tools, revision 23.0.1
  Installing Android SDK Platform-tools, revision 23.0.1
    Stopping ADB server succeeded.
    Installed Android SDK Platform-tools, revision 23.0.1
  Downloading SDK Platform Android 6.0, API 23, revision 1
  Installing SDK Platform Android 6.0, API 23, revision 1
    Installed SDK Platform Android 6.0, API 23, revision 1
    Stopping ADB server succeeded.
    Starting ADB server succeeded.
  Done. 3 packages installed.

Canany one suggest, how to resolve?

1 Like

Okay. Figured it out, please use:

## Customized dependencies
dependencies:
  pre:
    - ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui --all --filter "tools,platform-tools,android-23,extra-google-m2repository,extra-android-m2repository,extra-android-support"
    - echo y | android update sdk --no-ui --all --filter "build-tools-23.0.3"

Thanks to tukak in this project

3 Likes