安装失败,因为该设备可能有失效的dexed罐子不符合当前版本(dexopt错误) [英] installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error)

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

问题描述

我无法运行Android的工作室应用我的SAMSUMG手机运行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.

当我点击OK,我得到下面的日志中的错误

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的后端与谷歌云通讯之后。

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

这正是在堆栈溢出的问题之一<所描述的相同的问题href=\"http://stackoverflow.com/questions/25493310/cant-upload-android-app-to-device-stale-dexed-jars\">here

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

我试过接受的答案。

DEX-方法-计数应用程序我得到了整体法计数:24474,在终端。我不明白下一步该怎么做?

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

(注:同一应用程序上运行的奇巧我的其他设备上运行)

(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.

内置 - >清理工作不

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'

}

在此先感谢!

推荐答案

停用即时运行

Android的工作室 - &GT; preferences - &GT;即时运行

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

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