You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2021/07/21 18:56:43 UTC

[GitHub] [cordova] kputh opened a new issue #294: Android build fails with Android SDK Build-Tools 31.0.0

kputh opened a new issue #294:
URL: https://github.com/apache/cordova/issues/294


   # Bug Report
   
   ## Problem
   
   When I run 
   
       cordova build android --release -- --gradleArg=-PcdvBuildToolsVersion=30.0.3
   
   I get the following error:
   
   
   ```
   Checking Java JDK and Android SDK versions
   ANDROID_SDK_ROOT=undefined (recommended setting)
   ANDROID_HOME=undefined (DEPRECATED)
   Using Android SDK: /Users/kaiputh/Library/Android/sdk
   Reading build config file: /Users/kaiputh/code/project/feuerwehr/viewer/build.json
   Subproject Path: CordovaLib
   Subproject Path: app
   Build-tool 31.0.0 is missing DX at /Users/kaiputh/Library/Android/sdk/build-tools/31.0.0/dx
   Build-tool 31.0.0 is missing DX at /Users/kaiputh/Library/Android/sdk/build-tools/31.0.0/dx
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Could not determine the dependencies of task ':CordovaLib:compileReleaseAidl'.
   > Failed to query the value of task ':CordovaLib:compileReleaseAidl' property 'aidlFrameworkProvider'.
      > Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.
   
   * 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.
   
   * Get more help at https://help.gradle.org
   
   BUILD FAILED in 1s
   Command failed with exit code 1: /Users/kaiputh/code/project/feuerwehr/viewer/platforms/android/gradlew cdvBuildRelease -b /Users/kaiputh/code/project/feuerwehr/viewer/platforms/android/build.gradle -PcdvBuildToolsVersion=30.0.3
   ```
   
   The build seems to ignore the pinned Android Build-Tools version.
   
   This issue started appearing in our build pipeline between July 19., 13:20 UTC and July 20., 08:38 UTC. I can't tell when the Android SDK Build-Tools 31.0.0 were release, but cordova-android 10.0.0 was release July 20., 04:17 (timezone?). That may be no coincidence.
   
   
   ### What is expected to happen?
   
   The build should succeed.
   
   ### What does actually happen?
   
   The build fails.
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
       cordova build android --release -- --gradleArg=-PcdvBuildToolsVersion=30.0.3
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   Azure Pipelines, vmImage 'macOS-10.15', and local development (see below)
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Cordova Packages:
   - cli: 10.0.0
     - common: 4.0.2
     - create: 3.0.0
     - lib: 10.0.0
       - common: 4.0.2
       - fetch: 3.0.0
       - serve: 4.0.0
   
   Project Installed Platforms:
   - android: 9.0.0
   - ios: 6.2.0
   
   Project Installed Plugins:
   - none
   
   Environment:
   - OS: macOS 11.4 (20F71) (darwin 20.5.0) x64
   - Node: v12.16.3
   - npm: 6.14.4
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] kputh commented on issue #294: Android build fails with Android SDK Build-Tools 31.0.0

Posted by GitBox <gi...@apache.org>.
kputh commented on issue #294:
URL: https://github.com/apache/cordova/issues/294#issuecomment-884423978


   # Workaround
   
   My first attempt to work around this issue was pinning the Android SDK Build-Tools version as seen above. When that failed, uninstalling the offending dependency did the trick. It can be done in Android Studio or on the command line:
   
       $ANDROID_HOME/tools/bin/sdkmanager --uninstall "build-tools;31.0.0"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova] kputh edited a comment on issue #294: Android build fails with Android SDK Build-Tools 31.0.0

Posted by GitBox <gi...@apache.org>.
kputh edited a comment on issue #294:
URL: https://github.com/apache/cordova/issues/294#issuecomment-884423978


   # Workaround
   
   My first attempt to work around this issue was upgrading to cordova-android 10.0.0, and my second one was pinning the Android SDK Build-Tools version as seen above. When both failed, uninstalling the offending dependency did the trick. It can be done in Android Studio or on the command line:
   
       $ANDROID_HOME/tools/bin/sdkmanager --uninstall "build-tools;31.0.0"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org