react-native-community / cli

The React Native Community CLI - command line tools to help you build RN apps
MIT License
2.41k stars 905 forks source link

build failed #2514

Open meAasifAli opened 1 month ago

meAasifAli commented 1 month ago

info Opening app on Android... info A dev server is already running for this project on port 8081. info Installing the app...

Task :gradle-plugin:settings-plugin:checkKotlinGradlePluginConfigurationErrors Task :gradle-plugin:shared:checkKotlinGradlePluginConfigurationErrors Task :gradle-plugin:shared:compileKotlin UP-TO-DATE Task :gradle-plugin:shared:compileJava NO-SOURCE Task :gradle-plugin:shared:processResources NO-SOURCE Task :gradle-plugin:shared:classes UP-TO-DATE Task :gradle-plugin:shared:jar UP-TO-DATE Task :gradle-plugin:settings-plugin:compileKotlin UP-TO-DATE Task :gradle-plugin:settings-plugin:compileJava NO-SOURCE Task :gradle-plugin:settings-plugin:pluginDescriptors UP-TO-DATE Task :gradle-plugin:settings-plugin:processResources UP-TO-DATE Task :gradle-plugin:settings-plugin:classes UP-TO-DATE Task :gradle-plugin:settings-plugin:jar UP-TO-DATE 8 actionable tasks: 2 executed, 6 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

ERROR: autolinkLibrariesFromCommand: process cmd /c npx @react-native-community/cli config exited with error code: 1

FAILURE: Build failed with an exception.

BUILD FAILED in 5s info Run CLI with --verbose flag for more details. ![Uploading Screenshot (1).png…]()

szymonrybczak commented 1 month ago

hey! could you please run? and send over the output 🙏

npx @react-native-community/cli config
meAasifAli commented 1 month ago

output of npx @react-native-community/cli config is :

error Failed to build the app: No package name found. We couldn't parse the namespace from neither your build.gradle[.kts] file at C:\Users\asif1\Desktop\base\node_modules\base\android\build.gradle nor your package in the AndroidManifest at C:\Users\asif1\Desktop\base\node_modules\base\android\app\src\main\AndroidManifest.xml.