安装失败,因为设备可能有与当前版本不匹配的过时 dexed jar(dexopt 错误) [英] installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error)

查看:44
本文介绍了安装失败,因为设备可能有与当前版本不匹配的过时 dexed jar(dexopt 错误)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将应用程序从 android studio 运行到运行 android 2.3.6 的三星手机.我收到应用程序安装失败的弹出窗口,请参阅下面的屏幕截图.

I am unable to run app from android studio to my samsumg phone running android 2.3.6. I am getting Application installation Failed popup refer below screenshot.

当我点击确定"时,日志中出现以下错误

when I click on OK I get below error in log

Failure [INSTALL_FAILED_DEXOPT]
DEVICE SHELL COMMAND: pm uninstall my.package.name
Unknown failure

在添加名为App Engine Backend with Google Cloud Messaging"的 Google Cloud 模块后,我遇到了这个麻烦.

I got in this trouble after adding Google Cloud Module called "App Engine Backend with Google Cloud Messaging".

这与堆栈溢出问题之一中描述的问题完全相同这里

This is exactly same problem described in one of stack overflow questions here

我尝试了接受的答案.

运行 dex-method-counts 应用程序我在终端中得到总体方法计数:24474".我不明白接下来要做什么?

Ran dex-method-counts application I got "Overall method count: 24474" in terminal. I dont understand what to do next?

(注意:相同的应用程序正在运行在 kitkat 上的另一台设备上运行.)

(Note : The same application is running on my other device running on kitkat.)

请帮助解决此问题.过去两天我一直在挣扎.我知道有很多类似的问题,但没有任何帮助.

Please help to resolve this issue. I am struggling from past two days. I know there are many similar questions but nothing helped me.

已构建--> Clean 不起作用.

Built--> Clean is not working.

这是我的 build.gradle 文件

Here is my build.gradle file

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "my.package.name"
        minSdkVersion 9
        targetSdkVersion 19
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_7
            targetCompatibility JavaVersion.VERSION_1_7
        }
    }

    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}


dependencies {
    compile files('libs/libGoogleAnalyticsServices.jar')
    compile project(path: ':gcmAppEngineBackend', configuration: 'android-endpoints')
    compile 'com.android.support:support-v4:22.0.0'
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.google.android.gms:play-services:7.0.0'

}

提前致谢!

推荐答案

这通常是因为您的设备没有足够的内存空间.

This usually happens because your device doesn't have enough space in memory.

删除一些应用程序并重试

Delete some apps and try again

这篇关于安装失败,因为设备可能有与当前版本不匹配的过时 dexed jar(dexopt 错误)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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