# First Cordova android example build fails

**URL:** <https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226>\
**Category:** Builds\
**Created:** [March 20, 2021, 2:00pm UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226 "2021-03-20T14:00:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bstromquist](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bstromquist](https://discuss.bitrise.io/u/bstromquist)\
**Post date:** [March 20, 2021, 2:00pm UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226/1 "2021-03-20T14:00:56Z")

</div>

# 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](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](https://github.com/bitrise-community/steps-cordova-archive) |  
±–±--------------------------------------------------------------±---------+

---

<div class="post-metadata">

**Author:** ![bstromquist](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bstromquist](https://discuss.bitrise.io/u/bstromquist)\
**Post date:** [March 23, 2021, 12:02am UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226/2 "2021-03-23T00:02:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bigreni](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@bigreni](https://discuss.bitrise.io/u/bigreni)\
**Post date:** [March 23, 2021, 4:50am UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226/3 "2021-03-23T04:50:40Z")

</div>

Do you have this in your config.xml?

---

<div class="post-metadata">

**Author:** ![bstromquist](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bstromquist](https://discuss.bitrise.io/u/bstromquist)\
**Post date:** [March 23, 2021, 12:04pm UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226/4 "2021-03-23T12:04:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![bstromquist](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bstromquist](https://discuss.bitrise.io/u/bstromquist)\
**Post date:** [March 26, 2021, 4:41pm UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226/5 "2021-03-26T16:41:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cshaikh](https://avatars.discourse-cdn.com/v4/letter/c/7ea924/32.png) [@cshaikh](https://discuss.bitrise.io/u/cshaikh)\
**Post date:** [April 5, 2021, 1:43pm UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226/6 "2021-04-05T13:43:03Z")

</div>

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](https://support.bitrise.io/hc/en-us)

Thank you  
Bitrise Support

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [May 5, 2021, 1:45pm UTC](https://discuss.bitrise.io/t/first-cordova-android-example-build-fails/16226/7 "2021-05-05T13:45:20Z")

</div>

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