evollu / evollu/react-native-fcm
Android build failed with AATP Error in RN 0.57.4
- Dominant language
- Java
- Stars
- 1.7k
- Forks
- 661
- PR merge metrics
- No merged PRs in 30d
Description
Procedure are:
1. Create new react-native project with `react-native init`
2. Add latest react-native-fcm (16.2.4) and gradle settings according to README
3. Run debug build (`cd android` and `./gradlew assembleDebug`)
Version of RN and react-native-fcm are:
- react-native 0.57.4
- react-native-fcm 16.2.4
and reproduced in my repository.
https://github.com/ohnishiakira/RNFcmSample
```
$ ./gradlew assembleDebug
> Configure project :app
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
> Configure project :react-native-fcm
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Task :app:processDebugGoogleServices
Parsing json file: /Users/akira/Documents/sketch/ReactNative/FcmSample/android/app/google-services.json
/Users/akira/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/c216c91b596b7491492b09306fa38d6f/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/akira/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/c216c91b596b7491492b09306fa38d6f/res/values/values.xml:251:5-69: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to process resources, see aapt output above for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
22 actionable tasks: 2 executed, 20 up-to-date
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure from the linked RNFcmSample repository, running `cd android` and `./gradlew assembleDebug` as described. Inspect the README Gradle settings and the Android build configuration around the `processDebugResources` task; done means the RN 0.57.4 project builds successfully without the reported AAPT errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100