Can't build from checkout
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- android, java
- Domaine
- build-system, mobile
Piste de recherche
Commencez par reproduire l'échec avec gradle clean install, en vous concentrant sur :android:preDexDebugAndroidTest et com/google/i18n/addressinput/common/AddressData$1.class. Examinez la configuration du build et les paramètres de compatibilité Java ; le travail est terminé lorsque le build des tests Android se termine sans l'erreur de version de fichier de classe.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Looks like there is a class format error int he build somewhere.
This can likely be fixed by specifying the java version to build with.
This is my entire output:
cx2s-bpappin:libaddressinput bpappin$ gradle clean install
WARNING: Dependency org.json:json:20090211 is ignored for debug as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
WARNING: Dependency org.json:json:20090211 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
WARNING: Dependency org.json:json:20090211 is ignored for debugUnitTest as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
WARNING: Dependency org.json:json:20090211 is ignored for releaseUnitTest as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
WARNING: Dependency org.json:json:20090211 is ignored for debugAndroidTest as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage with jarjar to change the class packages
:android:clean
:common:clean
:android:preBuild UP-TO-DATE
:android:preDebugAndroidTestBuild UP-TO-DATE
[... removed cruft for clarity ...]
:android:bundleDebug
:android:assembleDebug
:android:processDebugAndroidTestManifest
:android:compileDebugAndroidTestRenderscript
:android:generateDebugAndroidTestBuildConfig
:android:generateDebugAndroidTestAssets UP-TO-DATE
:android:mergeDebugAndroidTestAssets
:android:generateDebugAndroidTestResValues UP-TO-DATE
:android:generateDebugAndroidTestResources
:android:mergeDebugAndroidTestResources
:android:processDebugAndroidTestResources
:android:generateDebugAndroidTestSources
:android:compileDebugAndroidTestJava
:android:preDexDebugAndroidTest
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)
at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:472)
at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)
at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)
at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)
at com.android.dx.command.dexer.Main.processClass(Main.java:704)
at com.android.dx.command.dexer.Main.processFileBytes(Main.java:673)
at com.android.dx.command.dexer.Main.access$300(Main.java:83)
at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:602)
at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)
at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)
at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)
at com.android.dx.command.dexer.Main.processOne(Main.java:632)
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:510)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:280)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)
...while parsing com/google/i18n/addressinput/common/AddressData$1.class
1 error; aborting
:android:preDexDebugAndroidTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':android:preDexDebugAndroidTest'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 1.979 secs
- Langage dominant
- C++
- Étoiles
- 631
- Forks
- 109
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de google/libaddressinput
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
google/libaddressinput#255 · 3 commentaires ·
-
Improve Spain postcode regexOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
google/libaddressinput#245 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 64/100
google/libaddressinput#254 ·
-
Error in Spain sub_zip listOuverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 52/100
google/libaddressinput#250 · 2 commentaires ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 58/100
google/libaddressinput#249 ·
Toutes les issues de google/libaddressinput
Issues similaires
-
Web3 RPC: one-element batch request returns an object instead of an array (breaks ethers.js v6)Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
FISCO-BCOS/FISCO-BCOS#5706 ·
Les mainteneurs répondent en général sous 3 jours
-
[开源推荐] Windows 系统维护工具箱,支持后台任务队列Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 85/100
521xueweihan/HelloGitHub#4011 ·
-
docs(simulation): Quickstart publishes UDP 14550, which the SITL images' own docs say not to doOuvertestatus:needs-triage
Difficulté 1/5 1-3 heures Accessibilité débutants 78/100
PX4/PX4-Autopilot#29292 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
bug core p3
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
RunanywhereAI/runanywhere-sdks#1142 ·
Les mainteneurs répondent en général sous 1 jour
-
I/O internal correctness medium priority rt_lib
Difficulté 2/5 1-3 heures Accessibilité débutants 79/100
Les mainteneurs répondent en général sous 1 jour