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

Google Play Services 11.0.1 #7926

Closed
anna-b opened this issue Jun 20, 2017 · 11 comments
Closed

Google Play Services 11.0.1 #7926

anna-b opened this issue Jun 20, 2017 · 11 comments
Labels

Comments

@anna-b
Copy link

anna-b commented Jun 20, 2017

Recently, there were released a new version of Google Play Services - 11.0.1 https://developers.google.com/android/guides/releases
When using the dependency with this version in Android project e.g.
compile "com.google.android.gms:play-services-cast-framework:11.0.1"
Travis build fails with the error saying that license agreements are not accepted.

Here is a part of my Travis yml that is responsible for dependencies:

language: android
cache: false
sudo: required
jdk:
    - oraclejdk8
env:
  global:
  - TERM=dumb
  - GRADLE_OPTS="-Xmx8048M -XX:MaxPermSize=2048M"
  - CONTINUOUS_INTEGRATION=true
  - MALLOC_ARENA_MAX=2
  - ADB_INSTALL_TIMEOUT=10
  - ANDROID_TARGET=android-25
  - ANDROID_BUILD_TOOLS_VERSION=26.0.0
  - ANDROID_ABI=armeabi-v7a

android:
  components:
    - $ANDROID_TARGET
    - platform-tools
    - tools
    - build-tools-$ANDROID_BUILD_TOOLS_VERSION
    - extra-google-google_play_services
    - extra-google-m2repository
    - extra-android-m2repository
    - extra-android-support
  licenses:
    - 'android-sdk-license-.+'
    - 'android-sdk-preview-license-.+'
    - 'google-gdk-license-.+'
@BanzaiMan
Copy link
Contributor

Could you try reproducing the problem with our Docker images?

@anna-b
Copy link
Author

anna-b commented Jun 27, 2017

@BanzaiMan I gave it a try with docker images but my github authentication fails all the time (probably because of 2-factor authentication which is not available from the command line when working with docker).
I still can see that the builds with Google Play Services - 11.0.1 fail. do you have any other suggestions how can I test it or resolve "You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 25]." ? Thanks!

@BanzaiMan
Copy link
Contributor

Do you have a build log URL to share? If it's private and you'd rather not share it here, could you send it to support@travis-ci.com?

@spirosoik
Copy link

I have exactly the same issue @BanzaiMan

@BanzaiMan
Copy link
Contributor

Does either of you have access to a debug build? Ideally, we can get one of you to troubleshoot this a little further, so we can identify a good fix for all.

@anna-b
Copy link
Author

anna-b commented Jul 3, 2017

@BanzaiMan Are you referring to the "Start a build in a Debug mode" option from the Travis interface? do you need an output from the debug build or how can I provide the necessary info? thanks!

@BanzaiMan
Copy link
Contributor

@anna-b Yes, that is exactly what I mean. Were you able to reproduce this issue then? If so, were you able to resolve it with some maneuver?

@anna-b
Copy link
Author

anna-b commented Jul 3, 2017

@BanzaiMan "at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
Caused by: java.lang.RuntimeException: You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 25].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
at com.android.builder.sdk.DefaultSdkLoader.checkResults(DefaultSdkLoader.java:595)
at com.android.builder.sdk.DefaultSdkLoader.getTargetInfo(DefaultSdkLoader.java:156)
at com.android.build.gradle.internal.SdkHandler.initTarget(SdkHandler.java:136)
at com.android.build.gradle.BasePlugin.ensureTargetSetup(BasePlugin.java:671)
at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:570)
at com.android.build.gradle.BasePlugin.lambda$null$4(BasePlugin.java:526)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81)
at com.android.build.gradle.BasePlugin.lambda$createTasks$5(BasePlugin.java:522)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
at com.sun.proxy.$Proxy15.afterEvaluate(Unknown Source)
at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)
... 56 more
"
that's what i get from debug console

@iriberri
Copy link

iriberri commented Jul 3, 2017

Does someone have/knows of a public repository in which this problem is happening too? This would be really helpful to do some tests.

@anna-b
Copy link
Author

anna-b commented Jul 31, 2017

Now Google updated the play services to 11.0.4 (https://developers.google.com/android/guides/releases). I tried with this new version and with build tools 26.0.1 and I still can't get it built:
"Caused by: java.lang.RuntimeException: You have not accepted the license agreements of the following SDK components:
[Android SDK Platform 25].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html"

My license section looks like this:
licenses:
- 'android-sdk-license-.+'
- 'android-sdk-preview-license-.+'
- 'google-gdk-license-.+'
Am I missing something?

@anna-b
Copy link
Author

anna-b commented Jul 31, 2017

The following script finally worked for me:

env:
  global:
  - ANDROID_TARGET=android-26
  - ANDROID_BUILD_TOOLS_VERSION=26.0.1
  - ANDROID_ABI=armeabi-v7a
android:
  components:
    - tools
    - platform-tools
    - tools
    - build-tools-$ANDROID_BUILD_TOOLS_VERSION
    - $ANDROID_TARGET
    - extra-google-google_play_services
    - extra-google-m2repository
    - extra-android-m2repository
    - extra-android-support
  licenses:
    - 'android-sdk-license-.+'
    - 'android-sdk-preview-license-.+'
    - 'google-gdk-license-.+'

And having

    targetSdkVersion = 26
    compileSdkVersion = 26
    buildToolsVersion = '26.0.1'

in build.gradle.
Did not work with targetSdkVersion 25 though

@anna-b anna-b closed this as completed Jul 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants