【发布时间】:2019-07-05 06:04:51
【问题描述】:
我想在 android 中添加这个 google play 位置服务
implementation 'com.google.android.gms:play-services-location:17.0.0'
我的支持:appcompat 库是
implementation 'com.android.support:appcompat-v7:27.1.1'
targetSdkVersion is 27
compileSdkVersion is 27
当尝试构建时出现错误
Android 资源链接失败 D:\AndroidStudioProject\GpsLocationApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2015:错误:找不到资源 android:attr/fontVariationSettings。
D:\AndroidStudioProject\GpsLocationApp\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:2015:错误:找不到资源 android:attr/ttcIndex。 错误:链接引用失败。
【问题讨论】:
-
删除构建文件夹,而不是清理并重建项目。
-
不工作同样的错误
-
尝试使用降级版本的定位服务
-
当我降级定位服务时收到此错误 错误:清单合并失败:属性 application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support :support-compat:28.0.0] AndroidManifest.xml:22:18-91 也存在于 [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app .CoreComponentFactory)。建议:在 AndroidManifest.xml:12:5-36:19 的
元素中添加 'tools:replace="android:appComponentFactory"' 以覆盖。
标签: android firebase google-play-services build.gradle androidx