android-gradle

Android Material and appcompat Manifest merger failed

不羁岁月 提交于 2019-11-25 18:55:47
I have next grade dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0-rc01' implementation 'com.android.support.constraint:constraint-layout:1.1.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation 'com.google.android.material:material:1.0.0-rc01' } But when I want to build app I get next log: Manifest merger failed : Attribute application@appComponentFactory value=

Android- Error:Execution failed for task ':app:transformClassesWithDexForRelease'

廉价感情. 提交于 2019-11-25 18:47:10
The Problem is that i am able to run my app when i change to debug mode but it fails when i switch to release mode. Exception: FAILURE: Build failed with an exception. Execution failed for task ':app:transformClassesWithDexForRelease'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1