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

Crash on Share Click java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/graphics/drawable/DrawableWrapper; #1142

Open
nauhalf opened this issue Dec 13, 2023 · 3 comments

Comments

@nauhalf
Copy link

nauhalf commented Dec 13, 2023

✍️ Describe the bug

When I click the share in the request detail screen, it crashed.

💣 Steps to reproduce

  1. Go to 'Chucker'
  2. Click on 'One of detail'
  3. Click share icon
  4. Crash occured

🔧 Expected behavior

I want it to display pop up to share curl, response, etc

📷 Screenshots

image

📱 Tech info

  • Device: Nubia RedMagic 7
  • OS: Android 12
  • Chucker version: 4.0.0
  • Gradle Version: 8.0.0
  • AGP Version: 8.0.2
  • Java: 17
  • Kotlin Version: 1.8.22

📄 Additional context

The logs of crash

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/appcompat/graphics/drawable/DrawableWrapper;
                                                                                                    	at androidx.appcompat.widget.MenuPopupWindow.createDropDownListView(MenuPopupWindow.java:80)
                                                                                                    	at androidx.appcompat.widget.ListPopupWindow.buildDropDown(ListPopupWindow.java:1179)
                                                                                                    	at androidx.appcompat.widget.ListPopupWindow.show(ListPopupWindow.java:664)
                                                                                                    	at androidx.appcompat.view.menu.StandardMenuPopup.tryShow(StandardMenuPopup.java:181)
                                                                                                    	at androidx.appcompat.view.menu.StandardMenuPopup.show(StandardMenuPopup.java:208)
                                                                                                    	at androidx.appcompat.view.menu.MenuPopupHelper.showPopup(MenuPopupHelper.java:296)
                                                                                                    	at androidx.appcompat.view.menu.MenuPopupHelper.tryShow(MenuPopupHelper.java:182)
                                                                                                    	at androidx.appcompat.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:144)
                                                                                                    	at androidx.appcompat.widget.ActionMenuPresenter.onSubMenuSelected(ActionMenuPresenter.java:310)
                                                                                                    	at androidx.appcompat.view.menu.MenuBuilder.dispatchSubMenuSelected(MenuBuilder.java:314)
                                                                                                    	at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:1008)
                                                                                                    	at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:975)
                                                                                                    	at androidx.appcompat.widget.ActionMenuView.invokeItem(ActionMenuView.java:625)
                                                                                                    	at androidx.appcompat.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:151)
                                                                                                    	at android.view.View.performClick(View.java:7471)
                                                                                                    	at android.widget.TextView.performClick(TextView.java:12535)
                                                                                                    	at android.view.View.performClickInternal(View.java:7448)
                                                                                                    	at android.view.View.access$3700(View.java:838)
                                                                                                    	at android.view.View$PerformClick.run(View.java:28936)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:938)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:242)
                                                                                                    	at android.os.Looper.loop(Looper.java:374)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:9333)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1018)
                                                                                                    Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.appcompat.graphics.drawable.DrawableWrapper" on path: DexPathList[[zip file "/data/app/~~zbuxISZm-2RiN-YdRfLKrw==/{{package}}-iRGYHm0cJ9zOJL-Dx1EG4g==/base.apk"],nativeLibraryDirectories=[/data/app/~~zbuxISZm-2RiN-YdRfLKrw==/{{package}}-iRGYHm0cJ9zOJL-Dx1EG4g==/lib/arm64, /data/app/~~zbuxISZm-2RiN-YdRfLKrw==/{{package}}-iRGYHm0cJ9zOJL-Dx1EG4g==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]]
                                                                                                    	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
                                                                                                    	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
                                                                                                    	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                    	at androidx.appcompat.widget.MenuPopupWindow.createDropDownListView(MenuPopupWindow.java:80) 
                                                                                                    	at androidx.appcompat.widget.ListPopupWindow.buildDropDown(ListPopupWindow.java:1179) 
                                                                                                    	at androidx.appcompat.widget.ListPopupWindow.show(ListPopupWindow.java:664) 
                                                                                                    	at androidx.appcompat.view.menu.StandardMenuPopup.tryShow(StandardMenuPopup.java:181) 
                                                                                                    	at androidx.appcompat.view.menu.StandardMenuPopup.show(StandardMenuPopup.java:208) 
                                                                                                    	at androidx.appcompat.view.menu.MenuPopupHelper.showPopup(MenuPopupHelper.java:296) 
                                                                                                    	at androidx.appcompat.view.menu.MenuPopupHelper.tryShow(MenuPopupHelper.java:182) 
                                                                                                    	at androidx.appcompat.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:144) 
                                                                                                    	at androidx.appcompat.widget.ActionMenuPresenter.onSubMenuSelected(ActionMenuPresenter.java:310) 
                                                                                                    	at androidx.appcompat.view.menu.MenuBuilder.dispatchSubMenuSelected(MenuBuilder.java:314) 
                                                                                                    	at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:1008) 
                                                                                                    	at androidx.appcompat.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:975) 
                                                                                                    	at androidx.appcompat.widget.ActionMenuView.invokeItem(ActionMenuView.java:625) 
                                                                                                    	at androidx.appcompat.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:151) 
                                                                                                    	at android.view.View.performClick(View.java:7471) 
                                                                                                    	at android.widget.TextView.performClick(TextView.java:12535) 
                                                                                                    	at android.view.View.performClickInternal(View.java:7448) 
                                                                                                    	at android.view.View.access$3700(View.java:838) 
                                                                                                    	at android.view.View$PerformClick.run(View.java:28936) 
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:938) 
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99) 
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:242) 
                                                                                                    	at android.os.Looper.loop(Looper.java:374) 
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:9333) 
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:612) 
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1018) 
@cortinico
Copy link
Member

Does this happen consistently?
Also can you create a reproducer?

@nauhalf
Copy link
Author

nauhalf commented Dec 13, 2023

  1. Yes, but it only occurred on the version and tech info I mentioned above.

I tried to check the old version like the one below,

AGP 7.2.1
Gradle 7.3.3
Kotlin Version = 1.6.10
Java Version = VERSION_1_8
Chucker Version 3.5.2

It runs normally

--Edit--
I found that I add "androidx.appcompat:appcompat-resources:1.6.1", is it related to this error?

--Another Edit--
Nope, after I delete that dependency, it still crash

  1. Can you explain about what is the reproducer you mean?

@ithebk
Copy link

ithebk commented Apr 24, 2024

@nauhalf How did you resolve this issue?

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

3 participants