cordova-plugin-background-geolocation: 2.2.5 build fails Android on Phonegap Build
Version 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
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 27 (10 by maintainers)
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.Could you also try 2.2.4? It’s basically same as 2.2.5, but 2.2.5 was adjusted to work with new cordova android 6.0.