Android Question USSSDCallBack Error

Claude Obiri Amadu

Member
Licensed User
Longtime User
Hi, can anyone please help me with this error

*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
Permission: true
main$ResumableSub_rUNresume (java line: 469)
java.lang.NoClassDefFoundError: Failed resolution of: Lsmm/ussdcallbackwrapperpackage/ussdcallbackwrapper$1;
at smm.ussdcallbackwrapperpackage.ussdcallbackwrapper.sendUssdRequest(ussdcallbackwrapper.java:73)
at b4a.USSDCallBack.main$ResumableSub_rUN.resume(main.java:469)
at anywheresoftware.b4a.BA.checkAndRunWaitForEvent(BA.java:250)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:190)
at anywheresoftware.b4a.BA$2.run(BA.java:370)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5765)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: java.lang.ClassNotFoundException: Didn't find class "smm.ussdcallbackwrapperpackage.ussdcallbackwrapper$1" on path: DexPathList[[zip file "/data/app/b4a.USSDCallBack-2/base.apk"],nativeLibraryDirectories=[/data/app/b4a.USSDCallBack-2/lib/arm, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 12 more
Suppressed: java.lang.NoClassDefFoundError: smm.ussdcallbackwrapperpackage.ussdcallbackwrapper$1
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:338)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 14 more
Suppressed: java.lang.ClassNotFoundException: smm.ussdcallbackwrapperpackage.ussdcallbackwrapper$1
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 13 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available

Error I get When ussd sends request:
 

DonManfred

Expert
Licensed User
Longtime User
Hi, can anyone please help me with this error
Not really. You are not providing enough informations.

Upload a small project which shows the issue.
Tell us which library/example you are trying to run; for me it is unclear.

Based on the error i expect it to be a library from @somed3v3loper ... ?
 
Last edited:
Upvote 0

Claude Obiri Amadu

Member
Licensed User
Longtime User
OK Here's the example
The USSD Library from @somed3v3loper
I'm using the Dialogs Library too
Each time I run the example I get an error
 

Attachments

  • USSDCallBack.zip
    10.3 KB · Views: 265
Last edited:
Upvote 0

Claude Obiri Amadu

Member
Licensed User
Longtime User
i ran your project, enter any number as ussd (probably not correct). I did not get any Crash here.

Which version of B4A are you using? You are running the example on a Device running Android XXX? What it the android Version of the Device?
I'm using B4A 9.80 and My Device is Android 6.0 (Android 23)
I entered *124# it crashed and I tried 124 still crashed
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…