monkeylearn

Android Studio - Program type already present: org.hamcrest.CoreMatchers

∥☆過路亽.° 提交于 2019-12-09 10:21:21
问题 I have no idea why this error exists: Program type already present: org.hamcrest.CoreMatchers Message{kind=ERROR, text=Program type already present: org.hamcrest.CoreMatchers, sources=[Unknown source file], tool name=Optional.of(D8)} My code in in the scope if dependency of build.gradle (Module: app) is: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint

Android Studio - Program type already present: org.hamcrest.CoreMatchers

天大地大妈咪最大 提交于 2019-12-03 12:48:23
I have no idea why this error exists: Program type already present: org.hamcrest.CoreMatchers Message{kind=ERROR, text=Program type already present: org.hamcrest.CoreMatchers, sources=[Unknown source file], tool name=Optional.of(D8)} My code in in the scope if dependency of build.gradle (Module: app) is: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation ('junit:junit:4.12'){ exclude group: 'org.hamcrest', module: 'hamcrest