Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 为什么新的google places api没有与build.gradle同步?_Android_Google Places Api - Fatal编程技术网

Android 为什么新的google places api没有与build.gradle同步?

Android 为什么新的google places api没有与build.gradle同步?,android,google-places-api,Android,Google Places Api,根据谷歌新发布的PlacesAPI。我已经完成了此链接中提到的所有操作,并为我的项目启用了计费,但仍然无法同步项目。 错误是 ERROR: Failed to resolve: com.google.android.libraries.places:1.0.0: Install Repository and sync project 我已经将android sdk、play services和google repository更新到最新版本。 我已经在stackoverflow和其他网站上搜索

根据谷歌新发布的PlacesAPI。我已经完成了此链接中提到的所有操作,并为我的项目启用了计费,但仍然无法同步项目。 错误是

ERROR: Failed to resolve: com.google.android.libraries.places:1.0.0:
Install Repository and sync project
我已经将android sdk、play services和google repository更新到最新版本。 我已经在stackoverflow和其他网站上搜索了很多,但是没有任何关于这个的问题

我的应用程序级别build.gradle文件为

我的项目级build.gradle文件是


《入门指南》具有错误的依赖项,尽管它在上是正确的。如上所示,实际的依赖关系是:

implementation 'com.google.android.libraries.places:places:1.0.0'

注意:还有一个:places compat依赖项。

尽管《入门指南》上的依赖项是正确的,但它具有错误的依赖项。如上所示,实际的依赖关系是:

implementation 'com.google.android.libraries.places:places:1.0.0'
注意还有一个:places compat依赖项

implementation 'com.google.android.libraries.places:places:1.0.0'