Error: Program type already present: android.support.v4.accessibilityservice.AccessibilityServiceInfoCompat

Getting below error when build android project in android studio.

java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:
com.android.tools.r8.CompilationFailedException: Compilation failed to complete
com.android.tools.r8.utils.AbortException: Error: Program type already present: android.support.v4.app.NotificationBuilderWithBuilderAccessor

Solutions :

Add these line above dependencies tag in build.gradle

configurations.all {exclude group: 'com.android.support', module: 'support-v4'}

 


Notice: compact(): Undefined variable: limits in /home/javaprof/public_html/wp-includes/class-wp-comment-query.php on line 853

Notice: compact(): Undefined variable: groupby in /home/javaprof/public_html/wp-includes/class-wp-comment-query.php on line 853

Leave a Reply

Your email address will not be published. Required fields are marked *

85 − 82 =