android应用程序安装失败,Android Studio:应用程序安装失败

I'm Using Redmi 3s mobile. I got same problem.

Solution: This issue is common on Xiaomi phones running MIUI 8. This can resolved by turning off MIUI optimizations from Developer Options in Settings app. Then recompile the app and voila it works.

Settings --> Additional settings --> Developer options --> Turn Off MIUI optimization

Or

Settings --> Developer options --> Turn Off MIUI optimization

I got the same problem , just choose clean project then rebuild project from build menu , it's solved my problem

Disable Instant Run

Preferences > Build, Execution, Deployment > Instant Run

Source: comment by @user77309

79e65c593d4be81556ecfcce0dfb6957.png

Today I phased this error and solved it easily.

Path: Android Studio Preference / Build, Execution, Deployment / Instant Run

Go to Android Studio Preference (for Mac) or Settings (for windows)

Choose Build, Execution, Deployment tab

Choose Instant Run

Uncheck Enable Instant Run to hot swap code/resources changes on deply (default enabled)

It works for me!!

Go to Settings > Applications. Probably you have the app still installed for other users (I had the same problem with a Moto G, I did not see the app among other apps, but it still was among my apps in Settings). Try to find it and remove for all users.

If the problem is this one you will find the app at the end of the list (in Settings > Apps > All)

All the apps marked as "Not installed" are still there and you can not install the same apps with Android Studio until they are there

67ff5afa8175b0e89523690b255b857f.png

This happens when your app is using any library and there is also an app installed in your device that is using the same library.

Go to gradle and type:

android{

defaultConfig.applicationId="your package"

}

this will resolve your problem.

INSUFFICIENT_STORAGE

Solution:clean you phone storage

Pay attention Android Studio log:

open: Permission denied

open: Permission denied

pkg: /data/local/tmp/com.example......... Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]

Step 1: Go to "Setting" → find "Developer options" in System, and click.

Step 2: TURN ON "Verify apps over USB" in Debugging section.

Step 3: Try "Run app" in Android Studio again!

and you should also TURN ON following fields inside "Developer option" .....

1: TURN ON ->"Install via USB" field

Some solutions:

1 Build -> Clean Project

2 Build -> Rebuild Project

3 Built -> Make Project

4 Remove your application from device and try install again

5 Mb you have some problems with actual version of yours app(try to pull actual branch). Also you can check on your emmulator, if yours app is running.

6 Try to use 1,2,3,4 solutions.

The solution for me was : (in a Huawei)

Android Studio -> Build -> Clean Project

In the phone -> go to Phone Manager -> Cleanup and Optimize

I had the same issue, and found that it was the USB cable I was using that was causing the issue.

Changing the USB cable fixed the issue, and I could successfully install the app afterwards.

In real device do below tasks..

1.clean all cache memory.

2.check the internal storage space (if space is just 500 mb free, then remove some data or app in the internal storage maintain at least 1 gb space.

3.again do clean all cache memory.

4.now goto android studio or eclipse click on app goto run select the device and run

I hope app will install and it will run..!!!

Uninstalling from AVD worked for me. After reinstalling it worked

For the 1st time installation of apps in a device, enable developer option which is mentioned in the above post. For facing problem while installing the apps from the tool, follow the below steps....

By enabling an option in settings, you can install apps directly. Error will disappear.

For MI users: Go to Settings-> Additional settings-> Privacy-> Unknown sources (make it enable)

For Normal Users: Go to Settings-> Security -> Unknown sources (make it enable)

Simply closing Android Studio (and emulator) then re-opening fixed it for me. Once I ran the app again, the apk re-installed successfully and app ran properly.

Happened to me as well:

At the first time, it says-

Failure [INSTALL_FAILED_CONFLICTING_PROVIDER]

At the second time, it says-

DELETE_FAILED_INTERNAL_ERROR

This because of the new 'com.google.android.gms' version 8.3.0

Changing it back to 8.1.0 solved the problem in my case

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值