Skip to content

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

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

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-clameta-claBot 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
@meta-codesync

Copy link
Copy Markdown

@cortinico has imported this pull request. If you are a Meta employee, you can view this in D113546520.

@meta-codesyncmeta-codesyncBot added the Merged This PR has been merged. label Jul 24, 2026
@meta-codesync

Copy link
Copy Markdown

@cortinico merged this pull request in 834721f.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA SignedThis label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.MergedThis PR has been merged.p: FacebookPartner: FacebookPartner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@cortinico