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?
compile fileTree(dir: 'libs', include: ['*.jar'])
compile(name: 'VuforiaWrapper', ext:'aar')