Tenho um projeto de teste para acesso a banco de dados Mysql e após
importar a biblioteca mysql-connector-java-5.1.41-bin.jar para o projeto
surge o seguinte erro:
Error:Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8
or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.
minhas configurações
compileSdkVersion 24
buildToolsVersion '22.0.1'
defaultConfig {
applicationId "com.example.opai.myacessdb2"
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
minSdkVersion 19
targetSdkVersion 19
obrigado
Marco
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/ebb7953f-c4d1-470b-b0bd-c631057a9bba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.