android - 从 Android Studio 3.0 构建时如何克服应用程序未安装错误?

标签 android android-developer-api android-debugging

为了从 Android Studio 3.0 为调试 Android 应用程序提供构建,它没有安装在具有 Marshmallow 及更高版本的移动设备中(在 Lollipop 中未测试)。

我已经使用了 Stack overflow 中的许多解决方案,但仍然无法正常工作。

手机一直显示App Not Installed

最佳答案

原来的问题没有足够的信息,但我们可以通过一些信息获得一些评论:

  • Android studio 3.0 and compileSdkVersion 26, buildToolsVersion '26.0.2',minSdkVersion 15, targetSdkVersion 26

  • virtual debugging option also on.

  • I am facing same issue after upgrading android studio from 2.3 to 3.0

好的消息“App Not Installed” 将涉及多种原因,请返回 Android Studio 2.3。从 3.0 开始不是一个选项!

当我们从 Android Studio 2.3 升级到 3.0 时,我们会发现一些主要由支持库引起的配置问题,这将导致我们的应用程序无法安装。

为了避免这个问题,我们需要在 Android Studio 3.0+ 中使缓存失效,这个问题就会得到解决。

introducir la descripción de la imagen aquí

请尝试此选项。

关于android - 从 Android Studio 3.0 构建时如何克服应用程序未安装错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47035090/

相关文章:

android - 在 GridView 中拖放

android-studio - 多个人可以在一个android studio项目上工作吗

android - 将现有 JAR 或 AAR 作为新项目模块导入

android - 在 Android Studio 中附加调试器的快捷方式

android-layout - 使用 "merge"和 "include"

java - 如何将自定义 View 与其他 UI 组件一起使用?

android - 如何在 android 中使用 ProGuard 和 OrmLite

android - 从 API 级别 < Android 26 (Oreo) 的 RGB 值创建颜色对象

java - onClickListener 用于根据编辑文本更改按钮文本

java - 如何在调试应用程序时检查当前正在运行哪个 Activity