Skip to content

Fix src/main/res warnings due to AGP9#57637

Open
cortinico wants to merge 1 commit into
mainfrom
nc/res-agp9
Open

Fix src/main/res warnings due to AGP9#57637
cortinico wants to merge 1 commit into
mainfrom
nc/res-agp9

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

Summary:

Fixes this warning that will break soon due to AGP9:

> Task :packages:react-native:ReactAndroid:generateDebugResources
Nested resources detected.
+ src/main/res
-- src/main/res/devsupport
-- src/main/res/shell
-- src/main/res/views/alert
-- src/main/res/views/modal
-- src/main/res/views/uimanager
-- src/main/res/views/view

Nested resources means you have layout like this:
res.srcDirs = [
    'src/main/res/',
    'src/main/res/category1'
]
However, you should use following structure instead:
res.srcDirs = [packages:rn-tester:android:app:de
    'src/main/res/common',
    'src/main/res/category1',
    'src/main/res/category2'
]
This Warning will be transformed into Error in version VERSION_9_0

Changelog:

[INTERNAL] -

Test Plan:

CI

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant