flutter-unity-view-widget icon indicating copy to clipboard operation
flutter-unity-view-widget copied to clipboard

No android/unityLibrary/libs/VuforiaWrapper.aar exist

Open nimr77 opened this issue 1 year ago • 4 comments

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

nimr77 avatar Sep 14 '22 22:09 nimr77

Hi, @nimr77 any luck solving this? I am facing the same and don't know how to proceed. Any help will be highly appreciated :)

maryam-fatima avatar May 01 '23 14:05 maryam-fatima

hi,

I have the same problem, please if you solve it let me know...

razanZughaibi avatar May 23 '23 22:05 razanZughaibi

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:

  1. Create a directory named VuforiaEngine within the android/ directory.

  2. 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'))
  1. 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")
  1. Update android/unityLibrary/build.gradle with the following change:
- implementation(name: 'VuforiaEngine', ext: 'aar')
+ implementation project(':VuforiaEngine')
  1. 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.

rajivaPavan avatar Dec 24 '23 18:12 rajivaPavan

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:

  1. Create a directory named VuforiaEngine within the android/ directory.
  2. 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'))
  1. 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")
  1. Update android/unityLibrary/build.gradle with the following change:
- implementation(name: 'VuforiaEngine', ext: 'aar')
+ implementation project(':VuforiaEngine')
  1. 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?

image

bomxo007 avatar Feb 21 '24 09:02 bomxo007