Android Question ZOMaterialComponents library with new B4A 12 and SDK - NoClassDefFoundError - Lkotlin/jvm/internal/Intrinsics

mcqueccu

Well-Known Member
Licensed User
Longtime User
Has anyone been able to successfully compile their application with the ZOmaterialcomponents library found here #post 8?
I have been using B4A v12 since it was released with no problem. I recently opened some old project which uses ZOMaterialComponents library and I started getting Debugger failed to connect without any further error. Apps are not running.

When I turned on Unfiltered Logs, I got this error message. I have reinstalled B4A several times, and redownloade the sdk components and extracted with 7zip but it seems the error is not from there.


B4X:
hutting down VM
FATAL EXCEPTION: main
Process: b4a.example, PID: 28435
java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;
    at androidx.savedstate.SavedStateRegistryController$Companion.create(Unknown Source:2)
    at androidx.savedstate.SavedStateRegistryController.create(Unknown Source:2)
    at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:146)
    at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:108)
    at androidx.appcompat.app.AppCompatActivity.<init>(AppCompatActivity.java:94)
    at b4a.example.main.<init>(main.java:17)
    at java.lang.Class.newInstance(Native Method)
    at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
    at android.app.Instrumentation.newActivity(Instrumentation.java:1273)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3666)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3988)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:109)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2335)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:241)
    at android.os.Looper.loop(Looper.java:342)
    at android.app.ActivityThread.main(ActivityThread.java:8117)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
Caused by: java.lang.ClassNotFoundException: kotlin.jvm.internal.Intrinsics
    ... 22 more
at androidx.savedstate.SavedStateRegistryController$Companion.create(Unknown Source:2)
at androidx.savedstate.SavedStateRegistryController.create(Unknown Source:2)
at androidx.activity.ComponentActivity.<init>(ComponentActivity.java:146)
at androidx.fragment.app.FragmentActivity.<init>(FragmentActivity.java:108)
at androidx.appcompat.app.AppCompatActivity.<init>(AppCompatActivity.java:94)
at b4a.example.main.<init>(main.java:17)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at android.app.Instrumentation.newActivity(Instrumentation.java:1273)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3666)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3988)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:109)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2335)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:241)
at android.os.Looper.loop(Looper.java:342)
at android.app.ActivityThread.main(ActivityThread.java:8117)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
isTheMainScreen, displayId: 0  classname = b4a.example.main
getTopPackageNameNew pkm = b4a.example
HwBinder: Starting thread pool for getting: vendor.transsion.hardware.tne.tneengine@1.0::ITne/default
isQSplitscreenMode mode = 1
tne=vendor.transsion.hardware.tne.tneengine@1.0::ITne@Proxy
getCallbackIndex index= 1
vendor TNE runTNE
sceneType===0xffffff05,sceneType.length()=10
Illegal TNE TAG 0xffffff05,break
crashInfo.exceptionClassName = java.lang.ClassNotFoundException , crashInfo.exceptionMessage = kotlin.jvm.internal.Intrinsics, crashInfo.throwFileName = null,crashInfo.throwLineNumber = 2
permission proof speed of 0 mm
mode = 1 clsname = b4a.example.main
 
Solution


Installed viewpager2 with the sdk manager and it worked.

Make sure to use latest version of B4A. AppCompat version should be 4.02.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…