{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/1152","labels_url":"https://api.github.com/repos/square/retrofit/issues/1152/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/1152/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/1152/events","html_url":"https://github.com/square/retrofit/issues/1152","id":109250457,"number":1152,"title":"Library Using Older Version of Retrofit ","user":{"login":"TheShapGuy","id":1960718,"avatar_url":"https://avatars.githubusercontent.com/u/1960718?v=3","gravatar_id":"","url":"https://api.github.com/users/TheShapGuy","html_url":"https://github.com/TheShapGuy","followers_url":"https://api.github.com/users/TheShapGuy/followers","following_url":"https://api.github.com/users/TheShapGuy/following{/other_user}","gists_url":"https://api.github.com/users/TheShapGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/TheShapGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheShapGuy/subscriptions","organizations_url":"https://api.github.com/users/TheShapGuy/orgs","repos_url":"https://api.github.com/users/TheShapGuy/repos","events_url":"https://api.github.com/users/TheShapGuy/events{/privacy}","received_events_url":"https://api.github.com/users/TheShapGuy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":25,"created_at":"2015-10-01T08:13:57Z","updated_at":"2016-01-27T03:54:57Z","closed_at":"2015-10-01T15:18:00Z","body":"I recently was testing out Twitter Digits and Retrofit.\r\n\r\n``` java \r\ncompile 'com.squareup.retrofit:retrofit:2.0.0-beta2'\r\n    compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'\r\n    compile 'com.squareup.retrofit:adapter-rxjava:2.0.0-beta2'\r\n\r\n\r\n    compile('com.digits.sdk.android:digits:1.8.0@aar') {\r\n        transitive = true;\r\n    }\r\n```\r\n\r\n\r\nHowever when I build the app I get this error. It cannot find the build adapter, which is no longer in Retrofit 2.0.\r\n\r\nDo I have to wait till Digits Updates its module to Retrofit 2 or is there any other options to use them both together. Forcing one module, here Digits, to use Retrofit 1.9 and my app to use 2.0.\r\n\r\n\r\n```java\r\n\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime: FATAL EXCEPTION: main\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime: Process: shap.np.saito, PID: 3729\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Lretrofit/RestAdapter$Builder;\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.twitter.sdk.android.core.internal.oauth.OAuthService.<init>(OAuthService.java:50)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.twitter.sdk.android.core.internal.oauth.OAuth2Service.<init>(OAuth2Service.java:59)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsGuestSessionProvider.<init>(DigitsGuestSessionProvider.java:38)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsClient.createAuthRequestQueue(DigitsClient.java:83)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsClient.<init>(DigitsClient.java:73)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsClient.<init>(DigitsClient.java:53)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.Digits.createDigitsClient(Digits.java:221)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.Digits.getDigitsClient(Digits.java:210)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsAuthButton.getDigitsClient(DigitsAuthButton.java:105)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsAuthButton.onClick(DigitsAuthButton.java:75)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.view.View.performClick(View.java:5254)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.view.View$PerformClick.run(View.java:21179)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:145)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:6837)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:  Caused by: java.lang.ClassNotFoundException: Didn't find class \"retrofit.RestAdapter$Builder\" on path: DexPathList[[zip file \"/data/app/shap.np.saito-1/base.apk\"],nativeLibraryDirectories=[/data/app/shap.np.saito-1/lib/arm64, /vendor/lib64, /system/lib64]]\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:469)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.twitter.sdk.android.core.internal.oauth.OAuthService.<init>(OAuthService.java:50) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.twitter.sdk.android.core.internal.oauth.OAuth2Service.<init>(OAuth2Service.java:59) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsGuestSessionProvider.<init>(DigitsGuestSessionProvider.java:38) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsClient.createAuthRequestQueue(DigitsClient.java:83) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsClient.<init>(DigitsClient.java:73) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsClient.<init>(DigitsClient.java:53) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.Digits.createDigitsClient(Digits.java:221) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.Digits.getDigitsClient(Digits.java:210) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsAuthButton.getDigitsClient(DigitsAuthButton.java:105) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.digits.sdk.android.DigitsAuthButton.onClick(DigitsAuthButton.java:75) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.view.View.performClick(View.java:5254) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.view.View$PerformClick.run(View.java:21179) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.os.Handler.handleCallback(Handler.java:739) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.os.Handler.dispatchMessage(Handler.java:95) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.os.Looper.loop(Looper.java:145) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at android.app.ActivityThread.main(ActivityThread.java:6837) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Method.java:372) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199) \r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime: \tSuppressed: java.lang.ClassNotFoundException: retrofit.RestAdapter$Builder\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.Class.classForName(Native Method)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.BootClassLoader.findClass(ClassLoader.java:781)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     at java.lang.ClassLoader.loadClass(ClassLoader.java:504)\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:     \t\t... 21 more\r\n10-01 13:56:34.801 3729-3729/shap.np.saito E/AndroidRuntime:  Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/175376521","html_url":"https://github.com/square/retrofit/issues/1152#issuecomment-175376521","issue_url":"https://api.github.com/repos/square/retrofit/issues/1152","id":175376521,"user":{"login":"felipefcm","id":7122990,"avatar_url":"https://avatars.githubusercontent.com/u/7122990?v=3","gravatar_id":"","url":"https://api.github.com/users/felipefcm","html_url":"https://github.com/felipefcm","followers_url":"https://api.github.com/users/felipefcm/followers","following_url":"https://api.github.com/users/felipefcm/following{/other_user}","gists_url":"https://api.github.com/users/felipefcm/gists{/gist_id}","starred_url":"https://api.github.com/users/felipefcm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felipefcm/subscriptions","organizations_url":"https://api.github.com/users/felipefcm/orgs","repos_url":"https://api.github.com/users/felipefcm/repos","events_url":"https://api.github.com/users/felipefcm/events{/privacy}","received_events_url":"https://api.github.com/users/felipefcm/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T03:54:57Z","updated_at":"2016-01-27T03:54:57Z","body":"@StayZeal If you are using Android Studio, try to \"Invalidate Caches\"."}}