Pro*_*mer 20 failed-installation android-2.3-gingerbread dexopt android-studio
我无法从Android工作室运行应用程序到运行android 2.3.6的samsumg手机.我正在获取应用程序安装失败的弹出窗口参见下面的截图.

当我点击OK我在日志中得到以下错误
Failure [INSTALL_FAILED_DEXOPT]
DEVICE SHELL COMMAND: pm uninstall my.package.name
Unknown failure
在添加名为"带有Google Cloud Messaging的App Engine后端"的Google云端模块后,我遇到了麻烦.
这与此处的堆栈溢出问题中描述的问题完全相同
我尝试了接受的答案.
Ran dex-method-counts应用程序我在终端获得了"总方法计数:24474".我不明白接下来该做什么?
(注意:在kitkat上运行的其他设备上运行相同的应用程序.)
请帮助解决此问题.我过去两天都在苦苦挣扎.我知道有很多类似的问题,但没有任何帮助我.
内置 - >清洁不起作用.
这是我的build.gradle文件
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'
}
提前致谢!
DrG*_*use 17
当我收到此错误时,我在 AVD-Manager 中使用了 Nexus 4。默认情况下,此设备创建时具有 500MB 的内部存储空间。我将存储增加到 2048MB,“过时的 dexed”错误消失了。
增加内部存储:
小智 0
我也有同样的问题。为了使其工作,我必须从依赖项中删除“第三方库”。或者试试这个: https: //developer.android.com/tools/building/multidex.html
| 归档时间: | 
 | 
| 查看次数: | 13057 次 | 
| 最近记录: |