Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle build failed : bad class file magic (cafebabe) or version (0034.0000) #26

Closed
ClemMahe opened this issue Apr 7, 2016 · 1 comment

Comments

@ClemMahe
Copy link

ClemMahe commented Apr 7, 2016

Hi,

I have some issued when checking out the projet and opening with Android Studio 1.5.1 or Android Studio 2.1 preview 5.
With Android Studio 1.5.1 i tried to run the project with JDK 1.8.0_05 and i got the following error "Error:com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)".
With Android Studio 2.1 preview 5 same error.
If i try to change compileOptions i have other errors.

Do you have any ideas why this is happening ?
Thanks.

Regards

@ClemMahe
Copy link
Author

ClemMahe commented Apr 7, 2016

Well, adding below "apply plugin : 'java' " in model/build.gradle and domain/build.gradle the following lines seems to allow gradle to compile.
sourceCompatibility = 1.7
targetCompatibility = 1.7

I now have an error with Dagger and generated classes.

@ClemMahe ClemMahe closed this as completed Apr 7, 2016
@ClemMahe ClemMahe changed the title Gradle build failed ":app:transformClassesWithDexForDebug" Gradle build failed : bad class file magic (cafebabe) or version (0034.0000) Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant