Android的摇篮导出失败 [英] Android Gradle export failed

查看:143
本文介绍了Android的摇篮导出失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有麻烦我的Eclipse项目迁移到Android的工作室。我跟着这个页面上的instcutions http://developer.android.com/sdk/installing/ migrate.html

当我键入摇篮在命令行中我得到这个错误:

  • 其中: 设置文件'C:\ Users \用户约书亚\开发\工作区\ settings.gradle'行:1

  • 出了什么问题: 发生问题评估设置工作区。

      

    一个路径必须指定!

  • 尝试: 与--stacktrace选项获取堆栈跟踪运行。与--info或--debug运行 选项​​,以获得更多的日志输出。

BUILD失败。

总时间:1.1秒

您觉得什么路不就是了?而且它在哪里想要吗?

解决方案

所以,在我的情况我有一个多项目的环境中,我不得不这样做,以得到它的工作是从settings.gradle文件中删除的绝对路径在根目录下(目录包含所有项目),然后在build.gradle我不得不删除的绝对目录的编译statments,并确保我用:{} PROJECT_NAME而不是../{poject_name}

我知道我的情况有点不同,但如果你下载摇篮,并使用--debug切换,你应该能够找到哪些文件有问题,这是最有可能的路径问题。

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?

解决方案

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.

这篇关于Android的摇篮导出失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆