juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.14k stars 523 forks source link

No android/unityLibrary/libs/VuforiaWrapper.aar exist #689

Open nimr77 opened 2 years ago

nimr77 commented 2 years ago

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

maryam-fatima commented 1 year ago

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

razanZughaibi commented 1 year ago

hi,

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

rajivaPavan commented 10 months ago

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'))
  3. Modify the settings.gradle file in the android/ directory:

    
    include ":app"

include ":unityLibrary" project(":unityLibrary").projectDir = file("./unityLibrary")


4. Update _android/unityLibrary/build.gradle_ with the following change:
```diff
- 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.

bomxo007 commented 8 months ago

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