Release build failed after update RN to 0.59.10 version
See original GitHub issueAfter updating my react-native version from 0.58.0 to 0.59.10 I have problem with assemlbe release build.
react-native run-iosworks- iOS build (on BuddyBuild) works
react-native run-androidon simulator - works
But when I want to get release build (.apk) and run command:
cd android && ./gradlew assembleRelease - build failed.
I checked linking, but I think everything is linked properly.
React Native version:
> Binaries:
> Node: 10.16.0 - /usr/local/bin/node
> npm: 6.9.0 - /usr/local/bin/npm
> Watchman: 4.9.0 - /usr/local/bin/watchman
> SDKs:
> iOS SDK:
> Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
> Android SDK:
> API Levels: 26, 28, 29
> Build Tools: 28.0.3, 29.0.1
> System Images: android-28 | Intel x86 Atom_64, android-28 | Google Play Intel x86 Atom, android-29 | Google APIs Intel x86 Atom
> IDEs:
> Android Studio: 3.4 AI-183.6156.11.34.5692245
> Xcode: 10.3/10G8 - /usr/bin/xcodebuild
> npmPackages:
> react: ^16.9.0 => 16.9.0
> react-native: 0.59.10 => 0.59.10
> npmGlobalPackages:
> react-native-cli: 2.0.1
Output
I got this error:
> Task :react-native-fcm:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-fcm:verifyReleaseResources'.
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/myname/Documents/projects/my-project/node_modules/react-native-fcm/android/build/intermediates/res/merged/release/values/values.xml:1968: error: resource android:attr/fontVariationSettings not found.
/Users/myname/Documents/projects/my-project/node_modules/react-native-fcm/android/build/intermediates/res/merged/release/values/values.xml:1968: error: resource android:attr/ttcIndex not found.
error: failed linking references.
What I can do about this?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5
Top Results From Across the Web
Assemble Release build failed after update React Native (to ...
After updating my react-native version from 0.58.0 to 0.59.10 I have problem with assemlbe release build. react-native run-ios works. iOS build ...
Read more >Upgrading React Native to version 0.59 and beyond: a step-by ...
After the upgrade process: · Reset your simulator settings: If you're running an iOS simulator, go to Hardware > Erase all content and...
Read more >npx react-native run-android build failed - You.com
I am trying to enable SSL Pinning in my react native App. I am using the SSL RN module (Link) and I have...
Read more >Announcing React Native 0.70
We are excited to release a new version of React Native, 0.70.0. ... Android builds along with a refresh of the documentation for...
Read more >A Guide to React Native Version 0.59 And List of Components
The new version of React Native version 0.59, was released on 12th ... the “User Interface” updates instantly without any error which is ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Can you run
react-native infoand edit your issue to include these results under the React Native version: section?I updated
react-native-fcmto version 16.0.0. After that I did this command:rm -rf ios/Pods && rm -rf ios/build && cd ios && pod installAnd everything works now.