Allyn
Allyn

Reputation: 20441

Having trouble getting Joda-time to run on Android.

I'm learning Android and have need for dates/times. I was recommended Joda-time by a colleague, which seems to be exactly what I need to make progress. Unfortunately, I'm having trouble getting it to work.

I'm using intellij and this is Android 2.2.

Steps I took:

  1. Download the Joda-time jar from the website.
  2. Intellij > File > Project Structure > Attach Classes
  3. Build

I then get this error:

warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute. (This class was probably produced by a broken compiler.)

I have no idea where to go from here. Help would be appreciated!

Upvotes: 9

Views: 3116

Answers (2)

Jesse Wilson
Jesse Wilson

Reputation: 40623

If you're not using reflection on the Joda-Time classes, you can ignore the error. You can fix the problem by building the Joda-Time sourcecode with a Java 1.5 compiler.

Upvotes: 4

Miguel Morales
Miguel Morales

Reputation: 1707

I believe you can safely ignore those warning. I get those in my included library but it works as expected.

Upvotes: 4

Related Questions