Getting error Installation failed after generating Signed APK - android

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.

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.

How to get the updated Apk file from the android studio.?

I am developing an android application. All the things is going well when I run the application into genymotion virtual device.And Since the apk is stored in F:...\app\build\outputs\apk location. So I just want to collect it from this location and download it to install in a android phone.As I simultaneously updating the application with code but this apk doesn't provide me the updated apk file according to the updated code .They just give me the old apk file even if i run my application again and again from the android studio. Can anyone suggest me why this is happening ??? I just want to run this apk into phone or download this apk file for another purpose.
This three steps will do Go build->Build apk
Go to Build > Build APK to generate a normal APK.
Go to Build > Generate Signed APK to generate signed APK.
Signed APK are those which we generate to release our application. Here it is, why is it necessary to generate signed APKs: Why should I Sign my Application APK before release
If you build a debug APK, it will still work on all devices but you cannot release it.
From terminal run the following command to make sure that you get the updated apk.
1. gradle clean (from windows )
-or-
./gradlew clean (from linux) -
Above command deletes the build folder.
2. gradle build (from windows)
-or-
./gradlew build(from linux)
Above command builds all the flavor for your application.
Edit: Original answer
Signed apk is needed to install in any other non debug device. This will be same as the debug app that runs in your test device/emulator.
Build -> Generate signed apk

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.

Android Studio does not zipalign signed APKs

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?

Generate unsigned release APK with Android Studio

I am trying to generate an unsigned release APK using Android Studio.
My app will not be signed and not distributed on the Store.
In Android studio, I go to Build Variants and I select my project + Build Variant = Release.
I run the release, Android studio generates the file my_project-release-unsigned.apk
Nice! But, when I try to install or deploy the APK, I got the error:
Installation failed since the APK was either not signed, or signed incorrectly.
I dont understand why I got this error since the APK has been explicitly generated unsigned!
Well, if you could tell me how I can setup gradle to generate my APK unsigned....
I am pretty lost!
Per Signing Your Application:
All applications must be signed. The system will not install an application on an emulator or a device if it is not signed.

Categories

Resources