无法通过Eclipse的Andr​​oid设备上安装APK [英] Cannot install APK on Android device through Eclipse

查看:270
本文介绍了无法通过Eclipse的Andr​​oid设备上安装APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用PhoneGap的和Eclipse的一个小的Andr​​oid应用程序的工作前一阵子了Android 2.3.3 SDK。我跑我的建立在我的股票HTC感觉,一切都很好。今天,我决定把根我的手机并安装ICS ROM,这工作正常(的Andr​​oid 5.0.2的革命,如果它事项)。我下载了4.0和4.0.3软件开发工具包,以及更新的ADT,但我似乎无法能够建立我的设备了。 LogCat中给了我以下警告:

I started working on a small Android app using Phonegap and Eclipse a while ago with the Android 2.3.3 SDK. I ran my builds on my stock HTC Sensation and all was well. Today I decided to root my phone and install an ICS rom, which works fine (Android Revolution 5.0.2 if it matters). I downloaded the 4.0 and 4.0.3 SDKs as well as updated ADT but I cannot seem to be able to build for my device anymore. LogCat gives me the following warnings:

12-26 18:12:24.251: W/asset(17419): Asset path /data/local/tmp/myapp.apk is neither a directory nor file (type=0).
12-26 18:12:24.251: W/DefContainer(17419): Failed to parse package
12-26 18:12:24.251: W/ActivityManager(11546): No content provider found for permission revoke: file:///data/local/tmp/myapp.apk

其实,我可以看到/设备上的数据,但并不/数据/本地/。有没有人遇到过类似的情况吗?

In fact, I can see /data on the device but not /data/local/. Has anyone ever encountered a similar situation?

感谢您

推荐答案

问题是与安装目录的权限。 /数据/本地需求有写和执行权限的其他的,以便亚行包正确安装。

The problem was with the install directory permissions. /data/local needs to have write and execute rights to others in order for adb packages to install correctly.

这篇关于无法通过Eclipse的Andr​​oid设备上安装APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆