Reputation: 667
I am trying to run my app on Android Studio 3.5. It throws an error while installing the app on the phone.
Installation did not succeed. The application could not be installed. Installation failed due to: ''cmd package install-create -r -t --full -S 2164012' returns error 'Unknown failure: cmd: Failure calling service package: Failed transaction (2147483646)'' Retry
Upvotes: 4
Views: 9127
Reputation: 7676
Please note that I was getting this error when I had emulator-5554 (minSdk(API28))
selected as the deployment target, but it went away when I changed that to Pixel_3a_API_30_x86
.
Upvotes: 0
Reputation: 667
Upvotes: 3
Reputation: 3193
Since there can be multiple reasons why it occurred, please try the following - one should work:
Preferences > Build, Execution, Deployment > Instant Run
adb uninstall <package_name>
command from the terminal to ensure uninstalling & try installing againPhone Manager > Cleanup and Optimize
- it also worked for me on 2 Huawei devicesUpvotes: 2