2

I am getting error:

Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2

when I add the line below in gradle:

renderscriptSupportModeEnabled true

How can I fix the issue?I really appreciate any help.

jason
  • 3,932
  • 11
  • 52
  • 123

1 Answers1

2
renderscriptSupportModeEnabled true

will add extra dependencies to your project. These might be conflicting with other dependencies you are using in your app.

For me, the support-annotations was the problem, so I exclude them like so:

// fix! for renderscript support
configurations {
    all*.exclude group: 'com.android.support', module: 'support-annotations'
}

NOTE: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat and Android Studio Gradle Error: Multiple dex files define , are related to this problem.

Community
  • 1
  • 1
Entreco
  • 12,738
  • 8
  • 75
  • 95