react-native - 反应原生 react-native-mauron85-background-geolocation:processReleaseResources FAILED
问题描述
一切正常,然后突然出现以下错误
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
:react-native-mauron85-background-geolocation:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-mauron85-background-geolocation:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 23.413 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
解决方案
我设法通过更改 node_modules/react-native-mauron85-background-geolocation/android/lib/build.gradle 中的一行来解决这个问题
compile 'com.android.support:support-v4:+'
至
compile 'com.android.support:support-v4:23.+'
推荐阅读
- r - R粘贴时间差与单位(秒,分钟等)
- dialogflow-cx - Dialogflow CX - 使用 sys.person 给出奇怪的输出
- node.js - RxJS:使用 NestJS HttpService 对分页 API 进行并行 http 调用
- jquery - 在 jQuery 中使用箭头键移动表格的行
- elasticsearch - Elasticsearch - 搜索小于 min_gram 的词
- linux - Docker 容器 - 使用 xclip 提取文本
- amazon-web-services - AWS- 数据没有从 Lambda 保存到 DynamoDB
- java - 如何根据分隔符将数组列表拆分为两个数组列表?
- python - Python: Read list of dataframe from csv file
- css - 高度和线高之间的差异,使用 rem