Android的工作室:失败[INSTALL_FAILED_INVALID_APK] [英] Android Studio: Failure [INSTALL_FAILED_INVALID_APK]

查看:5917
本文介绍了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.

我如何解决它:


  1. 安装RootExplorer

  2. 创建SD卡上新的 TMP 文件夹

  3. TMP 龙preSS文件夹,选择链接到该文件夹​​(在菜单中最后一个选项)

  4. /数据/本地/ ,然后点击按钮创建链接自下而上

  1. Install RootExplorer
  2. Create new tmp folder on SD card
  3. Long press on tmp folder, and select "Link to this folder" (last option in menu)
  4. Go to /data/local/ and tap button "Create link" from bottom

这篇关于Android的工作室:失败[INSTALL_FAILED_INVALID_APK]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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