[英]error importing gradle project into eclipse
It´s my first time with gradle , I´m trying to import a gradle project into my Eclipse .这是我第一次使用 gradle ,我正在尝试将 gradle 项目导入到我的 Eclipse 中。
Eclipse Java EE IDE for Web Developers.面向 Web 开发人员的 Eclipse Java EE IDE。 Version: Photon Release (4.8.0) Build id: 20180619-1200 OS: Windows 10, v.10.0, x86_64 / win32 Java version: 1.8.0_181
版本:Photon Release (4.8.0) 版本号:20180619-1200 操作系统:Windows 10, v.10.0, x86_64 / win32 Java 版本:1.8.0_181
using import "Existing Gradle Project" ..I´m getting a error on the使用导入“现有 Gradle 项目”..我在
org.gradle.tooling.BuildException: Could not fetch model of type 'GradleBuild' using Gradle distribution ' https://services.gradle.org/distributions/gradle-4.3-bin.zip '. org.gradle.tooling.BuildException:无法使用 Gradle 发行版“ https://services.gradle.org/distributions/gradle-4.3-bin.zip ”获取“GradleBuild”类型的模型。
...... Caused by: org.gradle.internal.exceptions.LocationAwareException: Build file 'C:\\WorkArea\\os_temp\\build.gradle' line: 14 ...... 引起:org.gradle.internal.exceptions.LocationAwareException: Build file 'C:\\WorkArea\\os_temp\\build.gradle' line: 14
line: 14 --> props.load(new FileInputStream("build.properties")) ....行:14 --> props.load(new FileInputStream("build.properties")) ....
Caused by: java.io.FileNotFoundException: build.properties (The system cannot find the file specified)引起:java.io.FileNotFoundException:build.properties(系统找不到指定的文件)
the build.properties is there in the root folder of the project that I´m trying to import build.properties 位于我尝试导入的项目的根文件夹中
this is the project that i´m trying to import https://github.com/krishagni/openspecimen这是我试图导入的项目https://github.com/krishagni/openspecimen
thank you Roque谢谢罗克
I got the same issues for gradle-5.3.1
, but while importing the project:我在
gradle-5.3.1
遇到了同样的问题,但是在导入项目时:
C:\\gradle-5.3.1
C:\\gradle-5.3.1
C:\\gradle-5.3.1\\bin
and after this the project imported successfully, it solved my problem.C:\\gradle-5.3.1\\bin
并且在此之后项目成功导入,它解决了我的问题。 I hope this helps in your case.我希望这对您的情况有所帮助。
Local installation directory
for gradle and so on.Local installation directory
等。 Note : The import might fail for other reasons as well which might need a different troubleshooting.注意:导入也可能因其他原因而失败,这可能需要不同的故障排除。 This worked for me though.
不过这对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.