I have the app running fine in the android emulator. But when I tried to install in the device it is giving error.
In CoolPad Note - running 5.1 version - error is "Failed to install the app"
In Galaxy A7 - running 6.0 version - error is "parsing failed"
I am using sqlite db, apache csv parser lib, Square's sqldelight.
Min Sdk - 19 and Max Sdk - 25
I tried giving all the uses-permission based on this link
I unlocked developer options in the phone and enabled installing from unknown sources. Still not able to install the app. In the same phone, I can install a simple android app. So the problem is with the package or the code. Please help.
Usb with both the phones are not working. So I am sending the apk through bluetooth and then installing it with package installer in the phone. How to get the installation log from the phone.
The app is 4 forms and uses fragments. If needed I can upload the apk.
I have had a similar problem. For me the problem 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 Signature version v2 selected, I was able to download and install my apk on a LG Nexus 5X (android 7.1.1). But on a Motorola Moto G3 (android 5.1) I would see "failed to install".
By selecting both signature version v1 and v2 when signing my app, this problem was resolved and I could download and install the apk on both phones.
I hope this will help you and others with the same issue.
If you use Galaxy A7.
You can tap *#9900# in dialer app (name is 'phone').
You can find "RUN DUMPSTATE/LOGCAT" and tap it.
Then tap "COPY TO SDCARD(INCLUDE CP RAMDUMP)".
You can find 'log' folder in MyFiles app.
Related
I have created with the use of android studio a small project and then I generated the signed apk. Then I tried to install it in three phones and in the first one (which has android 8) the app was installed successfully but in the second one (which has android 4.2) and third one (which has android 5) I got the "app not installed" error. This is my second app (project) and my first one has been installed successfully in all these three phones. The minimum SDK version of the app is Android 4.0.3 (API level 15), so that's not causing the problem. Can anyone guess where the problem is?
Sign the apk with both v1 and v2 signatures. this is the most likely culprit given your scenario. apk will not get installed on devices with less than marshmallow if you only sign with v2
Well you can try following:
Change install location of app on the phones it's creating problem.
Try resetting app preferences
Clear Data and Cache of Package Installer
Allow Apps from Unknown Sources (Go to Settings → Security → Unknown Sources. Enable Unknown Sources. And then try installing App)
Try Deleting .android_secure/smdl2tmpl.asec file from your SD Card if using SD card
Resign the app.
Try changing app codes by using some apk editor app
Updated Information: I am now discovering that this only seems to be an issue on Android 7 and up. I have multiple devices, and the apk will install on my 6.0.1 Nexus 5. But the Galaxy Tab S2 on 7.0 and the Pixel XL on 9.0 both get this error.
After the Visual Audio Mac update to 7.6.2 (build 33) I all of a sudden cannot install the generated APK for AdHoc distribution. It builds just fine in debug and release mode, but when I archive it and then side load it to a device, I get the message,
"App not installed. The package appears to be corrupt".
I am pulling my hair out on this one. Searching for answers most of the day has turned up very little.
Any hints on what might be the issue?
This was a bug that we recently fixed. The problem was that the wrong apk was signed in Visual Studio for Mac when we changed from jarsigner to apksigner by default, in which gave you an unsigned final apk that users assumed were signed. Please sign your applications manually using the following instructions until the hotfix is released shortly in Visual Studio for Mac 7.6.3.
Manually Signing Docs:
https://learn.microsoft.com/en-us/xamarin/android/deploy-test/signing/manually-signing-the-apk
Original Issue:
https://developercommunity.visualstudio.com/content/problem/317799/major-error-76-build-2190-creates-invalid-apk-for.html
Once you click "Open Folder", look for the folder "signed-apks", you will find the signed apk there, install it on your device. It works for me.
I am trying to build android apk file via cordova build android. It gives me an apk at the location of
D:/wamp/www/templateproject/platforms/android/build/outputs/apk/android-debug.apk
When I try to open that app in my mobile i get this alert message.
Unable to open file android-debug.apk. You do not have an app installed on this device to open this type of file.
Note: I have already check the installation from unknown sources.
How do I open such file ?
Note: It seems working with my friend device Redmi note 3 but not working with my device Redmi note 4 and moto g2 not sure what is the issue.
The problem is with the updated skype. I was trying to share the apk file via desktop skype to android skype. With the latest update on skype it was not allowing me to open apk file. Bug with the skype. However the file is working fine if I try to access it from file manager.
The reason Redmi note 3 was working because it had skype of older version and other two mobile like redmi note 4 and moto g2 had updated one.
My problem is like application working in emulator and the same apk is not working in device(getting application not installed message).
My application using libraries such as twitter,cordova etc.
If am building the same code in previous developer machine then that apk is working in device.
I am using windows 7 enterprise edition 64 bit.
Please suggest me some solution.
I had this error and I had to sign the .apk before installing it on a real device. You can read about it here
I made a android application on my pc. I kept the build sdk at 4.1, and minimum sdk version at 2.2
The app ran fine on the emulator but when i tried it on my friends Samsung Note it after installing gave an error "Application Not installed". I did so on Google Nexux 7.
I exported the app as a unsigned apk
I tried a simple hello world ap but had the same problem. Please help what to do and how to correct the error.
you need to sign the app to make it run on a real device.. simple choose export as a signed apk and sign it with a keystore...if you don't have one you can make a new keystore through same wizard that you get at the time of exporting