Description
When building a React Native 0.77.1 project for Android on Windows, the build fails at the autolinking step with the error: "Could not find project.android.packageName in react-native config output!" All configuration files are correct, but the autolinking system does not detect the package name or generate the required autolinking.json file, blocking the build process.
Steps to reproduce
Create a new React Native 0.77.1 project on Windows.
Ensure app.json and package.json both include the correct android.packageName and related fields.
Run npx react-native clean and cd android && .\gradlew clean.
Attempt to build the Android app with npx react-native run-android or .\gradlew assembleDebug.
Observe the build failure at the autolinking step with the error:
"Could not find project.android.packageName in react-native config output!"
React Native Version
0.77.1
Output of npx @react-native-community/cli info
System:
OS: Windows 11 10.0.26100
CPU: (32) x64 13th Gen Intel(R) Core(TM) i9-13980HX
Memory: 16.48 GB / 31.63 GB
Binaries:
Node:
version: 22.14.0
path: C:\nvm4w\nodejs\node.EXE
Yarn: Not Found
npm:
version: 11.5.2
path: C:\nvm4w\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
API Levels:
- "30"
- "33"
- "34"
- "34"
- "35"
- "35"
Build Tools:
- 30.0.3
- 33.0.1
- 34.0.0
- 35.0.0
- 35.0.1
- 36.0.0
- 36.1.0
System Images:
- android-33 | Google APIs Intel x86_64 Atom
- android-36 | Google Play Intel x86_64 Atom
Android NDK: Not Found
Windows SDK:
AllowAllTrustedApps: Disabled
Versions:
- 10.0.19041.0
- 10.0.22621.0
- 10.0.26100.0
IDEs:
Android Studio: AI-251.26094.121.2513.14007798
Visual Studio:
- 17.14.36414.22 (Visual Studio Community 2022)
Languages:
Java: 17.0.12
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
info React Native v0.81.1 is now available (your project is running on v0.77.1).
Screenshots and Videos

Description
When building a React Native 0.77.1 project for Android on Windows, the build fails at the autolinking step with the error: "Could not find project.android.packageName in react-native config output!" All configuration files are correct, but the autolinking system does not detect the package name or generate the required autolinking.json file, blocking the build process.
Steps to reproduce
Create a new React Native 0.77.1 project on Windows.
Ensure app.json and package.json both include the correct android.packageName and related fields.
Run npx react-native clean and cd android && .\gradlew clean.
Attempt to build the Android app with npx react-native run-android or .\gradlew assembleDebug.
Observe the build failure at the autolinking step with the error:
"Could not find project.android.packageName in react-native config output!"
React Native Version
0.77.1
Output of
npx @react-native-community/cli infoScreenshots and Videos