question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to generate signed apk

See original GitHub issue

Your Environment

  • Plugin version: 3.1.0
  • Platform: Android
  • OS version:
  • Device manufacturer and model:
  • Running in Simulator:
  • Cordova version (cordova -v): — Capacitor with navite plugin
  • Cordova platform version (cordova platform ls): —
  • Plugin configuration options:
  • Link to your project:

Context

Trying generating signed apk in android studio.

Expected Behavior

Actual Behavior

Gets error:

  • Type org.apache.commons.io.Charsets is defined multiple times
  • com.android.tools.r8.CompilationFailedException: Compilation failed to complete

Possible Fix

Steps to Reproduce

Plugins: @mauron85/cordova-plugin-background-geolocation (3.1.0) cordova-plugin-actionsheet (2.3.3) cordova-plugin-badge (0.8.8) cordova-plugin-device (2.0.3) cordova-plugin-dialogs (2.0.2) cordova-plugin-ionic (5.4.7) cordova-plugin-whitelist (1.3.4) cordova-sms-plugin (1.0.0) uk.co.workingedge.phonegap.plugin.launchnavigator (5.0.4)

Context

Problem appears only on signed apk

Debug logs

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:17

github_iconTop GitHub Comments

2reactions
darron1217commented, Jul 26, 2020

I’ve created fork to solve this problem https://github.com/darron1217/cordova-plugin-background-geolocation/tree/bugfix

You can install it by npm install https://github.com/darron1217/cordova-plugin-background-geolocation.git#bugfix

1reaction
jongbongacommented, Dec 11, 2020

@vuk-nikolic could you elaborate a bit more please, I am facing the same issue and got stuck on the

AAPT: error: resource string/mauron85_bgloc_content_authority (aka capacitor.android.plugins:string/mauron85_bgloc_content_authority) not found.

@LgArcida this is how you fix it

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - generate signed apk is not working, apk is unsigned
generate signed apk is not working, apk is unsigned · Click on build · Generate Signed Apk · Choose APK and click Next...
Read more >
Why I can't generate a signed apk file in Android Studio?
Go to Build-> Generate signed bundle/apk. Follow below video for further process. https://youtu.be/MjpaSGEmQHs. Thank me later..!
Read more >
Unable to generate signed apk, Error : Cannot recover key
I m trying to update the application but m unable to generate the signed apk. I have my .jks file which was use...
Read more >
How to Generate APK and Signed APK Files in Android Studio
Select Build > Signed Bundle/APK from the toolbar menu. Configure the settings for your APK file and possibly create a new key store...
Read more >
no "Generate Signed Bundle/APK" in Android Studio ... - GitHub
You are supposed to open the android folder in "Android Studio", that is when the Generate Signed Bundle/APK will appear in the menu...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found