我是Android Studio的新手,我一直在使用eclipse,但由于65K我的项目中的错误,我需要将其迁移到Android Studio.在跑步的时候
./gradlew assembleDebug
我收到错误说: -
Execution failed for task ':app:transformClassesWithDexForDebug'.
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 '/opt/jdk/jdk1.8.0_45/bin/java'' finished with non-zero exit value 1
Run Code Online (Sandbox Code Playgroud)
我知道这是将eclipse项目迁移到Android Studio时非常常见的错误.
并且相信我,我搜索了许多具有相同问题的链接,并尝试了他们在答案中提到的所有内容,但不是为我工作
这是我得到的链接: -
任务':app:transformClassesWithDexForDebug'的执行失败 - Gradle依赖?
在为Android实施Google登录时,任务':app:transformClassesWithDexForDebug'的执行失败
Android Studio TransformException:错误:任务':app:transformClassesWithDexForDebug'的执行失败
错误:任务':app:transformClassesWithDexForDebug'的执行失败
com.android.build.transform.api.TransformException
https://github.com/journeyapps/zxing-android-embedded/issues/110
还有很多
我尝试了每个解决方案,我尝试.jar在我的项目中逐个添加文件,我只使用那些在我的项目中使用的Google服务包,我甚至添加了multidexjar.But没有什么可以帮助我
这是我的Build.gradle文件: -
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.petzview.android"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles …Run Code Online (Sandbox Code Playgroud)