- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
作为我的问题的序言,我查看了我在 StackOverflow 和网络上可以找到的所有类似问题,但都没有成功。几个月来,我一直在使用真实设备进行开发,没有任何问题。昨天,我将之前一直使用的 Android Studio 更新到了 0.5.4 版本。此更新要求我升级到 Gradle 版本 0.9,因为构建系统显然有一些重大变化。自升级我的 IDE 后,当我尝试在我的设备上运行我的项目时,我在运行控制台中得到以下输出:
运行控制台输出
Waiting for device.
Target device: samsung-sch_i605-42f7bff119a3bf69
Uploading file
local path: C:\Users\student\Android studioProjects\DrunkModeAndroid\DrunkMode\build\apk\DrunkMode-debug-unaligned.apk
remote path: /data/local/tmp/com.launchfuture.drunk_mode
Installing com.launchfuture.drunk_mode
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.launchfuture.drunk_mode"
pkg: /data/local/tmp/com.launchfuture.drunk_mode // this line is red
Failure [INSTALL_FAILED_DEXOPT] // this line is also red
Logcat 输出
04-06 14:44:00.066 8040-8040/? D/Finsky﹕ [1] WorkerTask.onPreExecute: Verification Requested for id = 21, data=file:///data/local/tmp/com.launchfuture.drunk_mode flags=114 fromVerificationActivity=false
04-06 14:44:01.586 12740-12740/? W/dalvikvm﹕ DexOptZ: zip archive '/data/app/com.launchfuture.drunk_mode-1.apk' does not include classes.dex
04-06 14:44:01.591 2001-2001/? W/installd﹕ DexInv: --- END '/data/app/com.launchfuture.drunk_mode-1.apk' --- status=0xff00, process failed
04-06 14:44:01.591 2001-2001/? E/installd﹕ dexopt failed on '/data/dalvik-cache/data@app@com.launchfuture.drunk_mode-1.apk@classes.dex' res = 65280
04-06 14:44:01.591 2410-2621/? W/PackageManager﹕ Package couldn't be installed in /data/app/com.launchfuture.drunk_mode-1.apk
build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.code.gson:gson:2.2.+'
compile files('libs/Parse-1.4.0.jar')
compile files('libs/GoogleAnalyticsServicesAndroid_3.01/libGoogleAnalyticsServices.jar')
compile 'com.google.android.gms:play-services:4.1.32'
}
android {
compileSdkVersion 19
buildToolsVersion '19.0.0'
defaultConfig {
minSdkVersion 13
targetSdkVersion 19
}
}
我的 android 设备已获得 root 权限,因此我可以在指定位置查看文件系统。值得注意的是,/data/dalvik-cache/
目录中不存在对 data@app@com.launchfuture.drunk_mode-1.apk@classes.dex
的引用.你们有处理这个问题的经验吗?
最佳答案
请清空/data/dalvik-cache 的内容并重新启动(或从恢复中删除 dalvik 缓存)以便重建它好吗?
关于Android 应用程序安装失败,错误为 : [INSTALL_FAILED_DEXOPT],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22899828/
您好,我有一个很大的问题,我的应用程序大小约为 10mb,我有 7mb 的 junit (jar) 文件。最近我在添加我的 apk 未安装到 api 级别低于以下的设备后,用我的应用程序更新了 goo
我在 Android 中使用 ccr4j API,所以当我运行我的项目时,它抛出了如下错误: 安装应用程序时出错 (INSTALL_FAILED_DEXOPT) 我也在网上和同一个网站上找到了,都试过
我在尝试从 eclipse 安装和测试 Android 构建时遇到此错误: 安装错误:INSTALL_FAILED_DEXOPT logcat 揭示了这一点: 07-02 21:49:44.924:
当我在虚拟设备中上传我的应用程序时出现问题,如何解决?虚拟设备:Nexus S,CPU:Intel Atom x86。我正在使用 Android Studio Waiting for device.
近一年来,我一直收到一小部分用户的投诉,他们要么无法安装我的应用程序,要么安装了应用程序但以后无法更新。我尽最大努力重现此错误,以便我可以了解可能导致它的原因,但用户提到的唯一一件事是他们从 Goog
我想在我拥有 root 权限的 Google Tango 平板电脑上安装一个应用程序。我也尝试使用 make -j 和 ant debug install 进行编译,但我仍然遇到错误 [exec] F
作为我的问题的序言,我查看了我在 StackOverflow 和网络上可以找到的所有类似问题,但都没有成功。几个月来,我一直在使用真实设备进行开发,没有任何问题。昨天,我将之前一直使用的 Androi
我遇到了与列出的 here 类似的问题和 here . 每次我尝试在摩托罗拉 Xoom 上安装我的应用程序时都会收到 INSTALL_FAILED_DEXOPT 错误。 这是来自控制台的错误消息: [
我正在使用 Android 2.2 开发一个 Android 应用程序,我的应用程序 APK 大小为 22.5 MB,我想为三星平板电脑创建一个新版本。我收到以下错误: INSTALL_FAILED_
当我尝试在低于 lollipop api 的版本上运行我的应用程序时,我总是收到此错误。 Click here to see error.运行 pkg: /data/local/tmp/bat
背景 我想简化 Android 应用中数据库的使用。 为此,我比较了一些创建 DAO 层的第三方库。 我想出了一个很好的库,叫做“GreenDao”(关于它的介绍 here)。该网站显示它比其他竞争对
在解释为什么我必须发布这个问题之前,让我解释一下,我已经遍历了列表中的大多数其他答案,但都无济于事。 我在安装 APK(通过真实设备上的 adb.exe)期间遇到的问题是 [INSTALL_FAILE
尝试使用 Android Studio 运行 Kotlin Android 项目编译成功并生成 APK,但当 Studio 尝试在设备上安装 APK 时,安装失败并显示 INSTALL_FAILED_
我尝试在三星设备上从 eclipse 运行一个项目,我得到了安装错误:INSTALL_FAILED_DEXOPT 但我尝试在其他设备三星S4上运行,它安装成功。 我已经在下面的线程中尝试过类似的提及
我用的是最新的adt-bundle-windows-x86_64-20130717,有 Android SDK 工具 - 22.0.4 Android SDK 平台工具 - 18 我曾尝试在 ARM
生成的“app-release.apk”……在我的设计中不起作用,但“app-debug.apk”运行良好, 更新: 转到我的应用程序的先前版本后: 在我的 MainActivity 中我有这个字符串
在尝试将应用程序部署到实际的 Android 设备进行调试时,我已经尝试了几乎所有的方法来尝试纠正此错误,但一直无法解决问题。每次我尝试启动时,我都会收到失败的 [INSTALL_FAILED_DEX
我尝试了几乎所有的解决方案,但仍然没有成功,但是任何人都可以指导我为什么会发生此内存问题?以及解决这个问题的最佳方法? 安装没有成功。无法安装应用程序:INSTALL_FAILED_DEXOPT设备可
我开始使用 android studio,并成功地在模拟器上运行我的应用程序, 在有时成功之后,当我想再次运行我的应用程序时, 我收到错误 失败 [INSTALL_FAILED_DEXOPT] 并让我
我正在尝试为 Jelly Bean 运行 Android 兼容性测试。我目前正在执行以下操作来构建我的 Android 源代码,然后构建 CTS: cd "my-android-source-root
我是一名优秀的程序员,十分优秀!