Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 程序类型已存在:org.apache.commons.codec.CharEncoding_Android_Android Studio_Android Multidex - Fatal编程技术网

Android 程序类型已存在:org.apache.commons.codec.CharEncoding

Android 程序类型已存在:org.apache.commons.codec.CharEncoding,android,android-studio,android-multidex,Android,Android Studio,Android Multidex,这是build.gradle: apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "com.mymoonah.karameesh" minSdkVersion 17 targetSdkVersion 27 versionCode 4 versionName "1.0.2" b

这是
build.gradle

 apply plugin: 'com.android.application'

   android {
   compileSdkVersion 27
    defaultConfig {
    applicationId "com.mymoonah.karameesh"
    minSdkVersion 17
    targetSdkVersion 27
    versionCode 4
    versionName "1.0.2"
    buildConfigField 'String', 'APP_ID', '"6"'
    multiDexEnabled true
   }
  signingConfigs {
    config {
        keyAlias 'Mymoonah'
        keyPassword 'Mymoonah911'
        storePassword 'Mymoonah911'
        storeFile 
  file('/Users/ramzishadid/Desktop/work/mymoonah/MymoonahKeyStore')
    }
 }

  buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 
 'proguard-rules.pro'
        signingConfig signingConfigs.config
        debuggable false
        multiDexKeepFile file('multidex-config.txt')
    }
   }
    packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'jsr305_annotations/Jsr305_annotations.gwt.xml'
}
   dexOptions {
    javaMaxHeapSize "6g"
    preDexLibraries = true
}
  lintOptions {
    checkReleaseBuilds false
    abortOnError false
 }
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.google.android.gms:play-services-gcm:11.8.0'
implementation 'com.google.firebase:firebase-crash:11.8.0'
implementation 'com.google.android.gms:play-services- 
analytics:11.8.0'
implementation 'com.google.guava:guava:24.1-android'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation ('com.coinbase.android:coinbase-android-sdk:1.0.1'){
    exclude group: 'org.apache.httpcomponents', module:'httpclient'
}

implementation project(':jNCryptor')
implementation project(':cordova')
api project(':listable')

 }
  apply plugin: 'com.google.gms.google-services'
这是我犯的更多错误

  • 原因:java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException:合并dex存档时出错

  • 原因:com.android.builder.dexing.DexArchiveMergerException: 合并dex存档时出错

  • 原因:com.android.tools.r8.CompilationFailedException: 编译未能完成

  • 原因:com.android.tools.r8.utils.AbortException:错误:程序类型已存在:org.apache.commons.codec.CharEncoding

  • 有什么想法吗

    可能的重复可能的重复