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.

Unable to build assemble releas on android react native 0.60.5

See original GitHub issue

Current behavior

There is the following error when building ./gradlew assembleRelease

Expected behavior

it build without error

Repro steps

  1. ./gradlew assembleRelease

Environment

  • Async Storage version: “^1.6.1”
  • React-Native version: “0.60.5”
  • Platform tested: Android
  • Logs/Error that are relevant:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':@react-native-community_async-storage:verifyReleaseResources'.
> 1 exception was raised by workers:
  com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values-v28\values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values\values.xml:2737: error: resource android:attr/fontVariationSettings not found.
  D:\confidential-project\node_modules\@react-native-community\async-storage\android\build\intermediates\res\merged\release\values\values.xml:2738: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
krizzucommented, Oct 7, 2019

@SimonPotier This is the main problem - the Gradle does know where to find Android SDK. Normally, this path is included in local.properties and looks something like this:

ndk.dir=/Users/<YourUserName>/Library/Android/sdk/ndk-bundle
sdk.dir=/Users/<YourUserName>/Library/Android/

Try finding your Android SDK path and adding it to the local.properties.

1reaction
SimonPotiercommented, Oct 8, 2019

@Krizzu Thanks, the issue for me was that the Android SDK wasn’t even installed on my machine, I installed it using Android Studio. The build works fine now, thanks again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-native 0.60.5 android release build failed #2515 - GitHub
I am upgrading react-native from 0.59.8 to 0.60.5 "react-native-camera": "^3.6.0", android.build.gradle defaultConfig { vectorDrawables.
Read more >
React native unable to create release build in android
i encounter an error when trying to build the react native. It has been quite long since the last time i build it,...
Read more >
Announcing React Native 0.70
We are excited to release a new version of React Native, 0.70.0. This version comes with several improvements like a new unified ...
Read more >
react native - add --max_old_space_size to iOS project when ...
Coding example for the question react native - add --max_old_space_size to iOS project when build release-React Native.
Read more >
react-native 0.60.5 android release build failed - Issuehunt
I am upgrading react-native from 0.59.8 to 0.60.5 "react-native-camera": "^3.6.0", android.build.gradle defaultConfig { vectorDrawables.
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