Android Question Error NoClassDefFoundError and DefaultHttpClient

AlpVir

Well-Known Member
Licensed User
Longtime User
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.
 
Last edited:

AlpVir

Well-Known Member
Licensed User
Longtime User
Posting the code seems very complicated to me, it involves numerous Activities and modules. I try to provide some other elements. The app works (always in debug mode) with Android 8. It produces that error with Android 11.
I use various libraries, including OkHttp 1.31, AndroidResources 1.6, ContentResolver 1.5, Core 11.00, JavaObject 2.06, Reflection 2.4, RuntimePermissione 1.12, SQL 1.5, etc etc
The app saves files in File.dirInternal, not in File.DirRootExternal.
Javac.exe is C:\Java\jdk-11.0.1\bin\javac.exe
Android.jad is C:\Android\platforms\android-30\android.jar
Five modules are ContactUtils.bas, CustomListView.bas, HttpUtils2Service, HttpJob.bas, FileProvider.bas.
This is the manifest file :
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…