Android Studio does not zipalign signed APKs - android

I use Android Studio to create Android Apps. When I created signed apps, using the option "Build -> Generate Signed APK..." in Android Studio I selec the previously created keystore file and start the generation process. Everything seems to work fine.
Then I try to updload the app into the Play Developer Console, and get the error, that the app is not zipaligned.
Now I zipalign the app by hand, using the command line. Now uploading the app works.
Cant I zipalign the app in the APK generation process right away using Android Studio?

Related

Can't install my app on Devices using the APK file

I recently made an android app. It worked just fine on both my development devices when installed from Android Studio but when I sent the GDrive links or the APK files to my friends for testing, "App not Installed" error showed up.
What's worse, I can't even install the APK directly even on my devices without installing it from android studio.
Why is this happening?
Please help.
You should build a debug APK. For this follow this
From Android studio above menu select Build -> Build Bundles(s) / APK(s) -> Build APK(s)
Then wait some time. After build success, you will find your APk here
\app\build\outputs\apk\debug\app-debug.apk
Then share this APK and IT will work fine.
You need to create keystore and then use option Build->Generate signed apk. Not signed apk is not installable.

Android Studio how to create working APK

I have an Android Studio Project and I need to create a runnable apk file for my beta testers (I pass the apk to them directly (via mail)). I tryed both to build an unsigned APK and to generate a signed one. But when I or my beta testers try to intall the APK, the installer say "App not intalled".
How can I build an APK file which work?
Thanks for help.
Having seen you case, you need to make sure that you are trying or installing signed apk. I was facing the same issue of App not installed what I did to over come the issue I build signed apk. And everything worked fine. Although the version before 3.0, without signed apk used to work, but after 3.0 or above without signed apk(if you installed directly) will not work. This will throw the same App not installed error.

Unable to upgrade to a Dynatrace enabled apk

I have used the auto-instrumentor command on my Android apk file.
auto-instrumentor.cmd apk <apk file> prop <APK-Instr.properties>
It generated three new files:
unsigned
signed
final
Now I am able to use my app when I do a fresh install.
But if I try to upgrade an earlier build to this Dynatrace enabled version, it always gives me a message
App Not Installed.
If you are not using the original certificates to sign the apk you will not be able to install the instrumented app over the already existing once. The only option you have is to uninstall the original app and install the instrumented app.
If you have the original certificates you need to take the following steps:
take the unsigned apk and instrument the apk
sign the apk
zip align the apk
For more information please take a look at the Android Auto-Instrumentation documentation

In AndroidStudio 1.1.0, I can't find the option to export application

I have created my android app and it runs on my connected device. I want to export my android application, but in the file menu, i don't find the 'Export' option at all, nor anywhere else. I had generated the Signed Apk(from the Build->Generate signed Apk option).Is this creating a problem.Please let me know what I'm doing wrong.
To publish your Android app on the PlayStore,
On your AndroidStudio do,
Build -> Generate signed APK
Create a new App listing on Developer Console
Upload the generated APK
Publish.

Getting error Installation failed after generating Signed APK

I Generated signed APK because I wanted to release my app but after generating signed APK, the app wont run on the emulator."app-release.apk is not signed. Please configure the signing information for the selected flavor using the project structure dialog."
To resolve this error, I did what it told me to do. I went to project structure>signing and added signing info (called config). Then i added this config info to build Types and Flavors. Gradle synced successfully and I was able to run my app in emulator.However, when emulator starts, I see a dialog box in my android studio saying *************"Installation failed because device already has an application with the same package but a different signature".****************** Also, I noticed that any changes that I did to my app after running the "Generate Signed APK" wizard are not reflected in the app. I cleaned the project and restarted android studio but same results.
**I am attaching a screenshot of the error that i am getting
what you have is you have different builds for production and debug i guess or more if you want to install you production apk you have to uninstall the app from your emulator as one device can't install the two apps with same package names,uninstall the apk installed in the emulator and then generate a signed apk with whatever configuration you are generating then this apk will be installed in your emulator
You have installed the app previous to the export. Exporting your apk signs it differently than the debug build. Do what the error says and uninstall and reinstall.

Categories

Resources