Android基础之错误Failed to install

本文涉及的产品
阿里云百炼推荐规格 ADB PostgreSQL,4核16GB 100GB 1个月
简介: 博客出自:http://blog.csdn.net/liuxian13183,转载注明出处! All Rights Reserved ! Android error: Failed to install *.


博客出自:http://blog.csdn.net/liuxian13183,转载注明出处! All Rights Reserved ! 


Android error: Failed to install *.apk on device *: timeout

关于这个问题,常见的几个解决方案:

PS:第9条最为常用

1、把ADB的DDMS由5000设到10000


2、adb kill-server adb start-server
3、换一根新的数据线
4、重启手机
5、不要用USB3.0插口来插手机
6、卸载应用,用Eclipse重装
7、在Eclipse的Preferences中修改USB与电脑的连接端口

8、重启电脑

9、netstat -a -n -o |findstr "5037" 

在命令行输入上述命令,在Windows任务管理器-进程,找到PID为5037但不是adb.exe的,杀死它,常见的有tadb.exe,AndroidServer.exe等,然后重启Eclipse

或者把上述方法结合使用。


另外手机连不上eclipse解决办法如下:

给sdk在环境变量那时配一下就可以,记得tools和platform-tools都要配上!


上面讲了eclipse早期的问题,不过目前已经切换到AndroidStudio,再讲一些有关安装不上的问题:

时间:2017.8.9

机型:红米4x

问题:DELETE_FAILED_INTERNAL_ERROR Error while Installing APKs

解决过程:

1、在手机设置-安全中将“安装未知来源”勾选,尝试无效 

2、查找与5037端口启用的其他应用,没有

3、在手机开发者设置中,打开”USB安装“,尝试无效

解决方案:

1、在开发者模式中,将“启动MIUI优化”这一项关闭-原因可能是小米对adb安装命令做过拦截。

2、将AndroidStudio的InstantRun关闭-原因可能是小米对InstantRun这种切割apk方式不支持

终极方案当然是解决方案1了。

PS:使用adb命令连接手机和电脑进行开发,方案:http://blog.csdn.net/xiabing082/article/details/54376461

注意:adb命令使用前,要使用数据线对电脑和手机建立连接。

相关实践学习
AnalyticDB PostgreSQL 企业智能数据中台:一站式管理数据服务资产
企业在数据仓库之上可构建丰富的数据服务用以支持数据应用及业务场景;ADB PG推出全新企业智能数据平台,用以帮助用户一站式的管理企业数据服务资产,包括创建, 管理,探索, 监控等; 助力企业在现有平台之上快速构建起数据服务资产体系
目录
相关文章
|
Android开发
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
android学习之——Gradle sync failed: Could not determine artifacts for xxxxx
【Bug】Android resource linking failed和error: failed linking references.
【Bug】Android resource linking failed和error: failed linking references.
|
5月前
|
Android开发 Windows
Android studio 报错Connect to 127.0.0.1:8888 [/127.0.0.1] failed: Connection refused: connect(已解决)
这是一篇关于解决Android Studio报错“Connect to 127.0.0.1:8888 failed: Connection refused”的文章。问题通常因系统代理设置被Android Studio自动保存导致。解决方法是找到系统中Android Studio使用的gradle.properties文件(位于Windows的C:\Users\你的电脑用户名\.gradle或Mac的/Users/.{你的用户目录}/.gradle),删除或注释掉多余的代理配置后保存并重新Sync项目。希望此经验能帮助快速解决同类问题!
818 36
|
Android开发
Caused by: android.system.ErrnoException: android_getaddrinfo failed: EACCES (Permission denied)
Caused by: android.system.ErrnoException: android_getaddrinfo failed: EACCES (Permission denied)
218 3
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associate
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associate
388 2
|
Android开发
Android Studio: 解决Gradle sync failed 错误
本文介绍了解决Android Studio中出现的Gradle同步失败错误的步骤,包括从`gradle-wrapper.properties`文件中获取Gradle的下载链接,手动下载Gradle压缩包,并替换默认下载路径中的临时文件,然后重新触发Android Studio的"Try Again"来完成同步。
6587 0
Android Studio: 解决Gradle sync failed 错误
|
开发工具 Android开发
解决Manifest merger failed : android:exported needs to be explicitly specified for <activity>
解决Manifest merger failed : android:exported needs to be explicitly specified for <activity>
536 1
|
开发工具 Android开发
Android Studio resource linking failed
Android Studio resource linking failed
323 1
|
Java Linux 开发工具
由" failed to run the android sdk manager"引起的一系列问题 android
由" failed to run the android sdk manager"引起的一系列问题 android
|
开发工具 Android开发 iOS开发
使用xamarin开发Android、iOS报错failed to open directory: 系统找不到指定的文件
使用vs2019学习xamarin时,创建新程序。使用模拟器真机等测试都报错如下图错误: ![请在此添加图片描述](https://developer-private-1258344699.cos.ap-guangzhou.myqcloud.com/column/article/5877188/20231030-de8ce5fd.png?x-cos-security-token=r4KyZDEowPT0kGTL0LqE8EnwfN1Nzexadb05dcffed3939ff8d7591c528c01706nvpGSE93QwHpZM8NwhJNTZctNRQa0l3KDhEnqj8P7d8t
223 0
使用xamarin开发Android、iOS报错failed to open directory: 系统找不到指定的文件