- Je remplacer java 8 avec java 7 android studio d'erreur?
pourquoi je remplacer JAVA 8 avec JAVA 7,Android studio d'erreur?
> 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.
Error:...while parsing android/support/v7/recyclerview/R$attr.class
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.
Error:...while parsing android/support/v7/recyclerview/R$dimen.class
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.
Error:...while parsing android/support/v7/recyclerview/R$id.class
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.
Error:...while parsing android/support/v7/recyclerview/R$styleable.class
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.
Error:...while parsing android/support/v7/recyclerview/R.class
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.
Error:...while parsing com/example/administrator/comjarlib/R$anim.class
Error:Error converting bytecode to dex:
............
Je pense utiliser retroLambda dans Android Studio.
Toute personne atteinte d'un problème similaire /résolu pouvez donner un pointeur vers le résoudre.
Je suis en utilisant Android Studio 2.1 Aperçu 3 avec une note 2.10
Avez-vous essayez d'ajouter ces deux lignes de votre construction.gradle fichier?
qui deux lignes?
Avez-vous lu le journal d'erreur?
qui deux lignes?
Avez-vous lu le journal d'erreur?
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.
OriginalL'auteur allen218 | 2016-03-24
Vous devez vous connecter pour publier un commentaire.
Cela m'a aidé. En principal de votre projet
build.gradle
fichier ajouter ces lignes de code dansallprojects
section (ou d'ajouter cette section si elle n'est pas là).Cela a effectivement travaillé.
A ce problème de la mise à niveau de Studio 2.1 à 2.2 avec les non-android Pots, ce fut la réponse.
C'est ainsi que mon build.gradle ressembler, mais il ne fonctionne pas allprojects { dépôts { jcenter() } tâches.withType(JavaCompile) { sourceCompatibility = 1.7 targetCompatibility = 1.7 } }
Pour moi, cela a fini de travailler. Il semble que la meilleure solution si vous avez d'autres dépendances qui va également lancer cette erreur.
OriginalL'auteur Victor Nidens
Si je n'ai pas de mal gradle android plugin étend "java" plugin, de sorte que vous pouvez simplement ajouter ces deux lignes dans votre "android" bloquer dans votre construction.gradle :
A bien fonctionné pour moi.
OriginalL'auteur Nicolas Bossard