Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Build and Installation error: INSTALL_PARSE_FAILED_NOT_APK

enter image description here

Have these erro when i'm trying to build the apk to some devices. Have no idea whats going on.

I get that when i build and install apk on device at the first time.

Someone have some tips for that?

[[EDIT]]

Well, after creating a debug key on keystore, i can build and deploy the apk via ADP to the device. But, dont know why, the error just return...

And now, we have other error:

enter image description here

UPDATE:

I Fix that issue removing all Android SDK and Android Studio and ReInstall it.

like image 767
acvilarim Avatar asked Jan 01 '26 10:01

acvilarim


2 Answers

The problem can be solved by addding the install flags -r -t in the Run/Debug Configuration Dialog like it's showed in the given image enter image description here You can find Run/Debug Configuration Dialog location here according to Jetbrains. UPDATE: Depending on the Android Studio version the Run/Debug Configuration position in the IDE can be slightly different, but always refer Jetbrains to find whatever you are looking for

like image 151
Ariel Avatar answered Jan 05 '26 06:01

Ariel


When you've installed an APK from another source, Android Studio warns you before overwriting.

For example, if I've developed an application, uploaded it onto the Google Play Store, downloaded it, then try to re-deploy that same application from Android Studio, I'll get this warning.

It's trying to tell you that the way the package is signed is different; it's warning you that another app might be masquerading as the original.

like image 24
Mapsy Avatar answered Jan 05 '26 07:01

Mapsy



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!