合并清单失败,更新位置Api时出错

问题描述 投票:1回答:1

[嘿,我的Google Places Api无法正常工作,我在他们要求更新的Places Api的日志中看到。所以我尝试这样做,他们要求添加一些依赖关系

implementation 'com.google.android.libraries.places:places:2.2.0'
implementation 'com.google.android.libraries.places:places-compat:2.2.0'

当我同时添加这两个依赖项时,我得到此错误

Merging Errors: Error: Attribute activity#com.google.android.libraries.places.widget.AutocompleteActivity@theme value=(@style/PlacesAutocompleteThemeOverlay) from AndroidManifest.xml:21:13-66 is also present at AndroidManifest.xml:18:13-61 value=(@style/PlacesAutocompleteOverlay). Suggestion: add 'tools:replace="android:theme"' to <activity> element at AndroidManifest.xml:16:9-23:20 to override. app main manifest (this file), line 20 Error: Attribute activity#com.google.android.libraries.places.widget.AutocompleteActivity@windowSoftInputMode value=(stateAlwaysVisible|adjustPan) from AndroidManifest.xml:22:13-71 is also present at AndroidManifest.xml:19:13-55 value=(adjustResize). Suggestion: add 'tools:replace="android:windowSoftInputMode"' to <activity> element at AndroidManifest.xml:16:9-23:20 to override. app main manifest (this file), line 21

但是如果我仅添加一个依赖项,那么它的工作还可以,我需要在代码中同时满足这两个依赖项,请在过去4个小时内帮助解决它:(

android android-studio android-maps
1个回答
0
投票

根据Google用于Android的Places SDK的文档版本2.0.0

© www.soinside.com 2019 - 2024. All rights reserved.