Where can I get the JAR to import libcore.io?

I want to handle a GaiException in my application. The debugger tells me that it lives in the libcore.io package, but importing it leads to an error. I think I need to add an extra JAR for my projct in order to correctly enable this type. I dug a little in my sdk folder for Android, but it seems I did not find anything like it.

Thanks for any advice.

+9
android import jar exception-handling
source share
1 answer

If you are using Android studio, you can add this line to your gradle construct (under the dependencies).

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

If you use Eclipse, check the Maven link and add it, however this works.

0
source share

All Articles