错误添加谷歌标识工具包,摇篮 [英] Error adding Google Identity Toolkit with Gradle
问题描述
我想谷歌的工具包的身份添加到使用摇篮Android Studio中我的谷歌应用程序引擎的后端。不过,我是新来的Android Studio和摇篮。
我添加了以下到我的后端的build.gradle:
{库
mavenCentral()
}依赖{
编译com.google.apis:谷歌的API服务,identitytoolkit:v3的rev191-1.20.0
}
在一个同步的Gradle和构建我尝试添加导入:
进口com.google.identitytoolkit.GitkitClient;
不过,我收到以下错误:
无法解析符号'identitytoolkit
块引用>和
错误:包com.google.identitytoolkit不存在
块引用>解决方案好吧,我觉得有点傻......我已经意识到我的错误:
我应该用摇篮配置已
编译com.google.identitytoolkit:gitkitclient:1.2.3
而不是
{库
mavenCentral()
}依赖{
编译com.google.apis:谷歌的API服务,identitytoolkit:v3的rev191-1.20.0
}使用
<一个href=\"http://search.maven.org/#artifactdetails%7Ccom.google.identitytoolkit%7Cgitkitclient%7C1.2.3%7Cjar\" rel=\"nofollow\">http://search.maven.org/#artifactdetails%7Ccom.google.identitytoolkit%7Cgitkitclient%7C1.2.3%7Cjar
而不是
https://developers.google.com/api-客户端库/ JAVA /的API / identitytoolkit / V3
I am trying to add the Google Identity Toolkit to my Google App Engine backend in Android Studio using Gradle. But I'm new to Android Studio and Gradle.
I have added the following to my backend build.gradle:
repositories { mavenCentral() } dependencies { compile 'com.google.apis:google-api-services-identitytoolkit:v3-rev191-1.20.0' }
After a sync and gradle build I try to added an import:
import com.google.identitytoolkit.GitkitClient;
But I am getting the following errors:
cannot resolve symbol 'identitytoolkit'
and
error: package com.google.identitytoolkit does not exists
解决方案Well I feel a little bit stupid... I've realised my mistake:
I should have been using the Gradle config:
compile 'com.google.identitytoolkit:gitkitclient:1.2.3'
instead of
repositories { mavenCentral() } dependencies { compile 'com.google.apis:google-api-services-identitytoolkit:v3-rev191-1.20.0' }
using
http://search.maven.org/#artifactdetails%7Ccom.google.identitytoolkit%7Cgitkitclient%7C1.2.3%7Cjar
instead of
https://developers.google.com/api-client-library/java/apis/identitytoolkit/v3
这篇关于错误添加谷歌标识工具包,摇篮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!