简体   繁体   English

云端点Gradle依赖关系

[英]Cloud Endpoint Gradle Dependencies

I was watching a video from Developers.Google on how to add an Endpoint database. 我正在观看来自Developers.Google的视频,其中介绍了如何添加Endpoint数据库。

The endpoint is working because when I visit my developers console and use the Api in the browser is working fine. 端点正常运行,因为当我访问开发人员控制台并在浏览器中使用Api时,运行正常。 So my Java code is working. 因此,我的Java代码正在运行。 My problem is being when gradle tries to synchronize. 我的问题是gradle尝试同步时。

Here's is what I have. 这就是我所拥有的。

compile('com.gabilheri.robot.cloud:robotAPI:v1-1.17.0-rc-SNAPSHOT') {
   exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}

compile('com.google.http-client:google-http-client:1.17.0-rc') {
    exclude(group: 'com.google.android', module: 'android')
    exclude(group: 'org.apache.httcomponents', module: 'httpclient')
}

And here is what the guy in the video has: 这是视频中的那个家伙:

compile('com.google.todotxt.backend:taskApi:v1-1.17.0-rc-SNAPSHOT') {
   exclude(group: 'org.apache.httpcomponents', module: 'httpclient')
}

compile('com.google.http-client:google-http-client:1.17.0-rc') {
    exclude(group: 'com.google.android', module: 'android')
    exclude(group: 'org.apache.httcomponents', module: 'httpclient')
}

What I changed for me was the name of my package and API but i'm getting and sync error from Gradle. 我为我更改的是程序包和API的名称,但是我从Gradle获取并同步了错误。

In the video it seems that android-studio auto completed for him. 在视频中,似乎android-studio自动为他完成了。 But My Android Studio is not getting any code completion for Gradle AT ALL. 但是My Android Studio完全没有为Gradle AT提供任何代码完成。 Using Android-Studio 0.54 on Mac OSX. 在Mac OSX上使用Android-Studio 0.54。

Thanks! 谢谢!

Did you add the maven repositories to your gradle file? 您是否已将Maven存储库添加到gradle文件中?

Example: 例:

respositories{
    mavenLocal()
}

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

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