Reputation: 235
02/21 08:38:52: Launching 'app' on Xiaomi Redmi Note 7 Pro.
Installation did not succeed.
The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
Installation via USB is disabled.
The USB Debugging is ON and so is the Install Via USB and File Transfer I didn't have this problem till now. The weird part is that Other apps can be installed the same way over USB but this particular app isn't happening I have tried restarting both my PC and Phone
I tried installing it in another phone and still shows the same error while other apps are being installed without a problem
Upvotes: 3
Views: 9694
Reputation: 63
USB debugging on Install via USB on Wireless debugging on
If Install via USB is not working, it requires a SIM card. Insert a sim card without switching off the mobile. Hence it will allow you to activate it. After activation, you can take the sim card out.
Upvotes: 0
Reputation: 1
Basically, you have to give install it via USB permission to install the app inside developer mode option
Upvotes: 0
Reputation: 3396
Mostly check the targetSdk version in the android.defaultConfig:
defaultConfig {
applicationId "com.matukadevelopers.todo"
minSdk 23
targetSdk 32
// targetSdkPreview "Tiramisu"
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
replaced targetSdkPreview "Tiramisu"
with targetSdk 32
and it worked.
Upvotes: 0
Reputation: 29
Working fine after disable the MIUI Optimization option in Xiaomi. Now I am not getting the popup.
Upvotes: 2
Reputation: 235
I turned off MIUI Optimization and restarted my phone and it worked. Really cant understand why
Upvotes: 8