Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency on gradle 3.1.0 fails #18

Closed
jfirebaugh opened this issue Mar 29, 2018 · 4 comments
Closed

Dependency on gradle 3.1.0 fails #18

jfirebaugh opened this issue Mar 29, 2018 · 4 comments

Comments

@jfirebaugh
Copy link
Contributor

The default project generated by Android Studio 3.1 will fail in CI on the current android-ndk-r16b image. It took me several hours to figure out that I had to change build.gradle:

Works:

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'
    }
}

Doesn't work:

buildscript {
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.0'
    }
}

The latter fails with the following error:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;27.0.3 Android SDK Build-Tools 27.0.3
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html
  
  Using Android SDK: /android/sdk
@zugaldia
Copy link
Member

Good catch, thanks @jfirebaugh for the research!

cc: @tobrun fyi.

@tobrun
Copy link
Member

tobrun commented Mar 30, 2018

I was initially waiting for the stable release of ndk 17 here to update the image but capturing from the ndk-release-schedule that this will only happen in May. I will work on updating the image.

update: 28.0.0 stable is going to be released soon, waiting for that before updating.

@kkaefer
Copy link
Member

kkaefer commented Apr 3, 2018

We're intentionally removing the license agreement again to prevent builds from installing new software.

@tobrun
Copy link
Member

tobrun commented May 14, 2018

available with mbgl/feb0443038:android-ndk-r17

@tobrun tobrun closed this as completed May 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants