theJosh
theJosh

Reputation: 3084

Android Gradle export failed

I am having trouble migrating my eclipse project to Android Studio. I followed the instcutions on this page http://developer.android.com/sdk/installing/migrate.html

When I type gradle at the command line I get this error:

BUILD FAILED

Total time: 1.1 secs

What path do you think it wants? And where does it want it?

Upvotes: 3

Views: 2212

Answers (2)

Jan-Terje Sørensen
Jan-Terje Sørensen

Reputation: 14698

You might be missing your lop-level build.gradle file. Here is a setup explained If this is not your issue, please provide your settings.gradle file and top-level build.gradle file.

Upvotes: 0

L7ColWinters
L7ColWinters

Reputation: 1362

So in my case I had a multi-project environment, what I had to do to get it working was to remove the absolute paths from the settings.gradle file in the root directory (dir containing all of the projects) and then in the build.gradle i had to remove the absolute directories for the compile statments and make sure that i used :{project_name} instead of ../{poject_name}

I realise that my situation was a bit different but if you download gradle and use the --debug switch you should be able to find which files have the problems and it's most likely a path problem.

Upvotes: 4

Related Questions