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

Crash on app start with timber-loggly:1.0.1 #5

Open
BhawaniPratap opened this issue Dec 8, 2015 · 3 comments
Open

Crash on app start with timber-loggly:1.0.1 #5

BhawaniPratap opened this issue Dec 8, 2015 · 3 comments
Labels

Comments

@BhawaniPratap
Copy link

@BhawaniPratap BhawaniPratap commented Dec 8, 2015

Stack trace :
Caused by: java.lang.ClassNotFoundException: Didn't find class "retrofit.RestAdapter$Builder" on path: DexPathList[[zip file "/data/app/com._._.dev-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.github.tony19.loggly.LogglyClient.(Unknown Source) 
at com.github.tony19.timber.loggly.LogglyTree.(Unknown Source) 
at com.
_..app._Application.onCreate(*Application.java:61) 
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1012) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4661) 
at android.app.ActivityThread.access$1500(ActivityThread.java:156) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:211) 
at android.app.ActivityThread.main(ActivityThread.java:5389) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815) 
Suppressed: java.lang.ClassNotFoundException: retrofit.RestAdapter$Builder
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)

@BhawaniPratap BhawaniPratap changed the title Crash on app start Crash on app start with timber-loggly:1.0.1 Dec 8, 2015
@tony19
Copy link
Contributor

@tony19 tony19 commented Dec 9, 2015

Have you added retrofit to your classpath?

@tony19 tony19 added the question label Dec 9, 2015
@BhawaniPratap
Copy link
Author

@BhawaniPratap BhawaniPratap commented Dec 9, 2015

according to this : https://github.com/tony19/timber-loggly we have to add only the timber-loggly dependency to my project but yes i have added the retrofit to my project dependency.

compile 'com.github.tony19:timber-loggly:1.0.1'
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
@tony19
Copy link
Contributor

@tony19 tony19 commented Dec 10, 2015

I'll update the documentation.

Try retrofit 1.9.0.

tony19 added a commit that referenced this issue Dec 10, 2015
Updated the README with a dependency on Retrofit 1.9.0. We really
should add retrofit 1.x as a dependency in timber-loggly's pom.xml so
that users don't have to add it themselves (TODO for next release).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.