2.2.5 build fails Android on Phonegap Build
See original GitHub issueVersion 2.2.2 works for Android. 2.2.5 works for iOS
Environment
- Phonegap Build CLI 6.3.0
- Plugin version: 2.2.5
- Platform: Android
- OS version: 4+
- Cordova version (
cordova -v
): 6.3.0 - Cordova platform version (cordova platform ls): android 5.2.1
- Plugin configuration options: desiredAccuracy: 10, stationaryRadius: 20, distanceFilter: 30, maxLocations: 1000, // Android only section locationProvider: backgroundGeolocation.provider.ANDROID_ACTIVITY_PROVIDER, interval: 60000, activitiesInterval: 10000, notificationTitle: ‘Background tracking’, notificationText: ‘enabled’, notificationIconColor: ‘#FEDD1E’, notificationIconLarge: ‘mappointer_large’, notificationIconSmall: ‘mappointer_small’, startForeground: true
- Link to project: https://github.com/klaus-donnert/iDispatcher-Gps-Tracker.git
Expected Behavior
Build without error
Actual Behavior
Build failed:
Possible Fix
Steps to Reproduce
- fork https://github.com/klaus-donnert/iDispatcher-Gps-Tracker.git
- checkout branch 2.2.5 GPS Plugin test
- build for Android using Phonegap build CLI 6.3.0
Debug logs
Execution failed for task ‘:processDebugResources’.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘/android-sdk/build-tools/24.0.1/aapt’’ finished with non-zero exit value 1
Issue Analytics
- State:
- Created 7 years ago
- Comments:27 (10 by maintainers)
Top Results From Across the Web
PhoneGap build fail - Android · Issue #240 - GitHub
This error is caused by a Gradle version mismatch. The exact cause depends on which other plugins and which version of the cordova-android...
Read more >Error executing the build in the app (cordova build android ...
After these steps, everything worked fine and I was able to run $ cordova build android without problems. Suggestion: If any other errors...
Read more >Error during building.apk with adobe PhoneGap
I get an error is called "Error - A plugin you are using requires a preference: ANDROID_SUPPORT_V4_VERSION".
Read more >[Firebase Cloud Message Plugin] Failed building native ...
Requesting plugin "phonegap-plugin-multidex@~1.0.0". Plugin dependency "phonegap-plugin-multidex" not fetched, retrieving then installing. ... Finding scripts for ...
Read more >Android Platform Guide - Apache Cordova
This guide will help set up your development environment for building Cordova apps for Android devices and optionally use Android-specific command-line ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
those are there probably by mistake. I should remove those.
no, I was testing on freshly created project
actually I’ll remove those ic_launcher.pngs and plugin will assume that
cordova create
will create icon.png in mipmap folders.EDIT:
there is already section in documentation
, but I agree that it can be probably more exhaustive to cover this situation
I think I’m having a similar issue when building for android. In my case I’m building with cordova (
cordova build android
).Environment
Plugin version: 2.2.5 Cordova version: 6.4.0
Debug log
Possible solution
I think the issue comes from a mismatch between what is specified in the
authenticator.xml
file and the content of the mipmap folders. Those folders contain files namedic_launcher.png
, but the authenticator.xml file contains the following two lines:I tried changing those lines for the following:
Doing that the build worked. I guess changing the image file names from
ic_launcher.png
toicon.png
would work too.