ERROR: * What went wrong: Execution failed for task ':app:mergeReleaseNativeLibs'.

This issue has been created since 2022-11-16.

Description

I'm trying to generate aab and when I run the command to generate aab, I get the following error: * What went wrong:
Execution failed for task ':app:mergeReleaseNativeLibs'.
How to solve ?

Version

0.63.3

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: Windows 10 10.0.22621
CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 2.20 GB / 7.83 GB
Binaries:
Node: 16.18.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - C:\Program Files\nodejs\yarn.CMD
npm: 8.19.2 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels: 29, 30, 31, 33
Build Tools: 29.0.2, 30.0.2, 31.0.0, 33.0.0
System Images: android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-30 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-31 | Android TV ARM 64 v8a, android-31 | Android TV Intel x86 Atom, android-31 | ARM 64 v8a, android-31 | Intel x86 Atom_64, android-31 | Google TV ARM 64 v8a, android-31 | Google TV Intel x86 Atom, android-31 | Google APIs ARM 64 v8a, android-31 | Google APIs Intel x86 Atom_64, android-31 | Google Play Intel x86 Atom_64, android-TiramisuPrivacySandbox | Google Play Intel x86 Atom_64
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-213.7172.25.2113.9123335
Visual Studio: 16.11.33027.164 (Visual Studio Community 2019)
Languages:
Java: 11.0.12
Python: 3.10.5
npmPackages:
@react-native-community/cli: Not Found
react: ^17.0.1 => 17.0.1
react-native: 0.63.3 => 0.63.3
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

gradlew bundleRelease

Snack, code example, screenshot, or link to a repository

.

gokul1099 wrote this answer on 2022-11-17

try adding this to the android/build.gradle

allprojects {
repositories {
exclusiveContent {
// We get React Native's Android binaries exclusively through npm,
// from a local Maven repo inside node_modules/react-native/.
// (The use of exclusiveContent prevents looking elsewhere like Maven Central
// and potentially getting a wrong version.)
filter {
includeGroup "com.facebook.react"
}
forRepository {
maven {
url "$rootDir/../node_modules/react-native/android"
}
}
}

safaiyeh wrote this answer on 2022-11-20

Please use the issue template

More Details About Repo
Owner Name facebook
Repo Name react-native
Full Name facebook/react-native
Language JavaScript
Created Date 2015-01-09
Updated Date 2022-12-10
Star Count 106395
Watcher Count 3660
Fork Count 22685
Issue Count 2288

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Manage default values for methods parameters 1 2021-02-25 2022-12-01
Locking out because of invalid username / password error 3 2021-09-10 2022-10-31
CapsLock does not work 4 2019-10-13 2022-10-19
Selects with more than 4 explictly typed options always return string values in v-model. 2 2022-08-30 2022-11-07
supporting TLSv1.3 1 2021-10-25 2022-01-14
Sequel pro not showing proper data 0 2022-01-19 2022-11-14
[Set Audio Device] Favourite output audio device could not be set 0 2022-11-15 2022-11-14
Using Tensorflow on Red Hat 7 with jep 2 2021-05-24 2022-08-29
Inserting with sublist on PostgreSQL where the sublist object has nullable DateTime throws 4 2021-10-16 2022-11-28
[Intel]: https://twitter.com/CraigHRowland/status/1422267857988063232 0 2022-04-20 2022-11-23
[Feature] to be enable to download webnovel 1 2022-03-12 2022-09-13
How to clearly know Trino Query Hive execution process? 0 2021-11-03 2022-10-23
JET doesn't understand module aliases (?) 4 2021-07-24 2022-11-05
Access to undefined reference at let keyword 10 2021-07-24 2022-11-05
Dependency Dashboard 0 2022-04-08 2022-11-08
Make concurrency less brittle 0 2021-07-27 2022-11-08
Warehouse Activity "Source Subtype" to Enum 2 2021-11-12 2022-11-04
Being converted to a virus immune species does not fix a virus 1 2021-09-23 2022-08-31
VS 2022 Text Editor Options Tab Not Documented 2 2022-01-14 2022-11-28
Vrl Performance 1 2021-10-27 2022-01-20
Provide env var to disable creating prepared statements 0 2021-09-07 2022-09-03
干货:探秘WKWebView 1 2021-10-21 2022-01-10
How to use this for API authentication? 7 2020-10-06 2022-12-02
vpnserver.sh wrong systemctl call 3 2021-03-15 2022-11-17
vk_patform.h include path in vulkan_core.h is incorrect 2 2021-07-27 2022-12-07
Recurrent integrity check fails on 24 subversions 0 2022-09-11 2022-12-02
Filter rooms and resources 0 2021-08-17 2022-10-30
Question: syntax for adding context in cdk.json 1 2021-11-19 2022-10-31
Expression language, support fluent style method calling for better readability 0 2022-09-05 2022-11-19
Extend Webhook Payload placeholders to reference full Cloud Event Payload 5 2022-01-24 2022-11-08
expose amount of requests in queue 1 2021-09-14 2022-11-23
Looks like it gets stuck in `dns_answer_match_key`: 14 2022-07-10 2022-10-24
Modelling confidential vs explicit transaction outputs 2 2020-12-13 2022-11-21
[Support]: deprecated pixel format used, broken frames, invalid args 11 2021-12-21 2022-12-07
commonUtils.prepData() breaks compatibility with certain transports that require batch encoding of data 2 2018-01-29 2022-11-25
Problem with an object property that has two different type 0 2019-09-18 2022-10-07
ca65: Assembler hangs completely on certain input 2 2022-02-04 2022-10-29
Different behavior of the MultiLayerNeighborSampler when the graph has one node type and edge type and when the graph is heterogenous. 9 2022-06-13 2022-10-19
nginx/1.7.6新版本对JS使用标准MIME-Type(application/javascript)导致的400 Bad Request 6 2014-10-16 2022-11-09
Add develop tag to docker hub image 4 2017-12-18 2022-12-04
Allow obtaining global symbols (like modules, their functions, attributes) even without created YaraFile 1 2020-05-07 2022-11-15
Set color profiles 14 2017-04-17 2022-01-13
Fix 404 in MSTG 0 2020-10-05 2022-01-08
Wrap links in flame graph info box 2 2022-01-11 2022-11-16
Allow specifying pip cache dependencies inline in the yaml 3 2022-03-09 2022-11-27
key problem about bug solving 0 2022-10-28 2022-11-30
Android support? 6 2021-12-04 2022-01-15
🧐[问题]protable filters筛选项在部分windows系统中chrome上不显示底部按钮 2 2022-05-06 2022-09-30
4 of 5 zz_generated.openapi.go files are checked in - why? 7 2022-01-19 2022-08-30
Track version/sha information of the benchmark project 0 2021-04-25 2022-11-11