Failed to install apk app in android device
I have an app that works fine in an android emulator. But when I tried to install into the device, it gave an error.
CoolPad Note - version 5.1 - error: "Failed to install the application", Galaxy A7 - version 6.0 6.0 - error "parsing"
I am using sqlite db, apache csv parser lib, Square sqldelight.
Min Sdk - 19 and Max Sdk - 25
I tried to grant all permissions to use this link
I have unlocked developer options on my phone and enabled installation from unknown sources. The app still cannot be installed. On the same phone, I can install a simple Android app. So the problem is with the package or code. Please help.
Usb doesn't work with both phones. So I send the apk over bluetooth and then install it with the package installer on my phone. How to get the installation log from your phone.
The app is 4 forms and uses snippets. I can download apk if needed.
source to share
I had a similar problem. The problem for me was the APK Signature Scheme v2 option in Android Studio (version 2.3.1): https://developer.android.com/about/versions/nougat/android-7.0.html#apk_signature_v2
When signing my apk with the selected signature version v2, I was able to download and install the apk on LG Nexus 5X (android 7.1.1). But on Motorola Moto G3 (android 5.1) I will see "failed to install".
By choosing both signature v1 and v2 when signing my application, this problem was resolved and I could download and install apk on both phones.
Hope this helps you and other people with the same problem.
source to share