将Gobblin Gradle项目导入IDE时出错 [英] Error while importing gobblin gradle project into IDE
问题描述
当我尝试将gobblin发行版导入我的IDE时出现此错误,我同时尝试了inteliJ和eclipse,但找不到运气. 以下是我尝试导入时遇到的错误. 在Eclipse中,错误是:
I am getting this error while I try to import the gobblin distribution into my IDE , I have tried both inteliJ and eclipse , not able to find any luck. Below are the errors which I get when I try to import. In Eclipse the error is:
*org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.3-bin.zip'.
*
For InteliJ
*Cause: startup failed: build file 'C:\Users\sayyad.ghazi\Desktop\gob\gobblin-master\gobblin-restli\gobblin-throttling-service\gobblin-throttling-service-api\build.gradle': 1: unexpected token: .. @ line 1, column 1. ../../api.gradle ^ 1 error*
推荐答案
这是因为在Windows上,Git无法在非管理员模式下创建符号链接文件.符号链接文件被创建为包含符号链接的文本文件.
This is because on Windows, Git can not create symbolic link file on non-admins mode. Symbolic link file is created as text file, containing a symbolic link.
在管理员模式下尝试以下命令:
Try the following command in Administrator Mode:
git clone -c core.symlinks=true <URL>
然后检查符号链接文件的内容,例如描述中的"build.gradle".它应该与"../../api.gradle"的内容相同,而不仅仅是符号链接.
Then check the content of symbolic link file, such as "build.gradle" in your description. It should be the same as the content of "../../api.gradle", not just a symbolic link.
请参见 git-for-windows-wiki-Symbolic-Links 了解更多信息.
这篇关于将Gobblin Gradle项目导入IDE时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!