Forum: Android

Here is a forum space for SDK: Android.

227. Run time error when I tap "Login" button on helloPTT

How can I fixt this issue?

HelloPTT: ver 4.04

2021-09-19 11:34:54.242 14129-14129/com.imptt.proptt.helloptt I/proptt.hellopt: Late-enabling -Xcheck:jni
2021-09-19 11:34:54.528 14129-14129/com.imptt.proptt.helloptt I/MultiDex: VM with version 2.1.0 has multidex support
2021-09-19 11:34:54.528 14129-14129/com.imptt.proptt.helloptt I/MultiDex: Installing application
2021-09-19 11:34:54.528 14129-14129/com.imptt.proptt.helloptt I/MultiDex: VM has multidex support, MultiDex support library is disabled.
2021-09-19 11:34:54.538 14129-14129/com.imptt.proptt.helloptt D/AndroidRuntime: Shutting down VM
2021-09-19 11:34:54.542 14129-14129/com.imptt.proptt.helloptt E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.imptt.proptt.helloptt, PID: 14129
    java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/app/NotificationCompat$Builder;
        at com.imptt.propttsdk.core.PTTControllerService.onCreate(Unknown Source:30)
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3702)
        at android.app.ActivityThread.access$1500(ActivityThread.java:210)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1763)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:193)
        at android.app.ActivityThread.main(ActivityThread.java:6894)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.NotificationCompat$Builder" on path: DexPathList[[zip file "/data/app/com.imptt.proptt.helloptt-uxjcFdz-vrhWOKKFpakGVA==/base.apk"],nativeLibraryDirectories=[/data/app/com.imptt.proptt.helloptt-uxjcFdz-vrhWOKKFpakGVA==/lib/arm64, /data/app/com.imptt.proptt.helloptt-uxjcFdz-vrhWOKKFpakGVA==/base.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.imptt.propttsdk.core.PTTControllerService.onCreate(Unknown Source:30) 
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3702) 
        at android.app.ActivityThread.access$1500(ActivityThread.java:210) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1763) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:193) 
        at android.app.ActivityThread.main(ActivityThread.java:6894) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:883) 

Sep 19 '21 at 02:52 (GMT0) created by Kunimitsu Arai

 
Hi Kunimitsu Arai,
Could you tell me what your device's Android version?
ProPTT2 

Sep 19 '21 at 14:44 (GMT0) created by ProPTT2 dev

 
 
Device : OPPO A5 2020
Android : 10

Device : Sharp Aquos sense3
Android : 9

Both devices end with the same result.

Sep 20 '21 at 06:10 (GMT0) created by Kunimitsu Arai

 
 
Device : OPPO A5 2020
Android : 10

Device : Sharp Aquos sense3
Android : 9

Both devices end with the same result.

Sep 20 '21 at 06:10 (GMT0) created by Kunimitsu Arai

 
 
FYI: When I used HelloPTT v3(HelloPTT-android5.zip), this issue did not happen.

Sep 24 '21 at 04:34 (GMT0) created by Kunimitsu Arai

 
 
I think it would be related with your Android studio.
Please refer to https://stackoverflow.com/questions/39601370/java-lang-noclassdeffounderror-failed-resolution-of-landroid-support-v4-os-bui/39787861
Thanks,
ProPTT2

Sep 20 '21 at 13:17 (GMT0) created by ProPTT2 dev