Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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:

  • Where: Settings file 'C:\Users\Joshua\Development\workspace\settings.gradle' line: 1

  • What went wrong: A problem occurred evaluating settings 'workspace'.

    A path must be specified!

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.1 secs

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

like image 861
theJosh Avatar asked Jun 16 '26 05:06

theJosh


1 Answers

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.

like image 181
L7ColWinters Avatar answered Jun 17 '26 17:06

L7ColWinters



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!