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


   # 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
   - [x] 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: issues-unsubscr...@cordova.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to