Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUpgrade to retrofit 2.0 #28
Comments
This comment has been minimized.
This comment has been minimized.
|
Retrofit 2.0 has a completely new API that is not compatible with 1.X. Once Retrofit 2.0 is final we will investigate upgrading. |
This comment has been minimized.
This comment has been minimized.
Spoetnic
commented
Oct 29, 2015
|
So what would be your suggestion for people that start now with retrofit, and want to include the twitter-kit? Since the retrofit homepage/documentation only shows 2.0.0. |
This comment has been minimized.
This comment has been minimized.
oliveiradev
commented
Nov 2, 2015
|
@Spoetnic you have solution for this? |
This comment has been minimized.
This comment has been minimized.
felipecsl
commented
Nov 17, 2015
|
Please refer to this issue for a way to fix this |
This comment has been minimized.
This comment has been minimized.
felipecsl
commented
Nov 17, 2015
|
Also this is a duplicate of #25 |
This comment has been minimized.
This comment has been minimized.
Spoetnic
commented
Nov 17, 2015
|
Following the steps that @felipecsl posted, I created the following files, which I put in the project's 'libs' folder.
And not just twitter-core, (which I assume @felipecsl had. I didn't change anything to my root-build.gradle, but added the following to my (only) project-module-build.gradle (from @felipecsl 's solution (square/retrofit#1152)):
NOTE: I used retrofit 1.9.0, instead of @felipecsl 's 1.8.0, because I do not actively use Digits. |
This comment has been minimized.
This comment has been minimized.
stephenmcbride
commented
Nov 26, 2015
|
Could you show the full gradle file please @Spoetnic? Do you still have a regular gradle dependency on Retrofit 2.0? I'm trying to use your solution but I get a java.lang.NoClassDefFoundError: Failed resolution of: Lretrofit/RestAdapter$Builder when I try to use the TweetTimelineListAdapter. Thanks |
This comment has been minimized.
This comment has been minimized.
Spoetnic
commented
Nov 26, 2015
|
@stephenmcbride Here is my censored build.gradle
Also, I have this in my proguard file: (I believe OKIO was part of Fabric)
|
This comment has been minimized.
This comment has been minimized.
stephenmcbride
commented
Nov 26, 2015
|
Thanks @Spoetnic! |
This comment has been minimized.
This comment has been minimized.
Spoetnic
commented
Dec 8, 2015
|
-- DELETED -- |
This comment has been minimized.
This comment has been minimized.
zsiegel
commented
Dec 10, 2015
|
As of a few days ago there is a SNAPSHOT maven lib that renames the package to If youd like you can use that to avoid this clashing. add |
This comment has been minimized.
This comment has been minimized.
jlubeck
commented
Dec 12, 2015
|
Thanks @zsiegel ! it worked like a charm |
This comment has been minimized.
This comment has been minimized.
|
Announcement concerning new package name for Retrofit2: https://twitter.com/JakeWharton/status/675344652527083520 |
This comment has been minimized.
This comment has been minimized.
jlubeck
commented
Dec 12, 2015
|
I couldn´t find in the announcement when that will kick in. Did you? Thanks for the heads up though! |
This comment has been minimized.
This comment has been minimized.
oliveiradev
commented
Dec 15, 2015
|
@zsiegel Thanks |
efrohnhoefer
added
the
enhancement
label
Dec 30, 2015
This comment has been minimized.
This comment has been minimized.
|
FYI: Retrofit2.0-Beta3 has been released with new package name. See: https://github.com/square/retrofit/releases/tag/parent-2.0.0-beta3 |
efrohnhoefer
referenced this issue
Jan 9, 2016
Closed
java.lang.NoClassDefFoundError : Failed resolution of: Lretrofit/RestAdapter$Builder; #31
This comment has been minimized.
This comment has been minimized.
ghiyatshanif
commented
Mar 4, 2016
|
getting the same error, i'm using the beta4 of retrofit but still resulting the NoClassDefFoundError, can someone paste your working gradle setting, please |
This comment has been minimized.
This comment has been minimized.
Spoetnic
commented
Mar 4, 2016
|
@ghiyatshanif, is your proguard is correct? |
This comment has been minimized.
This comment has been minimized.
|
@ghiyatshanif we don't support retrofit2 yet. We will update our dependencies once the final version is released. In the mean time you can include both versions.
|
This comment has been minimized.
This comment has been minimized.
AlexVPerl
commented
Mar 18, 2016
|
@efrohnhoefer I tried as per your suggestion but I still see the same problem. I feel Proguard is to blame. Can you please post your proguard config? Thanks. |
This comment has been minimized.
This comment has been minimized.
saran2somu
commented
Mar 18, 2016
|
Hi I have the error , logcat output * java.lang.NoClassDefFoundError: Failed resolution of: Lretrofit/RestAdapter$Builder;* |
This comment has been minimized.
This comment has been minimized.
|
@AlexVPerl I am not using proguard. But this hypothesis can be tested by disabling proguard. May also just require a clean build. @saran2somu Can you share a sample project where this error is reproducible? |
This comment has been minimized.
This comment has been minimized.
|
Here is my current build.gradle for my test app:
|
This comment has been minimized.
This comment has been minimized.
chentengming
commented
Mar 29, 2016
|
@efrohnhoefer It not work,who can tell me how to do,i just want to share content from my app to twitter.it is so difficult! |
This comment has been minimized.
This comment has been minimized.
extmkv
commented
Apr 13, 2016
|
Can you support Retrofit 2? |
This comment has been minimized.
This comment has been minimized.
sidiqpermana
commented
May 2, 2016
|
retrofit now has its stable version, are you guys planned to update this lib using retrofit 2.0?, i've been trying above soluutions but still getting the same error |
This comment has been minimized.
This comment has been minimized.
|
@sidiqpermana It would be helpful if you provided a reproducible test case since I am unable to reproduce the above error. This is what my Gradle file currently looks like for my tests.
|
This comment has been minimized.
This comment has been minimized.
|
I cannot comment on exact timelines but Retrofit 2.0 support is something currently being worked on. |
This comment has been minimized.
This comment has been minimized.
PiotrWpl
commented
Jun 8, 2016
|
Any updates? :) |
This comment has been minimized.
This comment has been minimized.
efrohnhoefer
closed this
Aug 11, 2016
This comment has been minimized.
This comment has been minimized.
yshrsmz
commented
Aug 12, 2016
|
@efrohnhoefer Congratulations! Any plan to release source code? |
This comment has been minimized.
This comment has been minimized.
|
@yshrsmz Source will be released soon. |
Alelak commentedOct 12, 2015
As of retrofit 2.0 some classes (e.g. RetrofitError) has been removed.