Skip to content
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

Example not working with github dependency #2

Open
ibogolyubskiy opened this issue Dec 4, 2018 · 2 comments
Open

Example not working with github dependency #2

ibogolyubskiy opened this issue Dec 4, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@ibogolyubskiy
Copy link

ibogolyubskiy commented Dec 4, 2018

Clone repo, go to app's build.gradle and replace project dependencies to github artifacts (like in readme):

debugImplementation project(':sherlock')
releaseImplementation project(':sherlock-no-op')

to

debugImplementation 'com.github.shehabic.sherlock:sherlock:v0.10.5'
releaseImplementation 'com.github.shehabic.sherlock:sherlock-no-op:v0.10.5'

add jitpack repository to root build.gradle like in readme

maven { url 'https://jitpack.io' }

Sync project and run it.
After launch application crashes with this exception:

java.lang.NoClassDefFoundError: com.shehabic.sherlock.db.Db
 at com.shehabic.sherlock.NetworkSherlock.getDb(NetworkSherlock.kt:173)
 at com.shehabic.sherlock.NetworkSherlock.access$getDb(NetworkSherlock.kt:26)
 at com.shehabic.sherlock.NetworkSherlock$startSession$1.run(NetworkSherlock.kt:185)
 at android.os.Handler.handleCallback(Handler.java:742)
 at android.os.Handler.dispatchMessage(Handler.java:95)
 at android.os.Looper.loop(Looper.java:157)
 at android.os.HandlerThread.run(HandlerThread.java:61)
@ibogolyubskiy
Copy link
Author

ibogolyubskiy commented Dec 4, 2018

implementation "android.arch.persistence.room:runtime:$architecture_version"
kapt "android.arch.persistence.room:compiler:$architecture_version"

adding these lines to app's build.gradle fixes it

@shehabic
Copy link
Owner

shehabic commented Dec 8, 2018

Thanks for reporting I'll try to look for a solution for it.

@shehabic shehabic added the bug Something isn't working label Dec 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants