小编Mem*_*emo的帖子

程序类型已存在:android.support.v4.app.ActionBarDrawerToggle$Delegate

请任何人知道如何解决这个问题。

当我托盘清理然后重建我的应用程序时,我收到错误:-

Program type already present: android.support.v4.app.ActionBarDrawerToggle$Delegate
Run Code Online (Sandbox Code Playgroud)

我只是 Android 开发新手,我的项目需要一些帮助

构建.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'

    defaultConfig {
        applicationId "com.xingo.pirateadventures"
        minSdkVersion 14
        targetSdkVersion 27
        multiDexEnabled true

        ndk {
            moduleName "player_shared"
        }
    }

    dexOptions{

        javaMaxHeapSize "4g"
    }

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

        
    }
    sourceSets.main {
        jni.srcDirs = []// <-- disable automatic ndk-build call
    }
}

dependencies {
    implementation ('com.google.android.gms:play-services:+'){exclude module: 'support-v4'}
    implementation files('libs/dagger-1.2.2.jar')
    implementation files('libs/javax.inject-1.jar')
    implementation files('libs/nineoldandroids-2.4.0.jar')
    implementation files('libs/support-v4-19.0.1.jar')
    implementation …
Run Code Online (Sandbox Code Playgroud)

android

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1