Android: License not accepted

Hi There,

I’m getting the error: License for package Android SDK Build-Tools 26.0.2 not accepted.

Checking the license for package Android SDK Build-Tools 26.0.2 in /usr/local/android-sdk-linux/licenses
Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.
Checking the license for package Android SDK Platform 26 in /usr/local/android-sdk-linux/licenses
Warning: License for package Android SDK Platform 26 not accepted.
app: ‘annotationProcessor’ dependencies won’t be recognized as kapt annotation processors. Please change the configuration name to ‘kapt’ for these artifacts: ‘com.github.bumptech.glide:compiler:4.2.0’ and apply the kapt plugin: “apply plugin: ‘kotlin-kapt’”.

FAILURE: Build failed with an exception.

Having been through various posts in the forums, namely:

I’ve yet found a viable solution.

My actual config looks like this:

I’ve also tried the circleCI demo solution:
https://github.com/circleci/circle-dummy-android/blob/master/circle.yml
However this is running circleCI 1 on old SDK versions, bumping it to the latest generated my original error.

One thing I’ve not been able to understand, is that all my builds mention version 1.
28

When reading the documentation on setting up CircleCI 1 or 2, I should have a radio button at the “Setup my project” step.

(Step 4)
https://circleci.com/docs/2.0/

I only have an option for Circle CI 1 and not 2. Unsure if thats related though.

Have tried all the fixes in the original post and nothing yet has worked. Would really appreciate if anyone has time to look into this.

Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.