Unable to build assemble releas on android react native 0.60.5
See original GitHub issueCurrent behavior
There is the following error when building ./gradlew assembleRelease
Expected behavior
it build without error
Repro steps
./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:
- Created 4 years ago
- Comments:16 (8 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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:Try finding your Android SDK path and adding it to the
local.properties
.@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.