安装失败,因为:'null'-Android Studio 3.5 [英] Installation failed due to: 'null' - Android Studio 3.5

查看:559
本文介绍了安装失败,因为:'null'-Android Studio 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我遇到APK安装问题以来,我已将Android Studio更新至3.5.这是它显示的唯一日志:

I have updated Android studio to 3.5, ever since I am running into APK installation problem. This is the only log it shows:

Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION
Installation failed due to: 'null'
Retry

在真实设备上尝试安装APK时会发生这种情况.如果我从设备上卸载该应用程序,然后重新运行该版本,则它只会安装一次,然后在下一次安装时会不断抛出此错误.它可以在仿真器上正常运行,但是我不能为所有功能使用仿真器.

This happens when trying to install APK on a real device. If I uninstall the app from the device and then rerun the build, it installs only one time and then it keeps throwing this error on next installation. It runs fine on an emulator but I can not use an emulator for everything.

我尝试过的事情:

  • 已删除的Android Studio配置文件.
  • 从项目中删除了Gradle文件.
  • 无效和重置的缓存.
  • 清理/重建了项目.
  • 寻找类似的问题Stackoverflow(没有匹配我的问题)
  • 清洁安装(删除了包括SDK在内的所有文件)Android Studio 3.5

更新

我在计算机上安装了Linux Mint并在那里测试了AS 3.5,由于某些原因,即使对于Android 7及更低版本的设备,一切都可以正常工作.

I installed Linux Mint on my machine and tested the AS 3.5 there, for some reasons everything is working fine even for Android 7 and below devices.

以前的操作系统:Windows 10 1903

Previous OS: Windows 10 1903

当前操作系统:Linux Mint 19.2

Current OS: Linux Mint 19.2

我认为这个问题可能起源于Windows计算机.

I reckon this problem maybe originating on Windows machines.

推荐答案

打开运行/调试配置对话框

编辑您的应用>常规>安装选项>安装标志.

添加安装标志-r -t.

此标志表示adb install -r -t apkpath

这篇关于安装失败,因为:'null'-Android Studio 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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