Search Unity

Using Unity module with vuforia in Android studio

Discussion in 'Vuforia' started by kers, Mar 14, 2018.

  1. kers

    kers

    Joined:
    Sep 8, 2013
    Posts:
    1
    Hi!

    I have Unity 2017.3.1f1, Vuforia 7 and Android Studio 3.0.1. To run the unity module in AS i export it from unity to an android build using gradle. I then change the build.gradle and manifest to correspond to my respective AS versions and also changing it from an application to a library. After this i import a new module in my already existing AS project using Import AAR or Import Gradle project (I've tried both).

    Now if the Unity project doesn't contain Vuforia im all good and it works just like it has before. But if i include it, it returns an error. "Failed to resolve module :VuforiaWrapper:". My guess is that it cant find the file VuforiaWrapper.aar even though i see it in the project tree in the folder 'libs'.

    The second line is the one causing the trouble, should i use a path or something? What have i missed?
    Code (CSharp):
    1. dependencies {
    2.     compile fileTree(dir: 'libs', include: ['*.jar'])
    3.     compile(name: 'VuforiaWrapper', ext:'aar')
    4. }
     
  2. esfand55

    esfand55

    Joined:
    Mar 16, 2018
    Posts:
    1
    Last edited: Mar 17, 2018
    Vuforia-Strasza likes this.