Skip to content
This repository has been archived by the owner on Jan 26, 2023. It is now read-only.

ClassNotFoundException for Gson and Joda #2

Open
erayerdin opened this issue Jun 2, 2019 · 0 comments
Open

ClassNotFoundException for Gson and Joda #2

erayerdin opened this issue Jun 2, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@erayerdin
Copy link

According to the project's build file, gson and joda-time is already included.

However, if I only include CacheLib, I get the error below

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.gson.GsonBuilder" on path: DexPathList[[zip file "/data/app/foo.bar.baz-G4Zk4FIQSWiDXJEaqDt4mQ==/base.apk"],nativeLibraryDirectories=[/data/app/foo.bar.baz-G4Zk4FIQSWiDXJEaqDt4mQ==/lib/arm, /system/lib, /vendor/lib]]

However, I include the libraries manually and it works:

implementation 'com.google.code.gson:gson:2.8.5'
implementation 'joda-time:joda-time:2.10.2'
@pcpl2 pcpl2 self-assigned this Jul 13, 2019
@pcpl2 pcpl2 added the bug Something isn't working label Jul 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants