Android resource linking failed

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

Description

A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:D:\project\android\app\build\intermediates\incremental\debug\mergeDebugResources\merged.dir\values\values.xml:831: AAPT: error: resource drawable/rn_edit_text_material (aka com.project:drawable/rn_edit_text_material) not found

Version

0.70.5

Output of npx react-native info

System:
OS: Windows 10 10.0.22621
CPU: (16) x64 12th Gen Intel(R) Core(TM) i7-12650H
Memory: 2.18 GB / 15.68 GB
Binaries:
Node: 14.20.1 - C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.14.17 - 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, 30.0.3, 31.0.0, 33.0.0
System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play Intel x86 Atom, android-29 | Google Play Intel x86 Atom_64, android-30 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-31 | Intel x86 Atom_64, android-31 | Google APIs ARM 64 v8a, android-31 | Google APIs Intel x86 Atom_64, android-33 | Google APIs ARM 64 v8a, android-33 | Google APIs Intel x86 Atom_64, android-33 | Google Play Intel x86 Atom_64
Android NDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-213.7172.25.2113.9014738
Visual Studio: Not Found
Languages:
Java: 11.0.16 - /c/Program Files/Common Files/Oracle/Java/javapath/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-windows: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

react-native run-android

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

In values.xml file.

<style name="Theme.AppCompat.DayNight" parent="Theme.AppCompat.Light"/> @drawable/rn_edit_text_material </style>
shoaibarif244 wrote this answer on 2022-11-17

greetings @vaish8529 did you find the solution I got stuck in this problem for the previous 3days.

vaishnavimaske wrote this answer on 2022-11-17

Yes, I have copied the rn_edit_text_material file from another project and put them in the res/drawable folder of the current project.

shoaibarif244 wrote this answer on 2022-11-17

Yes, I have copied the rn_edit_text_material file from another project and put them in the res/drawable folder of the current project.

@vaish8529 Thanks for your reply I'm trying this solution & will inform you

shoaibarif244 wrote this answer on 2022-11-17

Yes, I have copied the rn_edit_text_material file from another project and put them in the res/drawable folder of the current project.

@vaishnavimaske Thanks you so much (جزاکم اللہ خیرا کثیرا) 💓

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
Feature Request: plz add imgur 0 2022-06-16 2022-11-30
how to implement this: torchvision.transforms.functional.perspective 25 2022-08-23 2022-12-03
map BBT citekeys to zotero IDs by searching extras field 0 2022-01-12 2022-10-15
Animation<T>のstruct制限を外す 0 2022-01-14 2022-10-29
[Feature][web] optimization document manager 0 2022-03-30 2022-07-29
Are emojis supported ? Black squares are appearing 0 2022-05-25 2022-11-20
Time parsing in sab seems intermittently broken. 1 2022-03-21 2022-11-12
http 404 in logs for /socket and /ws-api 1 2022-01-19 2022-11-06
`setmetatable` based Lua API 1 2022-07-12 2022-11-27
`string.gsub` is nice 1 2022-07-07 2022-11-15
scale out pd cause cdc panic 1 2022-08-30 2022-09-09
Dataclasses not supported 3 2021-06-08 2022-12-02
[NFSU2] slow gearbox in high FPS 3 2022-10-18 2022-11-21
.mp4 videos encoded in PNG (with transparent background) are not displayed by the plugin. 0 2021-03-29 2022-10-11
go mod support is not working 1 2021-03-30 2022-08-19
bug(Select) filter bug when having variable substitution in template literal 4 2021-12-30 2022-10-20
Download the avatar 1 2021-04-07 2022-01-04
Meshcentral Assistant not working properly 3 2021-07-29 2022-11-13
Render threads 32 2021-07-28 2022-01-16
Sample code on Authentication Policy with JWT token does not return 401 / 403 Http status code 2 2022-06-05 2022-11-15
Radarr does not import mp4 video file after mkv conversion and redownloads movie 1 2022-09-09 2022-10-12
search bar ui change in network monitor 1 2021-05-06 2022-11-28
Chrome antialiasing problem 2 2020-10-18 2022-09-25
LUA ERROR - On entering Torghast 3 2022-08-04 2022-11-30
Can't Import/Export profiles 0 2022-10-29 2022-11-30
Text notification about the beginning / end of the fight 5 2022-10-31 2022-11-30
LUA Error when trying to use Silverdragon's macro - but shows a DBM LUA error 2 2022-10-31 2022-11-30
Import / Export does not work 1 2022-10-30 2022-11-30
Auto logging missing CHALLENGE_MODE_START for M+ 2 2022-09-04 2022-11-30
[gfcbaaab] WoW compleatly freeze in Huntsman Altimor fight. 1 2022-08-25 2022-11-30
Getting 502 Bad Gateway error in conda install 2 2022-06-15 2022-11-26
Integration in Flask with blueprints and application factory pattern for a large application 3 2021-09-09 2022-11-05
Can't set a request timeout 1 2022-08-25 2022-11-20
Feature Request: Configurable Mapping in .github folder 11 2021-11-08 2022-09-14
Remove deprecated throughput settings from akamai-purger 2 2022-03-16 2022-09-03
enable execute command for EC2 / Fargate tasks 2 2021-12-05 2022-12-01
Scope of OCI Runtime Certification with software higher in the stack 19 2018-04-04 2022-11-29
Integrate the certification program with CI? 1 2017-11-29 2022-12-09
sap.m.Table growing bug with oData V4 8 2021-10-13 2022-10-17
deployfhirproxy.bash fails due to typo 1 2022-01-12 2022-11-29
bug when using jest multiproject runner with nextjs 4 2022-05-22 2022-12-09
Next.js dynamic link with catch-all (ie. [[...slug]]) does not work when using the "as" prop in Link component 0 2022-05-21 2022-05-17
Coredump during Scylla Manager backup 14 2021-08-11 2022-11-21
TUN/TAP interfaces support 1 2020-11-23 2022-11-22
(events): ValidationError when creating an EventBus that has CrossAccount access. 5 2022-09-19 2022-10-31
[Enhancement] The option to reset changed theme colors in App Settings should be available 0 2021-01-19 2022-07-26
Tool pylint failed to run because of django.db.models.DecimalField 4 2019-05-04 2022-12-09
Consider lestrrat-go/jwx as a jose alternative 0 2022-05-18 2022-11-28
Support hiding buffer encoding when at default 1 2021-04-27 2022-08-07
LinkGenerator is not creating one link correctly. 1 2021-09-14 2022-08-14