Bitrise Build Issue Report template
Description of the issue
I moved a local working cordova project to github and set up a bitrise build. I’m new to both github and bitrise. I added a keystore and tried a build. The error doesn’t give any clue what to do next.
±–±--------------------------------------------------------------±---------+
| ✓ | generate-cordova-build-configuration@0 | 11.48 sec|
±–±--------------------------------------------------------------±---------+
▼
±-----------------------------------------------------------------------------+
| (6) cordova-archive@2 |
±-----------------------------------------------------------------------------+
| id: cordova-archive |
| version: 2.2.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: go |
| time: 2021-03-20T13:48:23Z |
±-----------------------------------------------------------------------------+
| |
INFO[13:48:23] * [OK] Step dependency (node) installed, available.
INFO[13:48:23] * [OK] Step dependency (gradle) installed, available.
Config:
- Platform: android
- Configuration: release
- Target: emulator
- BuildConfig: /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/__bitrise-cordova-build-config__307236060/build.json
- RunPrepare: true
- CordovaVersion:
- WorkDir: /Users/vagrant/git
- Options: --buildFlag="-UseModernBuildSystem=0"
- DeployDir: /Users/vagrant/deploy
- UseCache: false
Using cordova version:
9.0.0 (cordova-lib@9.0.1)
Preparing project
$ cordova “prepare” “android”
Discovered platform “android@5.2.1” in config.xml or package.json. Adding it to the project
Using cordova-fetch for cordova-android@5.2.1
Adding android project…
Creating Cordova project for the Android platform:
Path: platforms/android
Package: io.cordova.myappcf117f
Name: WeatherApp
Activity: MainActivity
Android target: android-23
Android project created with cordova-android@5.2.1
Installing “cordova-plugin-whitelist” for android
This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do not need this plugin since the whitelist will be built in.
Plugin ‘cordova-plugin-whitelist’ found in config.xml… Migrating it to package.json
Building project
$ cordova “compile” “–release” “–emulator” “android” “–buildConfig” “/var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/__bitrise-cordova-build-config__307236060/build.json” “–buildFlag=-UseModernBuildSystem=0”
ANDROID_HOME=/usr/local/share/android-sdk
JAVA_HOME=/Users/vagrant/.jenv/versions/1.8
Reading build config file: /var/folders/6q/wgy6jtp12w5gzgm9lzcglpqw0000gn/T/__bitrise-cordova-build-config__307236060/build.json
Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /usr/local/share/android-sdk/tools/templates/gradle/wrapper
cordova build failed, error: exit status 1
| |
±–±--------------------------------------------------------------±---------+
| x | cordova-archive@2 (exit code: 1) | 17.84 sec|
±–±--------------------------------------------------------------±---------+
| Issue tracker: …/github.com/bitrise-community/steps-cordova-archive/issues |
| Source: https://github.com/bitrise-community/steps-cordova-archive |
±–±--------------------------------------------------------------±---------+