Failed to export Android Gradle

I had a problem migrating my eclipse project to Android Studio. I followed the installations 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": 1

  • What went wrong: There was a problem evaluating the settings workspace.

    You must specify the path!

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

STRICTLY MALFUNCTIONAL

Total time: 1.1 s

Which way do you think he wants? And where does he want it?

+3
source share
2 answers

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

I understand that my situation was a little different, but if you download gradle and use the --debug switch, you should find which files have problems, and this is most likely a path problem.

+4
source

You may be missing the build.gradle file at the lop level. Setting is described below. If this is not your problem, provide the settings.gradle file and the top level build.gradle file.

0
source

Source: https://habr.com/ru/post/1484907/


All Articles