1

This is the 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'

This is more error I have

  1. Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives

  2. Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives

  3. Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete

  4. Caused by: com.android.tools.r8.utils.AbortException: Error: Program type already present: org.apache.commons.codec.CharEncoding

Any ideas?

Gourav
  • 2,746
  • 5
  • 28
  • 45
  • Possible duplicate of https://stackoverflow.com/questions/49676155/ – Sergey Glotov Feb 07 '19 at 14:02
  • Possible duplicate of [What does "Program type already present" mean?](https://stackoverflow.com/questions/49676155/what-does-program-type-already-present-mean) – Gourav Feb 07 '19 at 14:04

0 Answers0