Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-50753

Always said that sdk license is not accept,but I do all accept the licenses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • gradle-plugin
    • CentOS 7 4.15.11-1.el7.elrepo.x86_64

      1.try install versions of build tools:

      [root@dns shadowsocks-android]# sdkmanager --list
      Installed packages:=====================] 100% Computing updates...
      Path | Version | Description | Location
      ------- | ------- | ------- | -------
      build-tools;26.0.2 | 26.0.2 | Android SDK Build-Tools 26.0.2 | build-tools/26.0.2/
      build-tools;26.0.3 | 26.0.3 | Android SDK Build-Tools 26.0.3 | build-tools/26.0.3/
      build-tools;27.0.3 | 27.0.3 | Android SDK Build-Tools 27.0.3 | build-tools/27.0.3/
      emulator | 27.1.12 | Android Emulator | emulator/
      ndk-bundle | 16.1.4479499 | NDK | ndk-bundle/
      patcher;v4 | 1 | SDK Patch Applier v4 | patcher/v4/
      platform-tools | 27.0.1 | Android SDK Platform-Tools | platform-tools/
      platforms;android-26 | 2 | Android SDK Platform 26 | platforms/android-26/
      platforms;android-27 | 1 | Android SDK Platform 27 | platforms/android-27/
      tools | 26.1.1 | Android SDK Tools | tools/

       

      2.sdkmanager shows all licenses are accepted:

      [root@dns shadowsocks-android]# sdkmanager --licenses
      All SDK package licenses accepted.======] 100% Computing updates...

       

      start build with jenkins log:
      [shadowsocks-android] $ /var/lib/jenkins/tools/hudson.plugins.gradle.GradleInstallation/gradle-4.6/bin/gradle
      Starting a Gradle Daemon (subsequent builds will be faster)
      Checking the license for package Android SDK Build-Tools 27.0.3 in /var/android-sdk/licenses
      Warning: License for package Android SDK Build-Tools 27.0.3 not accepted.
      Checking the license for package Android SDK Platform 27 in /var/android-sdk/licenses
      Warning: License for package Android SDK Platform 27 not accepted.

      FAILURE: Build failed with an exception.

      • What went wrong:
        A problem occurred configuring project ':core'.
        > Failed to install the following Android SDK packages as some licences have not been accepted.
        platforms;android-27 Android SDK Platform 27
        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: /var/android-sdk
      • Try:
        Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
         

      just don't know what and where goes wrong,using ./gradlew build command can successfully build.but fail in jeknins

            wolfs Stefan Wolf
            cnrting cnr ting
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: