I have been trying to solve this issue for 8 hours
When I compile I get this error
Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs
Message{kind=ERROR, text=Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs, sources=[Unknown source file], tool name=Optional.of(D8)}
I have SDK Box Plugins installed which are viewed in mk file
PluginGoogleAnalytics \
sdkbox \
PluginFacebook \
PluginSdkboxAds \
PluginUnityAds \
PluginAdColony \
PluginSdkboxPlay
This issue appeared after I tried installing and using
PluginSdkboxPlay
Can anyone help as I have looked for a solution with no luck
The error used to be a different one with something else at end. It changed and I dont know why
Program type already present: android.support.something.else.was.here
Until I installed PluginSdkboxPlay I had facebook SDK Box and google analytics SDK Box also working fine
Thanks
MODIFIED 2 MINUEST LATER
I removed this
android {dexOptions { preDexLibraries = false }}
Now I am getting another error below
Program type already present: android.support.annotation.Size
MODIFICATION
Removed another line exactly like above in another grade file
Program type already present: android.support.annotation.NonNull
Note I only inserted these lines of code because I was trying solutions
android {dexOptions { preDexLibraries = false }}
I am now going to try remove " multiDexEnabled = true" to see whats the crack as I also inserted this as a hopeful soltuion
New Error
Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs
Message{kind=ERROR, text=Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs, sources=[Unknown source file], tool name=Optional.of(D8)}
I did change some “compiles” commands to “implemention” command because it kept say it was depreciated
New Issues has been swapped in after removing " multiDexEnabled = true"
Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs
Message{kind=ERROR, text=Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompatIcs, sources=[Unknown source file], tool name=Optional.of(D8)}
A note++ search finds
MOFIDIED
I think this is the source of the problem. I did delete these files and they were rebuilt. As we can see in the image above, these are were multi hits are located
More Issues through some looking
Error
Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\0.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\1.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\2.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\3.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\4.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\5.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\6.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\7.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\8.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\9.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\10.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\11.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\12.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\13.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\14.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\15.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\16.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\17.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\18.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\19.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\20.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\21.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\22.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\23.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\24.jar, C:\Cocos2D-x\Games\OrbitalRushApp\proj.android-studio\app\build\intermediates\transforms\dexBuilder\debug\25.jar
at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:124)
This could also have something to do with it