Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

INSTALL_FAILED_VERIFICATION_FAILURE ON ant debug install

I'm developing a native application for Android in C++. The app works fine, and install (with ant debug install) correctly en several devices, but throws an error when I try to install it in a Lenovo A806 with androdid 4.4.2:

enter code install:
 [echo] Installing /home/flush/Project/test/bin/NativeActivity-debug.apk onto default emulator or device...
 [exec] 7378 KB/s (6015860 bytes in 0.796s)
 [exec] Failure [INSTALL_FAILED_VERIFICATION_FAILURE]

The device appears when executing adb devices. I have disabled the Verify Applications Check in security and checked the Unknow sources Options. Still throws the same error.

I also tried installing the android debug certificate (by Install from internal Storage in security options), but it does not works. Despite of a message "certificate is installed" is showing, the certificate are not show in the certificate list.

¿Any clues?

Thank you

like image 832
flushaaas Avatar asked Jun 19 '16 07:06

flushaaas


People also ask

Why does it say app not installed APK?

Insufficient Storage- If your Android device is too full, it causes the package installer to malfunction, leading to the 'App not Installed' pop-up. Even a corrupted Internal Storage Card or an SD card which is not mounted properly may lead to clogged storage and thus give you the App not installed error message.


2 Answers

I fixed this by doing(in android 8.1)

Settings > Developer Options > Then Turn off Verify Apps over USB
like image 81
ANEESH T.G Avatar answered Oct 13 '22 02:10

ANEESH T.G


You need to have permissions to write an unsigned app, allowing unknown software sources in settings or in Eclipse, sign the app > Android tools > Export signed application package, if you generate a certificate before.

like image 29
vgonisanz Avatar answered Oct 13 '22 02:10

vgonisanz