Error running ARSimpleNativeCars on Android Studio

Community support forum for the ARToolKit v5.x for Android SDK.
grunkleStan
Posts: 9
Joined: Sun Aug 13, 2017 11:32 pm

Error running ARSimpleNativeCars on Android Studio

Postby grunkleStan » Tue Aug 22, 2017 1:50 am

I tried run ARSimpleNative Cars latly on Android Studio 2.3.3 the app is not running nor is it installed. I tried to build the .apk but all I've got are these two error messages:

Error:com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)

Error:Execution failed for task ':aRSimpleNativeCars:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Android\Android Studio\jre\bin\java.exe'' finished with non-zero exit value 1

Does anyone have the same issues? Thanks in advance for help and replies!

grunkleStan
Posts: 9
Joined: Sun Aug 13, 2017 11:32 pm

Re: Error running ARSimpleNativeCars on Android Studio

Postby grunkleStan » Tue Aug 22, 2017 3:31 am

Nevermind I found the solution for it, after a second search, here in the Forum.
Just add

tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}

to the build.gradle of the arSimpleNativeCars.


Return to “ARToolKit for Android”

Who is online

Users browsing this forum: No registered users and 2 guests