gioui-plugins / gio-plugins

Gio-Plugins offers new plugins to extend and enhance your Gio app. Inspired by flutter/plugins repository,
Other
56 stars 6 forks source link

webview plug in android complains 'Didn't find class "com/inkeliz/webview/sys_android"' #45

Open awsong opened 1 year ago

awsong commented 1 year ago

Affected plugin WebViewer

Describe the bug A clear and concise description of what the bug is.

Expected behavior I followed WebViewer's instruction, but when ever I call webviewer.WebViewOp{Tag: new(int)}.Push(gtx.Ops) the app will crash. logcat error shows: 06-09 17:02:00.315 10474 0 E Go : panic: java.lang.ClassNotFoundException: Didn't find class "com/inkeliz/webview/sys_android" on path: DexPathList[[zip file "/data/app/~~U4IeYUXlfsBl5UbjD5FE_Q==/com.myapp.ipn-8uhBTZkYSnEuFtckM_lbFg==/base.apk"],nativeLibraryDirectories=[/data/app/~~U4IeYUXlfsBl5UbjD5FE_Q==/com.myapp.ipn-8uhBTZkYSnEuFtckM_lbFg==/lib/arm64, /data/app/~~U4IeYUXlfsBl5UbjD5FE_Q==/com.myapp.ipn-8uhBTZkYSnEuFtckM_lbFg==/base.apk!/lib/arm64-v8a, /system/lib64, /system/system_ext/lib64]]

To Reproduce I did run plugin.Install(window, evt) before calling webviewer.WebViewOp

Reproducible code

Introduce the minimum code to reproduce the issue.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

inkeliz commented 1 year ago

I push one small change, to fix .jar. But, I'm not sure if that issue is fixed, I'm take a look later. :)

awsong commented 1 year ago

seems not. I updated to latest plugin module github.com/gioui-plugins/gio-plugins v0.0.0-20230609115442-5d1d7feeafdd the problem was still there.