Can't Debug Android Application on my Phone - android

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

Related

Reenable the permission to install an App via Flutter

I accidentally denied permission and checked remember my choice on Android but I wanted to install it on my Android Device.
I already tried disable Developer options and reenable them
create a new Flutter Project just with the same code
For Information purposes I am using a Firebase Database and Firebase Authentication/SignIn.
I'm on MiUI on a Xiamomi Mi 9 SE.
Install App By USB [Install canceled by user]
It is the same Problem as by #Atul Sharma.
I don't get the popup in an answer given.
try :
when trying to install Goto apps -> permissions -> Install bia USB, give permission
Go to developer options, revoke usb debugging authorisation , toggle install via USB
one of the above should work

Can't delete self-programmed app

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.

Genymotion: Installation failed with message INSTALL_FAILED_VERIFICATION_FAILURE.

I am running my app on Genymotion emulator, but from past 2-3 days it is showing
Installation failed with message INSTALL_FAILED_VERIFICATION_FAILURE.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing. error.
I don't know what is problem.
Thanks
Here is an explanation of the problem from the Genymotion team and how to solve it quickly.
One of the steps of the Android application installation is the application verification.
This step is a security feature that prevents applications including malware to be installed.
This step is only activated when Google Play Services are installed.
For safe apps, the application should be installed without any problem.
However, since the latest version of Google Play Services, the verifier rejects all application installation, even safe ones.
We are actively working on a solution for this problem. In the meantime, please use the following workaround to disable the verification:
If not already done, enable the developer settings by clicking several times on Build number in the About phone section of Settings
Go to the developer settings
If not already done, enable USB debugging
Disable verify apps over USB
Try again to install your application
the same error is fixed by this steep
1,Enable Developer settings :
Open Settings > ( settings of genemotion emulator or nox ).
Click 5 times on Build number.
Navigate to Developer settings.
2 Enable USB debugging.
3 Disable Verify apps over USB.
This is what I have done. Just turn on USB debugging in developer option in genemotion emulator just like you do in your phone.Removes safety check. It works.
This happened to me today after I've been doing USB debugging for months. My issue ended up being the fact that the device was in airplane mode which caused the verification to fail. When I turned the network on again it worked.
after done all step in Previous post , do this
Genymotion -> Settings -> Security -> check 'Unknown Source'

device no longer shows up on debug list

I use my Android phone to debug in Xamarin. I recently published one version of my app to the Play Store, so I changed the build configuration to Release beforehand.
After publishing, I changed it back to debug, but now my device no longer shows up in the list. I've made sure the configuration is set to debug and android:debuggable is true..my phone has USB debugging turned on and is being recognized by my computer, it just doesn't show up in Xamarin.
Did you install new software on your phone or laptop? New drivers? It happens allot to me too, that xamarin fails to detect my devices. Usually a pc reboot will do the trick. If not, and you are sure that your phone's settings are correct, i would suggest re-installing the newest usb drivers for your phone on your pc.

Application that runs from eclipse on device doesn't run on device alone, what can I do?

I build some application that collects info about the battery. when I try to run it using eclipse with debugging mode with the android device (not emulator) it works fine even when I just hit Run. When I install it on the device (the apk file) I can't run it...
Another strange thing when I install it the open button is disabled.
what can I do to determine what is the problem?
Check whether you have signed the application or not?have you disabled the debug mode in AndroidManifest.xml file by setting its value to "false"?

Categories

Resources