I cannot resolve this error which occurs immediately when I try to compile in debug mode. I searched in vain for "NoClassDefFoundError" and/or "DefaultHttpClient", without solving the problem.
In release mode, however, the app installs itself but does not start.
Thanks in advance.
In release mode, however, the app installs itself but does not start.
java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/impl/client/DefaultHttpClient;
at xvs.ACL.ACL.<init>(ACL.java:85)
at java.lang.Class.newInstance(Native Method)
at anywheresoftware.b4a.shell.Shell.createObject(Shell.java:612)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:366)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at alpvir.sonoqui.main.initializeGlobals(main.java:327)
at alpvir.sonoqui.main.afterFirstLayout(main.java:102)
at alpvir.sonoqui.main.access$000(main.java:17)
at alpvir.sonoqui.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8595)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
Caused by: java.lang.ClassNotFoundException: org.apache.http.impl.client.DefaultHttpClient
... 18 more
** Activity (main) Create, isFirst = true **
:null,0
java.lang.RuntimeException: Unexpected command: 0
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:426)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at alpvir.sonoqui.main.afterFirstLayout(main.java:105)
at alpvir.sonoqui.main.access$000(main.java:17)
at alpvir.sonoqui.main$WaitForLayout.run(main.java:83)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:246)
at android.app.ActivityThread.main(ActivityThread.java:8595)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
** Activity (main) Resume **
Thanks in advance.
Last edited: