In android studio i'm trying to add a mysql connector library for my app. after pasting the jar into the lib folder and ensuring that it was listed to compile in build.gradle. I click run app and get this error before it even asks for an emulator to run on:
Error:Execution failed for task ':app:preDexDebug'.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'E:\Program Files\Java\jdk1.7.0_79\bin\java.exe'' finished with non-zero exit value 1
If I delete the jar I pasted in then this error disappears.
my dependencies
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile files('libs/mysql-connector-java-5.1.37-bin.jar')
}