Sketchware-Pro icon indicating copy to clipboard operation
Sketchware-Pro copied to clipboard

BottomSheetDragHandleView cannot be used in Sketchware Pro

Open TanTai97o opened this issue 2 years ago • 6 comments

Describe the bug

java.lang.NoSuchMethodError: No virtual method setAccessibilityDelegateView(Landroid/view/View;)V in class Lcom/google/android/material/bottomsheet/BottomSheetBehavior; or its super classes (declaration of 'com.google.android.material.bottomsheet.BottomSheetBehavior' appears in /data/app/~~g_UUTyODu1XWCdBbUohfMw==/com.test.bottomsheet.ui-JchiWTvGIOQaFLKuP1x95w==/base.apk!classes37.dex)
	at com.google.android.material.bottomsheet.BottomSheetDragHandleView.setBottomSheetBehavior(BottomSheetDragHandleView.java:146)
	at com.google.android.material.bottomsheet.BottomSheetDragHandleView.onAttachedToWindow(BottomSheetDragHandleView.java:117)
	at android.view.View.dispatchAttachedToWindow(View.java:22479)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3695)
	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3669)
	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:3116)
	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10885)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1301)
	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1309)
	at android.view.Choreographer.doCallbacks(Choreographer.java:923)
	at android.view.Choreographer.doFrame(Choreographer.java:852)
	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1283)
	at android.os.Handler.handleCallback(Handler.java:942)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loopOnce(Looper.java:226)
	at android.os.Looper.loop(Looper.java:313)
	at android.app.ActivityThread.main(ActivityThread.java:8762)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)

Device and Sketchware Pro-related info:

  • Device: SamSungA51
  • OS: Android 13
  • Sketchware Pro version:v6.4.0-SNAPSHOT-fd8a064-minApi26

TanTai97o avatar Feb 11 '24 15:02 TanTai97o

BottomSheetDragHandleView requires Material3 theme in your application.

aikrq avatar Feb 11 '24 15:02 aikrq

BottomSheetDragHandleView requires Material3 theme in your application.

I'm Using Material3 Theme And Can't Use It

TanTai97o avatar Feb 11 '24 15:02 TanTai97o

BottomSheetDragHandleView requires Material3 theme in your application.

I'm Using Material3 Theme And Can't Use It

Can you send your code here?

aikrq avatar Feb 11 '24 15:02 aikrq

BottomSheetDragHandleView requires Material3 theme in your application.

I'm Using Material3 Theme And Can't Use It

Can you send your code here?

Code Xml or Java?

TanTai97o avatar Feb 11 '24 15:02 TanTai97o

BottomSheetDragHandleView requires Material3 theme in your application.

I'm Using Material3 Theme And Can't Use It

Can you send your code here?

Code Xml or Java?

Both Java and XML, paste your code in pastebin and send here link.

aikrq avatar Feb 11 '24 15:02 aikrq

BottomSheetDragHandleView requires Material3 theme in your application.

I'm Using Material3 Theme And Can't Use It

Can you send your code here?

Code Xml or Java?

Both Java and XML, paste your code in pastebin and send here link.

https://pastebin.com/SWkG0C4G

TanTai97o avatar Feb 11 '24 15:02 TanTai97o

The built-in material library and their dependencies are just updated, you can use it without any error.

hasrat-ali avatar Nov 23 '24 04:11 hasrat-ali

The built-in material library and their dependencies are just updated, you can use it without any error.

Package parsing problem @hasrat-ali

Screenshot_20241123_123854_Package installer.jpg

TanTai97o avatar Nov 23 '24 05:11 TanTai97o

There is still problem in signing apk. Idk why the hell @ilyassesalama merged #1353

hasrat-ali avatar Nov 23 '24 06:11 hasrat-ali

For now decrease the targetSdkVersion to 28 and then build apk again. And don't forget to reset exculded library, and local library if there's any.

hasrat-ali avatar Nov 23 '24 06:11 hasrat-ali

For now decrease the targetSdkVersion to 28 and then build apk again. And don't forget to reset exculded library, and local library if there's any.

The package parsing problem still occurs.

TanTai97o avatar Nov 23 '24 06:11 TanTai97o

There is still problem in signing apk. Idk why the hell @ilyassesalama merged #1353

I tested it and it works fine. I believe this is an Android-version-specific issue.

ilyassesalama avatar Nov 23 '24 12:11 ilyassesalama