facebookarchive / rebound

A Java library that models spring dynamics and adds real world physics to your app.
http://facebook.github.io/rebound/
Other
5.43k stars 818 forks source link

help #86

Open HUAIHU234 opened 7 years ago

HUAIHU234 commented 7 years ago

the project of rebound run with error: Error:Execution failed for task ':rebound-android-example:preDexDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

who can help me?thanks!

abuqauod commented 7 years ago

i don't know exactly the case but please try one of the following:

solution 1: add this defaultConfig { // Enabling multidex support. multiDexEnabled true } solution 2: compileOptions { encoding "UTF-8" sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 }

lintOptions { abortOnError false }

Solution3: It must have been a problem with my Java install. I removed all traces of Java (C://program files/Java/jdk) and jre folders and reinstalled it from the official page and now it works fine.