出现错误“包似乎已损坏"安装apk文件时 [英] Getting error "The package appears to be corrupt" while installing apk file
问题描述
我遇到了一个奇怪的问题.我在将 Android Studio 从 2.3.3 更新到 3.0 后遇到了这个错误..问题是当我尝试安装 apk 文件时它说
I am having a weird problem.I got this error after I updated Android Studio from 2.3.3 to 3.0..The problem is when I try to install apk file it says
应用未安装.包裹似乎已损坏.
App not installed. The package appears to be corrupt.
我尝试在调试和发布版本中生成 apk 并尝试安装,但每当我安装 apk 时,它都会显示相同的消息..
I have tried generating apk in both debug and release version and tried to install but whenever I install apk it show the same message..
当我从 android studio 运行 android 项目时,它正在运行.可能是 gradle 问题,但无法解决.请帮忙
When I run the android project from android studio it is working. May be the gradle problem but couldn't fix it. Please help
推荐答案
找了很多我找到了解决方案:
After searching a lot I found a solution:
转到构建-> 构建 Apk.
Go to Build-> Build Apk(s).
创建 apk 后,您将看到如下对话框.
After creating apk you will see a dialog as below.
点击定位并安装到您的手机中
Click on locate and install it in your phone
享受
这篇关于出现错误“包似乎已损坏"安装apk文件时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!