Uncaught translation error: com.android.dx.cf.code.SimException

java android android-studio exception gradle

1412 просмотра

1 ответ

154 Репутация автора

I have a project that has several Build Variants and for first build of Android Studio (with jdk 1.8 or 1.7, doesn't matter) it's failing with following errors but the strange part is for second run it's working, deeply annoying and time consuming:

:app:transformClassesWithDexForBuildVariantDebug
Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.String[] using a local variable of type android.os.Bundle. This is symptomatic of .class transformation tools that ignore local variable information.
Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.io.InputStream using a local variable of type java.lang.String[]. This is symptomatic of .class transformation tools that ignore local variable information.
Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.io.InputStream using a local variable of type java.lang.String[]. This is symptomatic of .class transformation tools that ignore local variable information.
Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object using a local variable of type boolean. This is symptomatic of .class transformation tools that ignore local variable information.
4 errors; aborting
Error:Execution failed for task ':app:transformClassesWithDexForBuildVariantDebug'. com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

Thanks.

Автор: Canberk Ozcelik Источник Размещён: 18.07.2016 08:18

Ответы (1)


1 плюс

11 Репутация автора

dexOptions {
    additionalParameters += ['--no-locals']
 }
Автор: 韩海龙 Размещён: 24.12.2018 07:21
Вопросы из категории :
32x32