I have generated the apk using the command:
ionic cordova build android --prod --release
after that I have generated the key for Play Store using the command:
keytool -genkey -v -keystore myapp-release-key.keystore -alias com.exel.myapp -keyalg RSA -keysize 2048 -validity 10000
later I have signed using jarsigner command:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore myapp-release-key.keystore platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk com.exel.myapp
finally I am bundling using Zipalign with this command:
C:\Users\Exel\AppData\Local\Android\sdk\build-tools\29.0.0\zipalign -v 4 platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk myapp-release-signed.apk
When I am uploading the app to the Play Store it’s giving a warning like unoptimized code “please bundle using an Android app bundle”.
So, I need suggestions and solutions for this problem. I will be very thankful for this forum if I can fix this with your help.
When I am trying to do an Android apk/bundle using an Android Studio 3.4.1 it’s giving me a warning like “Android Gradle Plugin version should be 3.2 or higher”. When I am clicking the update button it’s getting dismissed and continuously showing the same message every time.
“Android Gradle Plugin version should be 3.2 or higher”.