ocpsoft / prettytime

Social Style Date and Time Formatting for Java
http://ocpsoft.org/prettytime/
Apache License 2.0
1.29k stars 253 forks source link

Couldn't find the nlp package in Android Studio #215

Closed Yuhanlolo closed 3 years ago

Yuhanlolo commented 3 years ago

I added the dependency to my app build gradle. I see org.ocpsoft.prettytime imported in my external library, and packages such as Duration, LocaleAware, but not the nlp package. I'm using Android Studio 3.5.0. Did I miss anything?

lincolnthree commented 3 years ago

I added the dependency to my app build gradle.

Please post what you added. Need more info to assist. You do need to add both the PrettyTime core dep and also the NLP dep.

Yuhanlolo commented 3 years ago

I added the dependency to my app build gradle.

Please post what you added. Need more info to assist. You do need to add both the PrettyTime core dep and also the NLP dep.

I added: implementation 'org.ocpsoft.prettytime:prettytime:5.0.0.Final', not sure how to add the nlp dep, I just tried implementation 'org.ocpsoft.prettytime:prettytime-nlp:5.0.5.Final' but then my Android Studio freezed

lincolnthree commented 3 years ago

@Yuhanlolo Ah. Not sure what to tell you about Android Studio freezing, but 5.0.0.Final is the latest version of PrettyTime (and the NLP module)

lincolnthree commented 3 years ago

https://mvnrepository.com/artifact/org.ocpsoft.prettytime/prettytime-nlp

lincolnthree commented 3 years ago

Closing as cannot reproduce and no additional info provided.