Poorvaja
Poorvaja

Reputation: 51

How to generate a signed apk in android studio?

I created a signed apk .

But , when I install it comes like this. enter image description here

How can I solve this?

Upvotes: 0

Views: 3509

Answers (2)

Wibisono Indrawan
Wibisono Indrawan

Reputation: 596

I had encountered the same problem and in my case it's because I don't generate a signed APK

To Generate Signed APK first you need keystore file. You can create keystore with Android Studio with these steps :

  1. Select Build in Menu bar
  2. Select Generate Signed Bundle or APK
  3. Select APK or Android App Bundle. Choose based on what you need, if you don't know what to choose just choose APK
  4. Click Create New button under key store path textbox
  5. Fill all the information needed
    • Be aware that there's 2 password textbox. The first one is keystore passowrd and the second one is key password. It' s different thing and save them on notepad or whatever so you don't forget it
    • Also remember the path where you save the keystore file

After creating keystore file now we begin to create the signed APK

  1. Follow the first 3 steps form creating keystore file until you asked to choose keystore
  2. Now for keystore we choose the one that we have been created by clicking choose existing button
    • Fill in the keystore password and key password
  3. Select you destination folder for the APK, and for build variant you can choose release

Upvotes: 1

Bijin Abraham
Bijin Abraham

Reputation: 2247

Uninstall your app completely and install again

Settings -> Apps -> Click on your App. 

In App info page at the action bar menu there will be an option " Uninstall for All users " click that.

Your app will be completely uninstalled and now you can try installing the new version.

Also In application check the unknown sources option

Upvotes: 1

Related Questions