You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
I am author of pywebview and am working on adding Android support based on Kivy/Pyjnius/Buildozer. I have some Java code that needs to be included with the library. It works fine as long as I add a jar via android.add_jars in Buildozer or original Java files via android.add_src in Buildozer. However, since this is a library, I would like to spare the end-user from extra configuration steps and include the library JAR automatically. I have looked into setting a classpath with jnius_config.add_classpath, but I get this error
jnius.jnius.JavaException: JVM exception occurred: Didn't find class "com.pywebview.PyWebViewClient" on path: DexPathList[[zip file "/data/app/~~iFWGkcsFbJM8HyitgPBhcg==/com.pywebview.pywebview-ssFZsxemovo9okhxv_gqKw==/base.apk"],nativeLibraryDirectories=[/data/app/~~iFWGkcsFbJM8HyitgPBhcg==/com.pywebview.pywebview-ssFZsxemovo9okhxv_gqKw==/lib/arm64, /data/app/~~iFWGkcsFbJM8HyitgPBhcg==/com.pywebview.pywebview-ssFZsxemovo9okhxv_gqKw==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]] java.lang.ClassNotFoundException
The code I use is as follows. It is placed before importing jnius and the JAR filepath is correct.
👋 We use the issue tracker exclusively for bug reports and feature requests. However, this issue appears to be a support request. Please use our support channels to get help with the project.
Let us know if this comment was made in error, and we'll be happy to reopen the issue.
Hello
I am author of pywebview and am working on adding Android support based on Kivy/Pyjnius/Buildozer. I have some Java code that needs to be included with the library. It works fine as long as I add a jar via
android.add_jars
in Buildozer or original Java files viaandroid.add_src
in Buildozer. However, since this is a library, I would like to spare the end-user from extra configuration steps and include the library JAR automatically. I have looked into setting a classpath withjnius_config.add_classpath
, but I get this errorThe code I use is as follows. It is placed before importing jnius and the JAR filepath is correct.
Any idea what went wrong here? Is this something that can be done via classpath or maybe with the help of a recipe?
The text was updated successfully, but these errors were encountered: