-
Notifications
You must be signed in to change notification settings - Fork 534
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
application crash #88
Comments
I think it maybe because unity does not support x86 architecture anymore,is that right? |
I ran into the same issue. Have yet to find a solution, so I changed directions to utilize the new Unity as a Library support. Please let us know if you find a fix. Would be much more convenient for flutter development to use this widget. |
Here is my exact error:
My build.gradle:
And settings.gradle:
|
i'm pretty sure i had this issue when using unity as a library with arfoundation and various other 3rd party unity libs, and not adding their aar-files inside UnityExport/libs as project-dependencies if you have additional libs there other than unity-classes.jar, add them as modules like you did with unity-classes.jar, and in my case with latest unity 2019.3 beta build, change your build.gradle in UnityExport to use:
for an example instead of having the dependencies added by their filenames directly (as the unity flutter export script does) add all of those "projects" as includes to the "android" projects settings.gradle as you did with unity-classes and make sure you sync the gradle scripts make sure the imported aar-files as modules are inside the UnityExport directory instead of the flutter project root, the chapter "Vuforia" in the readme hints about this (and also the way how to add the dependencies as written above), this finally made things work for me (well until i found issues with androidx libs, sdk versions and flutter-plugins, but that is whole other story ...) |
yeah it works now , thank you @sarawin008 you solved my problem ,Thank you all |
I faced this error after open the app, unity indeed does not export libmain.so and other .so files , I made the apk and decompiled it and got libmain.so ,libil2cpp.so and other files i put them into unity export but invain
E/flutter (13362): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.rexraphael.flutterunitywidgetexample-TxKj4BthLTvMKnaWmKmMOw==/base.apk"],nativeLibraryDirectories=[/data/app/com.rexraphael.flutterunitywidgetexample-TxKj4BthLTvMKnaWmKmMOw==/lib/x86, /data/app/com.rexraphael.flutterunitywidgetexample-TxKj4BthLTvMKnaWmKmMOw==/base.apk!/lib/x86, /system/lib]]] couldn't find "libmain.so"
The text was updated successfully, but these errors were encountered: