Closed GokulDas027 closed 4 years ago
this is a bit more complicated to be honest, if you never worked with android and gradle before, but basically you have to do this
make sure once it is working, you save this file as a copy, as currently it is overwritten everytime you do a new export from unity using the flutter menu, the export kinda does the same, but it wants to include the libs directly (using implementation name) which never worked for me
Thanks!! It Worked!🤩
Firstly, It's really complicated.. I couldn't even keep count of the number of build.gradle files..!!
implementation(name: 'arcore_client', ext:'aar') implementation(name: 'unityandroidpermissions', ext:'aar') implementation(name: 'UnityARCore', ext:'aar')
And so i thought, It was dealt with... and now it worked as I replaced it. Also ARPresto
is somehow not needed now.. didn't have that project or module.
Thanks now that it worked👍
Now, this is how the build.gradle file is..
Successfully created the release build but the app is crashing on startup, checking for the reason..
use --no-shrink when building the app, had the same issue
also in case you upgrade the ar-foundation packages in unity, make sure you always replace the modules inside the grade submodules with the updated aar-files from unityexport/libs
anyone unfamiliar with gradle can check out: https://stackoverflow.com/questions/16682847/how-to-manually-include-external-aar-package-using-new-gradle-android-build-syst
I already use this plugin to made an IOS Ar app,but now im trying to create the android version i follow all of the steps in the docs but i have this error
E/Unity (11649): Failed to load '/data/app/com.artplacer.artplacer-Cmg6Ih1K7jWKRmvSGLeqAw==/lib/x86/libmain.so', the application will terminate. E/flutter (11649): [ERROR:flutter/shell/platform/android/platform_view_android_jni_impl.cc(43)] java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/app/com.artplacer.artplacer-Cmg6Ih1K7jWKRmvSGLeqAw==/lib/x86/libmain.so" not found
i dont know how to solve it,im new in the android world
I already use this plugin to made an IOS Ar app,but now im trying to create the android version i follow all of the steps in the docs but i have this error
E/Unity (11649): Failed to load '/data/app/com.artplacer.artplacer-Cmg6Ih1K7jWKRmvSGLeqAw==/lib/x86/libmain.so', the application will terminate. E/flutter (11649): [ERROR:flutter/shell/platform/android/platform_view_android_jni_impl.cc(43)] java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/app/com.artplacer.artplacer-Cmg6Ih1K7jWKRmvSGLeqAw==/lib/x86/libmain.so" not found
i dont know how to solve it,im new in the android world
were you ever able to fix this? have the same issue now with latest plugin (2.x), since i started to use gradle 5.6.4 (which has to be used to even be able to compile with arcore using unity2020.2b5+)
If any of you have implemented flutter unity widget with arfoundation then please send me the link of project. The project they include in documentation is really old. Please help me.
FAILURE: Build failed with an exception.
What went wrong: Could not determine the dependencies of task ':app:preDebugBuild'. Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. Could not find :arcore_client:. Required by: project :app > project :flutter_unity_widget > project :UnityExport Could not find :unityandroidpermissions:. Required by: project :app > project :flutter_unity_widget > project :UnityExport Could not find :UnityARCore:. Required by: project :app > project :flutter_unity_widget > project :UnityExport
Added modules(all 4 files) Project Structure:
Android/Settings.gradle :