9

I want to handle an GaiException in my App. The debugger tells me, it lives in the libcore.io package, but importing it yields an error. I guess I need to add an additional JAR to my projct to correctly resolve this type. I've been digging a bit in my android sdk folder, but don't seem to find anything of the kind.

Thanks for any advice.

Chris
  • 3,192
  • 4
  • 30
  • 43
  • 1
    you can get the source of GaiException.java file from https://android.googlesource.com/platform/libcore/+/master/luni/src/main/java/libcore/io/GaiException.java and create a package libcore.io to store that class in it. – Mehul Joisar Apr 09 '13 at 06:12

1 Answers1

0

If you are using android studio you can add this line to your gradle build (under dependencies).

compile 'org.robovm:robovm-rt:+'

If using Eclipse, check this Maven link and add it however is appropriate.