Problem after SDKBOX update

Problem after SDKBOX update
0

Whenever SDKBOX is updated always it’s a nightmare.
In my project Admob, Facebook and Social Share plugins were already added through SDKBOX. Today I tried to add firebase plugin and SDKBOX showed it’s update is available so I updated it. But later while compiling it gave errors like this:

duplicate class android.support.v4.app.INotificationSideChannel found in modules classes.jar (androidx.core:core:1.0.0) and classes.jar (com.android.support:support-compat:27.0.2)

I tried to find duplicate files manually but I couldn’t.
I tried adding this in gradle.properties

android.useAndroidX=true
android.enableJetifier=true

But the app crashes at the start. In logcat I saw some classes related to android.support.v4… is not found.

How to tackle these issues?
Why updating SDKBOX is so painful?

Creating whole new project again and adding multiple plugins again is too much of time consuming.

so sorry for the inconvenience.


patch

diff --git a/frameworks/runtime-src/proj.android-studio/app/build.gradle b/frameworks/runtime-src/proj.android-studio/app/build.gradle
index bffa262..4eb23d6 100755
--- a/frameworks/runtime-src/proj.android-studio/app/build.gradle
+++ b/frameworks/runtime-src/proj.android-studio/app/build.gradle
@@ -19,7 +19,7 @@ android {
                     // skip the NDK Build step if PROP_NDK_MODE is none
                     targets 'cocos2djs'
                     arguments 'NDK_TOOLCHAIN_VERSION=clang'
-                    
+
                     def module_paths = [project.file("/Users/admin/Applications/CocosCreator.app/Contents/Resources/cocos2d-x"),
                                         project.file("/Users/admin/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos"),
                                         project.file("/Users/admin/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/external")]
@@ -137,3 +137,7 @@ dependencies {
     implementation fileTree(dir: "/Users/admin/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/libs", include: ['*.jar'])
     implementation project(':libcocos2dx')
 }
+//dependencies { compile 'com.google.android.gms:play-services-base:16.1.0' }
+dependencies { compile 'com.google.android.gms:play-services-ads:18.3.0' }
+dependencies { compile 'com.facebook.android:facebook-android-sdk:5.+' }
+dependencies { implementation 'com.google.firebase:firebase-analytics:17.2.1' }
diff --git a/frameworks/runtime-src/proj.android-studio/gradle.properties b/frameworks/runtime-src/proj.android-studio/gradle.properties
index 7d21511..6cbb501 100755
--- a/frameworks/runtime-src/proj.android-studio/gradle.properties
+++ b/frameworks/runtime-src/proj.android-studio/gradle.properties
@@ -40,3 +40,6 @@ RELEASE_STORE_FILE=/Users/admin/Applications/CocosCreator.app/Contents/Resources
 RELEASE_STORE_PASSWORD=123456
 RELEASE_KEY_ALIAS=debug_keystore
 RELEASE_KEY_PASSWORD=123456
+
+android.useAndroidX=true
+android.enableJetifier=true

Thanks for the reply. If I understood correctly you are suggesting me to update the gps-ads to 18.3.0 and putting using androidx and jitifer right? I did the same.

this is my build.gradle

import org.apache.tools.ant.taskdefs.condition.Os

buildscript {
    repositories {
        google()
        jcenter()
        mavenCentral()
    }
    dependencies {

    }
}

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

repositories {
    jcenter()
    google()
}

android {
    compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
    buildToolsVersion '28.0.3'

    defaultConfig {
        applicationId "com.my.game"
        minSdkVersion PROP_MIN_SDK_VERSION
        targetSdkVersion PROP_TARGET_SDK_VERSION
        versionCode 25
        versionName "1.25"

       multiDexEnabled true

        externalNativeBuild {
            ndkBuild {
                if (!project.hasProperty("PROP_NDK_MODE") || PROP_NDK_MODE.compareTo('none') != 0) {
                    // skip the NDK Build step if PROP_NDK_MODE is none
                    targets 'MyGame'
                    arguments 'NDK_TOOLCHAIN_VERSION=4.9'
                    arguments 'APP_PLATFORM=android-'+PROP_APP_PLATFORM
                    
                    def module_paths = [project.file("../../cocos2d").absolutePath,
                                        project.file("../../cocos2d/cocos").absolutePath,
                                        project.file("../../cocos2d/external").absolutePath]
                    if (Os.isFamily(Os.FAMILY_WINDOWS)) {
                        // should use '/'
                        module_paths = module_paths.collect {it.replaceAll('\\\\', '/')}
                        arguments 'NDK_MODULE_PATH=' + module_paths.join(";")
                    }
                    else {
                        arguments 'NDK_MODULE_PATH=' + module_paths.join(':')
                    }
                    
                    arguments '-j' + Runtime.runtime.availableProcessors()
                    abiFilters.addAll(PROP_APP_ABI.split(':').collect{it as String})
                }
            }
        }
    }

    sourceSets.main {
        java.srcDir "src"
        res.srcDir "res"
        manifest.srcFile "AndroidManifest.xml"
        assets.srcDir "../../Resources"
    }

    externalNativeBuild {
        ndkBuild {
            if (!project.hasProperty("PROP_NDK_MODE") || PROP_NDK_MODE.compareTo('none') != 0) {
                // skip the NDK Build step if PROP_NDK_MODE is none
                path "jni/Android.mk"
            }
        }
    }

    signingConfigs {

       release {
            if (project.hasProperty("RELEASE_STORE_FILE")) {
                storeFile file(RELEASE_STORE_FILE)
                storePassword RELEASE_STORE_PASSWORD
                keyAlias RELEASE_KEY_ALIAS
                keyPassword RELEASE_KEY_PASSWORD
            }
        }
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            if (project.hasProperty("RELEASE_STORE_FILE")) {
                signingConfig signingConfigs.release
            }

            externalNativeBuild {
                ndkBuild {
                    arguments 'NDK_DEBUG=0'
                }
            }
        }

        debug {
            externalNativeBuild {
                ndkBuild {
                    arguments 'NDK_DEBUG=1'
                }
            }
        }
    }

    dexOptions {
       incremental true
        javaMaxHeapSize "4g"
    }

    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(':libcocos2dx')
    // implementation 'com.google.android.gms:play-services-base:16.1.0'
    implementation 'com.google.android.gms:play-services-ads:18.3.0'
    implementation 'com.facebook.android:facebook-android-sdk:5.+'
    implementation 'com.facebook.android:facebook-login:[5,6)'
    implementation 'com.google.firebase:firebase-analytics:17.2.1'
    implementation 'com.twitter.sdk.android:twitter-core:3.1.1'
    implementation 'com.twitter.sdk.android:tweet-composer:3.1.1'
}

And I didn’t get any compile errors but when I run the app it crashes with these errors in logcat:

2020-03-09 23:15:25.559 13585-13585/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.my.game, PID: 13585
    java.lang.RuntimeException: Unable to get provider android.support.v4.content.FileProvider: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" on path: DexPathList[[zip file "/data/app/com.my.game-JgEAh-mJ4YFlId4_ZEoVkA==/base.apk"],nativeLibraryDirectories=[/data/app/com.my.game-JgEAh-mJ4YFlId4_ZEoVkA==/lib/arm, /data/app/com.my.game-JgEAh-mJ4YFlId4_ZEoVkA==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]
        at android.app.ActivityThread.installProvider(ActivityThread.java:7278)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6813)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6699)
        at android.app.ActivityThread.access$2000(ActivityThread.java:273)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2020)
        at android.os.Handler.dispatchMessage(Handler.java:112)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7625)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.FileProvider" on path: DexPathList[[zip file "/data/app/com.my.game-JgEAh-mJ4YFlId4_ZEoVkA==/base.apk"],nativeLibraryDirectories=[/data/app/com.my.game-JgEAh-mJ4YFlId4_ZEoVkA==/lib/arm, /data/app/com.my.game-JgEAh-mJ4YFlId4_ZEoVkA==/base.apk!/lib/armeabi-v7a, /system/lib, /product/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at android.app.AppComponentFactory.instantiateProvider(AppComponentFactory.java:121)
        at androidx.core.app.CoreComponentFactory.instantiateProvider(CoreComponentFactory.java:62)
        at android.app.ActivityThread.installProvider(ActivityThread.java:7262)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6813) 
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6699) 
        at android.app.ActivityThread.access$2000(ActivityThread.java:273) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2020) 
        at android.os.Handler.dispatchMessage(Handler.java:112) 
        at android.os.Looper.loop(Looper.java:216) 
        at android.app.ActivityThread.main(ActivityThread.java:7625) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)

I can not compile after add twitter sdk.

/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/116.jar
D8: Program type already present: okhttp3.Cache
:hello_world:transformDexArchiveWithExternalLibsDexMergerForDebug (Thread[Daemon worker Thread 6,5,main]) completed. Took 0.328 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':hello_world:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/0.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/1.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/2.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/3.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/4.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/5.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/6.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/7.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/8.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/9.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/10.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/11.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/12.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/13.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/14.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/15.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/16.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/17.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/18.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/19.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/20.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/21.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/22.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/23.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/24.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/25.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/26.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/27.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/28.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/29.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/30.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/31.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/32.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/33.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/35.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/36.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/37.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/38.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/39.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/40.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/41.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/42.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/43.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/44.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/45.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/46.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/47.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/48.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/49.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/50.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/51.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/52.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/53.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/54.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/55.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/56.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/57.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/58.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/59.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/60.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/61.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/62.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/63.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/64.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/65.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/66.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/67.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/68.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/69.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/70.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/71.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/72.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/73.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/74.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/75.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/76.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/77.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/78.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/79.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/80.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/81.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/82.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/83.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/84.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/85.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/86.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/87.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/88.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/89.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/90.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/91.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/92.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/93.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/94.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/95.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/96.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/97.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/98.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/99.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/100.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/101.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/102.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/103.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/104.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/105.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/106.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/107.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/108.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/109.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/110.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/111.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/112.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/113.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/114.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/115.jar, /Users/admin/test/ccc220/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/transforms/dexBuilder/debug/116.jar
  Learn how to resolve the issue at https://developer.android.com/studio/build/dependencies#duplicate_classes.
  Program type already present: okhttp3.Cache

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 19s

I’m having same issue. How to solve it?

this Problem after SDKBOX update issue ?

I got it solved by putting these lines below in gradle and Android Studio>Refactor>Migrate to AndroidX.
android.useAndroidX=true
android.enableJetifier=true

1 Like

you said you tried it before but failed.

Yes but after the refractor>migrate to androidx from Android studio it got solved. Before I didn’t know about refractor menu, I was using the codes in gradle only.