As I have stated in the title I'm struggling with .apk I cannot install application on my phone I'm getting app not installed. But when installing via usb I'm able to install application on the emulator phone. It’s always showing App Not Installed on mobile phone.
When I run application via AndroidStudio to USB the application has been installed. I do not know where I should looking for issues. May be someone had the similat issue.
There are two things you can try:
First of all build your apk by Build/Build Bundles/Build APK and not just by creating apk as a side effect of simply running the app under Android Studio
Make sure no other flavors are installed on your device - sometimes devices offer "Uninstall for all users" - that's what you should be looking for.
Related
How can i resolve this? After building my app on android studio and running on my phone it works fine but when i share it to another phone it says "There was error parsing this package"
The problem is probably one of the following:
You set a minimum SDK version that is not supported in your friend's device. or maybe you added other restrictions in your app that prevents the APK from being installed on that device.
The APK you're trying to install is considered to be coming from an "unknown source", The Android system prevents you from installing apps from sources that are not known to the system.
To install that APK on your friend's device, you need to enable installing APKs from unknown sources, this setting is by default disabled and can be enabled from the device settings, on some devices you can find this option under Security settings, and on other devices it can be found under the Apps settings
I made an Android app using Android studio, deployed and ran it directly by using my mobile running Oreo.
It installed successfully. But later I tired to share the APK from my mobile to other mobiles. But none of them are able to Install it.
However, if I build the APK and share the app-debug.apk to other mobiles. It Installs successfully.
I can't build APK and share app-debug.apk it everyone.
I usually deploy it in my mobile, share APK(which used to work before)
Can anyone please help
Please excuse typos, I have typed from mobile.
There might be a signing issue. Is your app signed? The default signing is the debug signing. When you just build and deploy or run it on a connected device, it is signed by default as a debug sign.
If it is not uniquely signed, then running or installing on other devices might not be possible. Look at the app signing instruction and guide by Google, here, if you wish to distribute your app on other devices.
Another problem might be in the security authorization of other devices. Your device on which you are building has the developer options turned on. To run and install unsigned apps you'll need to activate the developer options in the device you want to run it on. Look at this link about Developer Options and how to turn it on.
by default the Android Studio packages just the needed files and installs the app in your mobile. If you share to other mobiles, the app will not install in few devices due to a few reasons like OS version, files mismatch, SHA keys mismatch, etc.
However, if you build the APK and share, the APK is equipped to be installed in any device starting from the minimum SDK version to the target SDK version.
I'm new to android, When i'm installing android app via USB cable manually it's running but i want to share it and run in another mobile phones for testing purpose for that what i've to do?
Go to Build menu, then click on Build APK. A pop-up appears having title Build APK
APK(s) generated successfully.
Show in Explorer. Then click on Show in Explorer and your APK file is ready to share.
What's the real issue..? Take the APK and simply sideload it in another phone. Or, connect the phone with your machine.
Firebase offers a limited test for any real and virtual devices on your choice. Use the free services everyday to test it on all available devices.
App works fine in emulator. I also emailed myself the apk and installed it on my phone, and it works fine.
When I run cordova run android on my laptop it says it installs it correctly (lie) and then launches it successfully (true).
It never copies it from my laptop to the phone.
How can I fix this? How can I debug this?
Is there some app id or app name I need to change? Where?
Phone is 4.1.1 , do I need to specify a target level?
USB debug is on on phone, as well as allowing apps from unknown sources.
If all else fails, how can I copy the apk easily to my phone?
It's bizarre but adb install my.apk works just fine but cordova run android doesn't work at all.
Otherwise, you can install a file browser app on your phone. Copy apk to USB storage on phone, then install via file browser.
I have developed an application using Android SDK 1.5, application works well on Android Simulator.
Now, I am trying to install application on actual device. I don't have the Android device. So, I am going by OTA way.
For this, I have generated the self sign keystore using keytool utility.
And, using Eclipse's "Eclipse Signed Application package.." option I have generated the signed .apk file and moved it to my web server.
Also, i added MIME type on web server for .apk.
But, when I am trying to download and install the same application on device, application get downloaded and it also prompts for permission. After thag when I click on "Install", it fails with error Application Install Unsuccefull.
Interestingly, I test this url on simulator browser, and it worked perfectly well and application get installed successfully.
Even, I checked that, SDCard is there on device. Settings -> Applications and "Unknown sources" option is alos checked.
Am I clear to you all?
Any Idea what may be going wrong here?
Thanks and appreciate your response,
S.Satheesh
What happens if connect the phone via a USB cable and install the application using the adb install command? Testing this will allow you to determine if the problem is with the package or the over the air update.
Also, you could try running adb logcat to view the logs from your phone after the failed install as this should show you what the problem is.