Skip to content

run-android fails in custom project structure #956

@BharathMG-ShareChat

Description

@BharathMG-ShareChat

My project structure looks like this,

- appName
   -- reactNative // React native package.json, node_modules,...
   -- app // Android app folder

If I run, "npx react-native run-droid" inside reactNative folder, it fails with,

error Android project not found. Are you sure this is a React Native project?

This is because, cli checks for android/gradlew inside root folder which is not there in my project structure. It is in appName/gradlew. How can I change this gradlew path in cli command?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions