简体   繁体   English

在 Eclipse 中打开 build.gradle

[英]Open build.gradle in Eclipse

I'm going to use the Facebook SDK in my application.我将在我的应用程序中使用 Facebook SDK。 I must open the build.gradle and add the following code:我必须打开 build.gradle 并添加以下代码:

repositories {
    mavenCentral()
}

But where in Eclipse can I open this for my project?但是我可以在 Eclipse 中的哪个位置为我的项目打开它? I have googled, but can't find any relevant information.我用谷歌搜索过,但找不到任何相关信息。

you need to add gradle plugin to eclipse and then configure your project to use gradle.您需要将 gradle 插件添加到 eclipse,然后将您的项目配置为使用 gradle。 For more reference check out the answer:有关更多参考,请查看答案:

https://stackoverflow.com/a/14616328/3541465 https://stackoverflow.com/a/14616328/3541465

OR或者

You can add Facebook sdks manually in eclipse.您可以在 eclipse 中手动添加 Facebook sdk。 First import the Facebook sdk in eclipse then add it into your project.首先在 Eclipse 中导入 Facebook sdk,然后将其添加到您的项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM