I generated a signed APK file with Android Studio and I analyzed it to check if Proguard works correctly (and it works). I would like to upload to the Play Store a bundle file. If I click on Build, Generate Signed Bundle/APK and I select "Android App Bundle" instead of Apk, should Proguard work automatically or are there any rules that I have to change?
It should work automatically without changing anything. The same dex file is generated for APKs and for Android App Bundles.
Related
I have Android Studio 4.1.2 and no matter which project I try to generate a bundle for, when I select "release" and then finish, nothing happens anymore.
I've had this problem before and I had to manually generate and sign my APKs. Now the problem is back again.
Ubuntu 20.04
The release builds are signed using your private key. You can start with configuring your keystore, which will contain the K-V pair.
Refer : Setting up key
Then you can try generating the apk using that signed key.
Refer: Generate signed APK
If you are facing some specific error, can you share that.
I am new to publishing to google play, but everywhere I looked says that you just click build then upload the apk file you get to google play. But the file I am receiving is an .aab file with no APK file to be found. I messed with my settings but cannot figure out why this is happening.
Thing I have tried:
1. Updating Unity
2. Change keystore file
I am not too familiar with unity, so I don't want to mess with too many settings with the risk of messing up the application further
when you generate Signed Bundle or APK for release, if you select Android App Bundle you can get .aab (bundle file).
if you want to get .APK you have to select APK.
in this screen.
I am using the Unity Engine to build apk. Then I use that APK on Enhance to integrate the SDK's. AAB format is not accepted, therefore I need to build APK rather than AAB directly from Unity. Then I want that integrated APK to be migrated to App Bundle to upload to PlayStore.
I had tried finding it on documentation provided by Google for App bundle development, but nothing found. If you can help me there.
Is it possible to build an App Bundle using an already release signed APK
NO. You can convert an AAB to APK but not vice versa. Check this for Generate Apk file from aab file (android app bundle)
I want to migrate apk to app bundle for play store
You can migrate anytime and upload an apk or app bundle for any releases. Android (Google) doesn't restrict and accepts either of it in the Play Store.
However, you need to make sure you increment your versionCode to make sure everyone gets the update.
Also I recommend you to refer,
https://developer.android.com/studio/command-line/bundletool
Difference between apk (.apk) and app bundle (.aab)
Whenever I use command line to produce feature APKs, it produces 2 APK. My feature apk and base apk. However, I don't upload them to Play Store. It says : Sorry we could not save your changes" Whenever I use Android Studio -> Build -> Generate Signed APK it only produces my base feature apk and when I try to upload the zip folder to Play Store, it says "Your Feature APKs contains "productdetail" apk either does not exist or was not included". Any idea why can it happen? Or any help how to produce v1+v2 signed APKs to upload them to Play Store?
At the moment, there are some bugs building your Instant App via the Studio menus (Build -> Generate Signed APK). You should run gradle directly, either by using the far right gradle panel in Studio and executing the top level assembleRelease task or via command line (./gradlew assembleRelease).
If you haven't already, to setup gradle to sign your APKs (v1+v2) use signingConfigs as per here.
Each of your feature modules (including base) will need to have signingConfigs setup in their build.gradle file to ensure each feature APK is signed correctly.
I'm used to develop and debug android apps on my phone, it's pretty faster.
When I'm ok, I export a signed APK to upload to the market.
Now I use Google Maps APIs, I must add a signature to the Manifest, this signature is associated with my key I use to sign APKs for release. So I am able to export a signed APK to test on my phone, but it's not automated and I cannot view LogCat anymore.
Can I just instruct ADT+Eclipse to auto-sign the APK before uploading it to my attached phone?
Am I missing a point?
I don't think you can do this via ADT directly. But you could use ant to build instead which supports signing (http://developer.android.com/tools/building/building-cmdline.html).
Just set the key.store, key.alias, and key.store.password, key.alias.password properties in the ant.properties file.
You can also trigger ant builds from within eclipse and add a new ant target to install/launch the app on your device