0
對不起,如果我把這兩次,但我試着瀏覽了很多線程在這裏,但我無法找到它。 在一些線程中,它提到執行gradle clean命令並且它可以工作。然而,我也嘗試過,但對我來說這並不奏效。構建失敗,因爲應用程序:transformClassesWithJarMergingForDebug'
下面是我的依賴代碼
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile("org.springframework.boot:spring-boot-starter-web:0.5.0.M6")
compile("org.thymeleaf:thymeleaf-spring3:2.0.17")
compile("org.webjars:jquery:2.0.3-1")
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'com.android.support:support-v4:23.1.1'
compile project(path: ':shoppingCartLibrary')
compile 'joda-time:joda-time:2.7'
compile group: 'javax.persistence', name: 'persistence-api', version: '1.0'
testCompile 'junit:junit:4.12'
}
當我嘗試建立我的項目,我收到此錯誤: -
錯誤:執行失敗的任務「:應用程序: transformClassesWithJarMergingForDebug」。
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: javax/persistence/PersistenceContext.class