2

I'm using roboVM (1.0.0) with libGDX (1.5.5) in Android Studio (1.1.0) and face the problem that execution on an iOS device works only after deleting the gradle directory (~/.gradle). Without prior deletion of ~/.gradle, execution fails with the following error message:

[ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.UnsatisfiedLinkError: Native Library ~/.m2/repository/org/robovm/robovm-dist/1.0.0/unpacked/robovm-1.0.0/bin/libhfscompressor.dylib already loaded in another classloader

Do you have any ideas what might cause this problem or how to fix it?

SePröbläm
  • 5,142
  • 6
  • 31
  • 45

2 Answers2

4

The fine folks at badlogic games posted a solution here: https://github.com/robovm/robovm/issues/867

It comes down to disabling the Gradle build deamon by setting org.gradle.daemon=false in gradle.properties.

SePröbläm
  • 5,142
  • 6
  • 31
  • 45
1

You can call ./gradlew --stop then run you're ios:launchiOSSimulator / device for it too work.

Oliver Dixon
  • 7,012
  • 5
  • 61
  • 95