-
Notifications
You must be signed in to change notification settings - Fork 39
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
Error when running APK generated by GraalVM native-image, java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "JNI_OnLoad_awt" #349
Comments
Umm, sorry previous errors was comming when using latest emulator Nox App player x64 bit.
Still this error is confusing, why this is coming however I am not using any AWT. |
This error e.g.
& Running native APK on Android e.g. |
oracle/graal#3406 (reference) |
There is no support yet for AWT on Android, so any library that makes use of it should be excluded, if possible. |
@jperedadnr : Is it possible that it doesn't actually fail because AWT, but it's connected with this old bug? |
I don't see any relation between possible use of AWT with gluonhq/substrate#840 I can't reproduce the issue deploying HelloGluon to Android with plugin 1.0.3 and Gluon's GraalVM, even if I add either slf4j-log4j12 or commons-configuration2 dependencies. |
@jperedadnr Noop, I think the above error is still exists even in v. latest Gluonfx plugin & GraalVM. See, I have uploaded a simple project here where this error is happening. Logs files: client-debug0.log & client-debug0.log.1 I have run this command for testing:
In other branch this error is not there, because system info:
Window 10 with WSL (Ubuntu) |
There is a tentative workaround to avoid AWT references on Android, providing AWT is not used explicitly by the project. gluonfx-maven-plugin version: 1.0.4-SNAPSHOT plugin repository:
|
@jperedadnr That error have been resolved by using above method, but facing again another one e.g.
Complete log file client-debug0.log See complete project at https://github.com/ctoabidmaqbool/HSQLDb-On-GraalVM-NativeImage-Test |
Yes, that is similar to the ULE "JVM_GetStackAccessControlContext" I get now too. (gluonhq/substrate#970) There seems to be something completely broken. |
I am working on a project which was using old
javafxmobile-plugin
& gradle. Now try to convert it togluonfx-maven-plugin
. All steps are fine until e.g.mvn clean -Pandroid gluonfx:build gluonfx:package gluonfx:install
.But when try to run APK on Emulator / Android using
mvn -Pandroid gluonfx:nativerun
this error is shown logs are below, I am unable to detect why this error is happening there. Any idea to fix it?Output of
java -version
:Output of
mvn -Pandroid dependency:tree
:&
Let me know, if any more info is needed, please it's commercially project I can't share whole code.. thanks
The text was updated successfully, but these errors were encountered: