簡體   English   中英

雲端點Gradle依賴關系

[英]Cloud Endpoint Gradle Dependencies

我正在觀看來自Developers.Google的視頻,其中介紹了如何添加Endpoint數據庫。

端點正常運行,因為當我訪問開發人員控制台並在瀏覽器中使用Api時,運行正常。 因此,我的Java代碼正在運行。 我的問題是gradle嘗試同步時。

這就是我所擁有的。

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')
}

這是視頻中的那個家伙:

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')
}

我為我更改的是程序包和API的名稱,但是我從Gradle獲取並同步了錯誤。

在視頻中,似乎android-studio自動為他完成了。 但是My Android Studio完全沒有為Gradle AT提供任何代碼完成。 在Mac OSX上使用Android-Studio 0.54。

謝謝!

您是否已將Maven存儲庫添加到gradle文件中?

例:

respositories{
    mavenLocal()
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM