flutter-unity-view-widget
flutter-unity-view-widget copied to clipboard
No android/unityLibrary/libs/VuforiaWrapper.aar exist
Hi,
I'm having an issue with exporting with vuforia, there is no android/unityLibrary/libs/VuforiaWrapper.aar
the files are :
arcore_client.aar unityandroidpermissions.aar unity-classes.jar
ARPresto.aar UnityARCore.aar VuforiaEngine.aar
Hi, @nimr77 any luck solving this? I am facing the same and don't know how to proceed. Any help will be highly appreciated :)
hi,
I have the same problem, please if you solve it let me know...
I encountered the same issue, and after attempting the steps outlined in the README without success (@juicycleff, I think the instructions might be outdated), I found a workaround based on this Stack Overflow answer.
Identify Android Archive File:
The Android archive file in my case was VuforiaEngine.aar
, located in android/unityLibrary/libs/.
Workaround:
-
Create a directory named VuforiaEngine within the android/ directory.
-
Create a new file,
build.gradle
, in the android/VuforiaEngine/ directory and add the following lines to it:
configurations.maybeCreate("default")
artifacts.add("default", file('VuforiaEngine.aar'))
- Modify the settings.gradle file in the android/ directory:
include ":app"
+ include ':VuforiaEngine'
+ project(":VuforiaEngine").projectDir = file("./VuforiaEngine")
include ":unityLibrary"
project(":unityLibrary").projectDir = file("./unityLibrary")
- Update android/unityLibrary/build.gradle with the following change:
- implementation(name: 'VuforiaEngine', ext: 'aar')
+ implementation project(':VuforiaEngine')
- Move the
VuforiaEngine.aar
file from android/unityLibrary/libs/ to android/VuforiaEngine/
Post-Export Steps:
Repeat steps 4 and 5 each time an export is done from the Unity project.
I encountered the same issue, and after attempting the steps outlined in the README without success (@juicycleff, I think the instructions might be outdated), I found a workaround based on this Stack Overflow answer.
Identify Android Archive File:
The Android archive file in my case was
VuforiaEngine.aar
, located in android/unityLibrary/libs/.Workaround:
- Create a directory named VuforiaEngine within the android/ directory.
- Create a new file,
build.gradle
, in the android/VuforiaEngine/ directory and add the following lines to it:configurations.maybeCreate("default") artifacts.add("default", file('VuforiaEngine.aar'))
- Modify the settings.gradle file in the android/ directory:
include ":app" + include ':VuforiaEngine' + project(":VuforiaEngine").projectDir = file("./VuforiaEngine") include ":unityLibrary" project(":unityLibrary").projectDir = file("./unityLibrary")
- Update android/unityLibrary/build.gradle with the following change:
- implementation(name: 'VuforiaEngine', ext: 'aar') + implementation project(':VuforiaEngine')
- Move the
VuforiaEngine.aar
file from android/unityLibrary/libs/ to android/VuforiaEngine/Post-Export Steps:
Repeat steps 4 and 5 each time an export is done from the Unity project.
i'm follow your setup is error
how to fix?