Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error:Failed to resolve: :VuforiaWrapper: #14

Closed
ianrothmann opened this issue Jan 14, 2018 · 2 comments
Closed

Error:Failed to resolve: :VuforiaWrapper: #14

ianrothmann opened this issue Jan 14, 2018 · 2 comments

Comments

@ianrothmann
Copy link

ianrothmann commented Jan 14, 2018

Hi there,

I am using Unity 2017.3.0f3 with Vuforia 7.0.36. I now get this error
Error:Failed to resolve: :VuforiaWrapper: when syncing.

I suspect it has to do with this in build.gradle for the UnityProject

dependencies {
	compile fileTree(dir: 'libs', include: ['*.jar'])
	compile(name: 'VuforiaWrapper', ext:'aar')
}

I used to build with Unity 2017.2.0b10, and the VuforiaWrapper dependency was not there. When I remove that dependency the project builds, but of course Vuforia does not work.

Any ideas? The error only occurs when integrating, meaning that I can build the Unity Grade project on its own without problems.

Much appreciated!

Ian

Ps. Seems like this individual has a similar problem: https://developer.vuforia.com/forum/unity/error-import-unity-project-android-studio

@yasirkula
Copy link
Owner

I found a solution to this problem but I couldn't test it with an Ionic project but rather with an empty Android project; so, you may need to adjust the solution a little in your case.

What I did was simply pasting the following code to the top of build.gradle of the android module:

allprojects {
    repositories {
        flatDir {
            dirs 'C:\\absolute path\\to your\\unity export folder\\libs'
        }
    }
}

@ianrothmann
Copy link
Author

Thank you very much! This works perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants