简体   繁体   English

在设备上安装Android APK时出错

[英]Error when installing Android apk on device

I have this strange error when installing apk on device, from Eclipse. 从Eclipse在设备上安装apk时出现此奇怪错误。 The console gives error message: Failed to install, but in fact the file is installed. 控制台显示错误消息:安装失败,但实际上已安装文件。

Also, the application doesn't start after the installation, I have to do it manually. 此外,该应用程序在安装后无法启动,我必须手动进行。

I have done the this same procedure over and over again, without problems, but now the error occurs. 我一遍又一遍地执行了相同的步骤,没有问题,但是现在出现了错误。

Thanks! 谢谢!

Does your ADB work normally when issued from command prompt? 从命令提示符下发出命令时,您的ADB是否正常工作? Try installing any apk manually using 尝试使用手动安装任何apk

adb install <filename.apk>

and see what is being returned. 并查看返回的内容。 It may be an issue with the return from adb not being correctly recognized by eclipse. eclipse无法正确识别adb的返回可能是一个问题。 I'll also suggest changing the USB port to check if the same issue is occurring. 我还将建议更改USB端口以检查是否发生了相同的问题。

在安装新的APK之前,请尝试在设备上删除该应用。

I've found that sometimes a device gets stuck in a strange state, and no matter what you do will give odd errors on install. 我发现有时设备会陷入奇怪的状态,无论您做什么都会在安装时出现奇怪的错误。 Turning the device itself on and off again usually cures the problem. 打开和关闭设备本身通常可以解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM