I am trying to ugrade my Android App to V2. I have added the new API to the Eclipse Project using the Maven dependency.
There appears to be a dependency on SquareOK.com that I am not getting.
When I call:
DbxClientV2 GetClient(String Token) {0
String userLocale = Locale.getDefault().toString();
DbxRequestConfig requestConfig = new DbxRequestConfig("examples-v2-demo", userLocale, OkHttpRequestor.Instance);
return new DbxClientV2(requestConfig, Token);
}
I successfully received a token from:
String token = Auth.getOAuth2Token();
And used that to call the above function.
I am getting the following ClassPath loading error:
01-20 08:32:15.350: I/Timeline(22716): Timeline: Activity_idle id: android.os.BinderProxy@37d705b8 time:21337241
01-20 08:33:02.646: E/AndroidRuntime(22716): FATAL EXCEPTION: pool-1-thread-1
01-20 08:33:02.646: E/AndroidRuntime(22716): Process: com.rtsservices.test, PID: 22716
01-20 08:33:02.646: E/AndroidRuntime(22716): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/squareup/okhttp/OkHttpClient;
01-20 08:33:02.646: E/AndroidRuntime(22716): at com.dropbox.core.http.OkHttpRequestor.defaultOkHttpClient(OkHttpRequestor.java:36)
01-20 08:33:02.646: E/AndroidRuntime(22716): at com.dropbox.core.http.OkHttpRequestor.<clinit>(OkHttpRequestor.java:47)
01-20 08:33:02.646: E/AndroidRuntime(22716): at com.rtsservices.Accounts.GetClient(Accounts.java:104)