New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with ART runtime on Android Lollipop #20
Comments
We run into the same issue on Lollipop. |
Someone needs to open a pull request with a proposed fix to progress this. |
I'm not sure whether this is a coding issue or a packaging issue, @gregorko have you tried building this library yourself with Android Studio? If not, I may try it some time later. |
No I have not tried to build it yet. I used the maven distribution. |
Worked out this problem. This is caused by Android's missing I did a fork for usage in my app, adding the missing class to @gregorko You can refer to my fork. If you are using android studio, simply import the project as maven project and add a jar artifact in the project structure settings. Click build and you'll have the jar. You can also use my release. @jodastephen I did not make a pull request, because I think you won't accept it due to the a bit hacky workaround, although it is the best I can do in production environment. |
Fixed by #22 |
What went wrong:
ART runtime fails to load the SimpleDateTimeTextProvider class when DateTimeFormatBuilder is referenced on Android Lollipop. The app crashes immediately.
Note that the library jar is fetched from the maven central repository.
Steps to reproduce:
1.Create a new Project in Android Studio
compile 'org.threeten:threetenbp:1.1'
to thedependencies
section inapp.gradle
DateTimeFormatter test = DateTimeFormatter.ofPattern("HH:mm");
toMainActivity.onCreate()
.Stacktrace from my emulator:
The text was updated successfully, but these errors were encountered: