First Cordova android example build fails

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 |
±–±--------------------------------------------------------------±---------+

My 14 Days are ticking away… Is the wrong place to be asking for help?

Do you have this in your config.xml?

I’m not sure what you mean by ‘this’. Here is my config.xml:

<?xml version="1.0" encoding="utf-8"?> WeatherApp A blank project that uses Apache Cordova to help you build an app that targets multiple mobile platforms: Android, iOS, and the Windows Universal Platform. Your name here BlankJS 6.3.1

Is this the right place to get technical support? My trial is half way done and I haven’t been able to get a successful build of a simple demo app. I can build the app locally ok but not with your tools. I’m sure it is something simple but I don’t have much experience with cordova. Any kind of response would be welcome.

Hi -
Please go to our help center for Support resources, including a link to submit a support request :
https://support.bitrise.io/hc/en-us

Thank you
Bitrise Support

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.