Closed engmsaleh closed 3 years ago
@exxbrain Do you have an idea?
@NiklasMerz, I think using sources instead of aar will help. It looks not so hard to make this change.
Using sources should also fix #209
I still have this problem when using 3.0.1 version
Same, still having an issue with 3.0.1 and cordova-android 8.1.0. What does "Use Sources" mean? Can you give code example?
I was able to get around the issue to get the build created at least.... but I doubt it's the best solution. I haven't tested in a production env yet so I don't even know if that it fully works and I half expect there to be issues whenever we start testing the next Android version.
Our app uses the cordova-plugin-proguard
plugin to allow us to configure some of the proguard settings. I followed the steps in the "How to use" section to create a proguard-custom.txt
file in the project root and added this line:
-dontwarn com.exxbrain.android.biometric.*
Again follow the steps on the npm plugin page, after creating the custom txt file, you have to first remove the plugin and add it back:
ionic cordova plugin remove cordova-plugin-proguard
ionic cordova plugin add cordova-plugin-proguard
Then remove the android platform and add it back to take in the new changes
ionic cordova platform rm android
ionic cordova platform add android
Then do production build:
ionic cordova build android --prod --release --keystore='keystore.jks' --storePassword='yourpassword' --alias='alias' --password='yourpassword'
Again... seems like a band-aid solution and probably doesn't actually fix the real issues of not being able to find the libs... I wonder if we need to move this project to androidx
now?
This should be gone with the latest version
Description
I'm getting the following error as I'm trying to build release for Ionic Android
Cli command used
ionic cordova run android --prod --release --keystore=keystore.jks --alias=alias
The error