question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release build failed after update RN to 0.59.10 version

See original GitHub issue

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 (on BuddyBuild) works
  • react-native run-android on 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:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
react-native-botcommented, Sep 4, 2019

Can you run react-native info and edit your issue to include these results under the React Native version: section?

If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.</detail>
0reactions
NemanjaManotcommented, Sep 5, 2019

I updated react-native-fcm to version 16.0.0. After that I did this command: rm -rf ios/Pods && rm -rf ios/build && cd ios && pod install And everything works now.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found