本文介绍了Android的工作室:失败[INSTALL_FAILED_INVALID_APK]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我跑我的应用程序时,有以下问题:
I have the following problem when running my app:
Waiting for device.
Target device: samsung-gt
Uploading file
local path: C:\Users\kwmaster\AndroidStudioProjects\Count500\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/xxxxx
Installing xxxxx
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/xxxxx"
pkg: /data/local/tmp/xxxxx
Failure [INSTALL_FAILED_INVALID_APK]
为什么它没有让我安装APK ???
Why did it not let me install the apk???
推荐答案
在我的情况(我有一个根深蒂固的设备),当我扎根,发生了一件事与/数据/本地/ tmp中的我的许可
,他们已经改变,因此亚行
将无法访问温度
文件。
In my case (I have a rooted device) and when I rooted, something happened with my permission of /data/local/tmp
and they have been changed, so adb
can't get access temp
file.
我如何解决它:
- 安装RootExplorer
- 创建SD卡上新的
TMP
文件夹 - 在
TMP
龙preSS文件夹,选择链接到该文件夹(在菜单中最后一个选项) - 到
/数据/本地/
,然后点击按钮创建链接自下而上
- Install RootExplorer
- Create new
tmp
folder on SD card - Long press on
tmp
folder, and select "Link to this folder" (last option in menu) - Go to
/data/local/
and tap button "Create link" from bottom
这篇关于Android的工作室:失败[INSTALL_FAILED_INVALID_APK]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!