Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0 on Android API 21-22 anyway #366

Open
Yoko999 opened this issue Nov 13, 2023 · 0 comments

Comments

@Yoko999
Copy link

Yoko999 commented Nov 13, 2023

What is the issue?

My application with Pusher version 2.4.# crashes on Pusher's initialization on Android API 21-22.
I did like described here, but it doesn't change anything with it.

AGP version 7.4.2
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")

implementation "com.pusher:pusher-java-client:2.4.4"

Project's compile, target SDK 33
Min SDK 21

Is it a crash report? Submit stack traces or anything that you think would help

 java.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0
        at com.pusher.client.Pusher.<init>(Pusher.java:103)
        at com.pusher.client.Pusher.<init>(Pusher.java:85)
        at myapp.features.chat.data.PusherWebSocket.<init>(PusherWebSocket.java:122)
        at myapp.data.chat.NewWebSocketChatRepositoryImpl.<init>(NewWebSocketChatRepositoryImpl.kt:29)
        at myapp.presentation.chat.ConsultantChatMessagesRepositoryFactory.create(ConsultantHelper.kt:62)
        at myapp.presentation.chat.ConsultantFragment.createChatViewModel(ConsultantFragment.java:51)
        at myapp.presentation.chat.ChatFragment.onCreateView(ChatFragment.java:80)
        at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3104)
        at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524)
        at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
        at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:113)
        at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1433)
        at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2977)
        at androidx.fragment.app.FragmentManager.dispatchViewCreated(FragmentManager.java:2888)
        at androidx.fragment.app.Fragment.performViewCreated(Fragment.java:3129)
        at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:552)
        at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
        at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1899)
        at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1823)
        at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1760)
        at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:547)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:135)
        at android.app.ActivityThread.main(ActivityThread.java:5221)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:372)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

It works with Pusher version 2.2.8.


CC @pusher/mobile

@Yoko999 Yoko999 changed the title ava.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0 on Android API 21-22 anyway java.lang.NoClassDefFoundError: com.pusher.client.Pusher$$ExternalSyntheticLambda0 on Android API 21-22 anyway Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant