Open PICO443 opened 1 year ago
I am facing the same issue
java.lang.NoSuchMethodError: No static method drawRoundRect-ZuiqVtQ$default(Landroidx/compose/ui/graphics/drawscope/DrawScope;Landroidx/compose/ui/graphics/Brush;JJJFLandroidx/compose/ui/graphics/drawscope/DrawStyle;Landroidx/compose/ui/graphics/ColorFilter;IILjava/lang/Object;)V in class Landroidx/compose/ui/graphics/drawscope/DrawScope; or its super classes (declaration of 'androidx.compose.ui.graphics.drawscope.DrawScope' appears in /data/app/~~QlVBT0ordaNSs-jft0tSEQ==/com.rms.musicplayer.music.audio.songs.media.mp3player-nwKc4yrj3ljnCG2s_p8RoQ==/base.apk) at com.linc.audiowaveform.AudioWaveformKt$AudioWaveform$2.invoke(AudioWaveform.kt:98) at com.linc.audiowaveform.AudioWaveformKt$AudioWaveform$2.invoke(AudioWaveform.kt:72) at androidx.compose.ui.draw.DrawBackgroundModifier.draw(DrawModifier.kt:116) at androidx.compose.ui.node.LayoutNodeDrawScope.drawDirect-x_KDEd0$ui_release(LayoutNodeDrawScope.kt:105) at androidx.compose.ui.node.LayoutNodeDrawScope.draw-x_KDEd0$ui_release(LayoutNodeDrawScope.kt:86) at androidx.compose.ui.node.NodeCoordinator.drawContainedDrawModifiers(NodeCoordinator.kt:364) at androidx.compose.ui.node.NodeCoordinator.draw(NodeCoordinator.kt:353) at androidx.compose.ui.node.LayoutModifierNodeCoordinator.performDraw(LayoutModifierNodeCoordinator.kt:176) at androidx.compose.ui.node.NodeCoordinator.drawContainedDrawModifiers(NodeCoordinator.kt:361) at androidx.compose.ui.node.NodeCoordinator.access$drawContainedDrawModifiers(NodeCoordinator.kt:54) at androidx.compose.ui.node.NodeCoordinator$drawBlock$1$1.invoke(NodeCoordinator.kt:383) at androidx.compose.ui.node.NodeCoordinator$drawBlock$1$1.invoke(NodeCoordinator.kt:382) at androidx.compose.runtime.snapshots.Snapshot$Companion.observe(Snapshot.kt:2303) at androidx.compose.runtime.snapshots.SnapshotStateObserver$ObservedScopeMap.observe(SnapshotStateObserver.kt:500) at androidx.compose.runtime.snapshots.SnapshotStateObserver.observeReads(SnapshotStateObserver.kt:256) at androidx.compose.ui.node.OwnerSnapshotObserver.observeReads$ui_release(OwnerSnapshotObserver.kt:133) at androidx.compose.ui.node.NodeCoordinator$drawBlock$1.invoke(NodeCoordinator.kt:382) at androidx.compose.ui.node.NodeCoordinator$drawBlock$1.invoke(NodeCoordinator.kt:380) at androidx.compose.ui.platform.RenderNodeApi29.record(RenderNodeApi29.android.kt:209) at androidx.compose.ui.platform.RenderNodeLayer.updateDisplayList(RenderNodeLayer.android.kt:335) at androidx.compose.ui.platform.AndroidComposeView.dispatchDraw(AndroidComposeView.android.kt:1236) at android.view.View.draw(View.java:24664) at android.view.View.updateDisplayListIfDirty(View.java:23469) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4628) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4601) at android.view.View.updateDisplayListIfDirty(View.java:23404) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4628) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4601) at android.view.View.updateDisplayListIfDirty(View.java:23404) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4628) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4601) at android.view.View.updateDisplayListIfDirty(View.java:23404) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4628) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4601) at android.view.View.updateDisplayListIfDirty(View.java:23404) at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:4628) at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:4601) at android.view.View.updateDisplayListIfDirty(View.java:23404) at android.view.ThreadedRenderer.updateViewTreeDisplayList(ThreadedRenderer.java:736) at android.view.ThreadedRenderer.updateRootDisplayList(ThreadedRenderer.java:745) 16:51:47.875 E at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:851) (Ask Gemini) at android.view.ViewRootImpl.draw(ViewRootImpl.java:5670) at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:5313) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:4419) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2976) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:10422) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1671) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1680) at android.view.Choreographer.doCallbacks(Choreographer.java:1191) at android.view.Choreographer.doFrame(Choreographer.java:1063) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1650) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:222) at android.os.Looper.loop(Looper.java:314) at android.app.ActivityThread.main(ActivityThread.java:8600) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:565) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
java.lang.NoSuchMethodError: No static method graphicsLayer-Ap8cVGQ$default(Landroidx/compose/ui/Modifier;FFFFFFFFFFJLandroidx/compose/ui/graphics/Shape;ZLandroidx/compose/ui/graphics/RenderEffect;JJIILjava/lang/Object;)Landroidx/compose/ui/Modifier; in class Landroidx/compose/ui/graphics/GraphicsLayerModifierKt; or its super classes (declaration of 'androidx.compose.ui.graphics.GraphicsLayerModifierKt' appears in /data/app/com.pico.learningcanvas-1/base.apk) at com.linc.audiowaveform.AudioWaveformKt.AudioWaveform-x4UjrtE(AudioWaveform.kt:76)
It's the same issue in #9 and I don't know why the issue is closed without providing a solution for it :')buildscript { ext { compose_version = '1.2.0' } }// Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { id 'com.android.application' version '7.4.1' apply false id 'com.android.library' version '7.4.1' apply false id 'org.jetbrains.kotlin.android' version '1.7.0' apply false }
` plugins { id 'com.android.application' id 'org.jetbrains.kotlin.android' }
android { namespace 'com.pico.learningcanvas' compileSdk 33
} dependencies { implementation 'androidx.core:core-ktx:1.7.0' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1' implementation 'androidx.activity:activity-compose:1.3.1' implementation "androidx.compose.ui:ui:$compose_version" implementation "androidx.compose.ui:ui-tooling-preview:$compose_version" implementation "androidx.compose.material:material:$compose_version" implementation 'androidx.compose.material3:material3:1.0.1' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"
} `
`
` I really don't know if it's ok to use it like that