Recently I bought a new computer and installed Android Studio on it. I transferred all te files necessary from my old computer so I could continue my work on my app.The code was built and ready to upload to my device, but I got the message ' INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES', and Android Studio advised me to uninstall my app from my phone and try again.Whe I tried this, I noticed the 'delete' button was greyed out, and in Settings -> Apps -> TestApp (name of my app) I noticed the buttons for 'Force quit', 'Move to SD-card', and 'Clear Cache' were all greyed out.Is there anything I can do to make my phone delete my app, and to enable these functions in the future?EDIT: after running adb uninstall mypackagename I got the result Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]. My app uses the Device Policy Manager for locking and unlocking the phone.
SOLVED: After looking up the error code, I found the solution here at StackOverflow.
Thank you very much everyone!
Try this command from adb, after connecting your phone to pc in usb debugging mode
adb uninstall yourapppackagename
Package name you can see from the app info in the phone or packageid from your app gradle file
After running adb uninstall mypackagename like Umar Hussain pointed out, I got the result Failure [DELETE_FAILED_DEVICE_POLICY_MANAGER]. My app uses the Device Policy Manager for locking and unlocking the phone.
After looking up the error code, I found the solution here at StackOverflow.
Related
Recently I tried to debug an application on my phone but I found this error :
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
I tried the following :
Disable USB Debugging and Re-Enable it.
Disable MIUI Optimization and Re-Enable it.
Restart my phone.
The Problem still exists. I need some help.
Thanks in Advance !
Please check all this configuration in your device before you run your app into your physical android device
Enable Unknown sources toggle in settings so it will allow you to install apk which are not downloaded from google playstore
Enable USB Debugging toggle in settings which will allow you to install and debug by USB
once done unplug device and plug again so it may ask you for sha key confirmation which you need to confirm on plugin device
after that try to run app on your device , which will show you small dialog with timer of 10 seconds to allow to install .. if you miss it then it will automatically reject and show you error that you are facing
I am trying to deploy an update of an existing Mobile application & keep getting the following exception:
"App Not Installed"
Q: What am I doing wrong?
Q: Is there a way to see or activate ERROR messages?
I have the following:
Samsung Galaxy S9+
42 GB free disk space
3 GB memory available
No SD Card
I am using the following APK file:
com.[companyname].pulse.apk
...in my Phone\Download directory
...and it shows up in the "Installation Files" listing
...this is NOT the signed file (is that right?)
I have done the following:
Gone to "Install Unknown Apps" and verified "Allowed" is checked for "My Files"
The 1st time I accessed it...I was forced to choose "Allowed"...as well
Enabled "Developer Options" through the "About Device" menu's
I developed using:
Xamarin.Forms (2.5.0.280555))
Q: What am I doing wrong?
The reason may be that there is already an application with the same package name installed by the IDE. You can't install it successfully when you install the same apk with the same package name. Have a try as follow:
Uninstall the installed same app on your phone first.
Reinstall the apk app
Q: Is there a way to see or activate ERROR messages?
You can use adb command to check log info in PC or Mac:
adb logcat -v time
If do not know adb , you can refer to here.
This is my FIRST attempt at any mobile application...so...as it turns out:
Drop the SIGNED APK file onto your phone
Install using the SIGNED APK file
When installing, a PLAY STORE prompt will appear...choose "Install Anyway"
You're done.
To be fair, someone in the office told me to use the UNSIGNED APK file...which turned out to be bogus.
I'm working in Android Studio 2.2 RC on OSX 10.11 , and after implementing In-App Billing, after having generated my app-release.apk and having installed it on my phone, I noticed that when the purchase is successful and Ads are removed from my App, something in a secondary Activity of mine, is causing a NullPointerException and Activity is not loading.
To figure out what is causing it, I need to somehow debug the app while the In-App Purchase is active (debug.apk won't let me complete iAP) so...
How do I debug a release apk that is installed on my phone?
Use the following steps:
Enable debug in your device and connect usb to your device use
command adb devices to list connected devices
use command adb -s "device id" logcat and hit enter
It will show you a lot of log message but don't worry. Just test your phone and it will show you the error. Use ctrl + z to stop the log and you can check your error.
Please read this link. It will help more. Hope this will help you.
I did a lot of searching, but couldn't find a solution for my problem. I have a complete Android app which runs perfectly in the emulator. The signing process works fine, but as I copy the .apk-file on my phone and try to install it, it says, that nothing was installed.
Installing the app via eclipse and a USB cable works, but I can't share the app that way.
Additionally unknown sources for apps are accepted.
Do you have any idea? I'm quite embarassed, that I have to ask this here, but I don't see another way...
If you have previously debug signed application installed. Then you need to uninstall the app first. Open terminal and type adb uninstall <your app package name>
I made a few updates to the code for my android app and tried to test it in my phone but Eclipse gives me an error saying Re-installation failed due to different application signatures. Now I understand by googling that I have to uninstall the package using adb but I don't know how to do it? I mean it asks me to use adb uninstall in a shell but I have no experience in developing android apps using command line.
Any help will be appreciated!
You could also just delete the application from your phone going to "Settings" -> "Applications" -> "Manage applications". Find your app and delete it.
Connect the device and run
adb uninstall com.mypackagename.myappname