简体   繁体   English

PackageInstallationReceiver无法删除临时apk文件

[英]PackageInstallationReceiver can't remove temporary apk file

A friend got an error on his HTC Desire trying to install an app. 一位朋友的HTC Desire尝试安装应用程序时出错。 He uses eclipse for installing. 他使用eclipse进行安装。

The error from LogCat: LogCat的错误:

E/PackageInstallationReceiver( 244): Remove /data/local/tmp/my.package.apk Fail! W/System.err( 244): java.io.IOException: Error running exec().

I used adb shell to see whats inside this tmp folder. 我使用了adb shell来查看此tmp文件夹中的内容。 And there was no such apk. 而且没有这样的apk。 So I renamed another, but the error stays which means, that he never really tries to delete this apk, right? 所以我重命名了另一个,但错误仍然存​​在,这意味着他从未真正尝试删除此apk,对吗?

The same code runs fine on the emulator and my Nexus One. 相同的代码可以在模拟器和Nexus One上正常运行。 Some suggestions? 有什么建议吗?

I copied the .apk with the same name like the error to this error path then I started the application again and I got the same error but it works 我将与错误相同名称的.apk复制到此错误路径,然后再次启动应用程序,但遇到相同的错误,但它可以正常工作

... ...

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

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