I have a simple program that copies a file from my dropbox to the download folder.
When I tried to make changes to if, I can no longer get it to work and the debugger does not help.
When I hit the download line, I get the following error. Try/Catch does not work.
I'm not sure what to do next?
DropboxHttpAPI v 0.93
Note 8
Download: /storage/emulated/0/Download/hdcp_index.txt
java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/Request$Builder;
at anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest.InitializeGet(OkHttpClientWrapper.java:392)
at anywheresoftware.b4a.samples.httputils2.httpjob._download(httpjob.java:108)
at b4a.example.dropbox._vv1(dropbox.java:240)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:755)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:345)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:6308)
at android.widget.TextView.performClick(TextView.java:11202)
at android.view.View$PerformClick.run(View.java:23969)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
Caused by: java.lang.ClassNotFoundException: Didn't find class "okhttp3.Request$Builder" on path: DexPathList[[zip file "/data/app/DropBoxFileTransfer2.b4a-2/base.apk"],nativeLibraryDirectories=[/data/app/DropBoxFileTransfer2.b4a-2/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 22 more
When I tried to make changes to if, I can no longer get it to work and the debugger does not help.
B4X:
dbx.Initialize(Me,"DropBox","access_token",True)
Try
If dbx.IsInitialized Then
dbx.Download("/hdcp_index.txt",File.DirRootExternal,"Download/hdcp_index.txt")
Else
Msgbox("Dropbox was not initialized","Error")
End If
Catch
Log(LastException)
End Try
When I hit the download line, I get the following error. Try/Catch does not work.
I'm not sure what to do next?
DropboxHttpAPI v 0.93
Note 8
Download: /storage/emulated/0/Download/hdcp_index.txt
java.lang.NoClassDefFoundError: Failed resolution of: Lokhttp3/Request$Builder;
at anywheresoftware.b4h.okhttp.OkHttpClientWrapper$OkHttpRequest.InitializeGet(OkHttpClientWrapper.java:392)
at anywheresoftware.b4a.samples.httputils2.httpjob._download(httpjob.java:108)
at b4a.example.dropbox._vv1(dropbox.java:240)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.shell.Shell.runVoidMethod(Shell.java:755)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:345)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:249)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:139)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:166)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:6308)
at android.widget.TextView.performClick(TextView.java:11202)
at android.view.View$PerformClick.run(View.java:23969)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6823)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1563)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1451)
Caused by: java.lang.ClassNotFoundException: Didn't find class "okhttp3.Request$Builder" on path: DexPathList[[zip file "/data/app/DropBoxFileTransfer2.b4a-2/base.apk"],nativeLibraryDirectories=[/data/app/DropBoxFileTransfer2.b4a-2/lib/arm64, /system/lib64, /vendor/lib64]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
... 22 more