1

I create a react native app in C9. Now, I want to develop this app on my local machine with android settings. I downloaded the project.

cd myProjectFolder
react-native start
npm install
react-native run-android

Also, I add a project name in package.json.

The error is below:

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

1

2 Answers 2

0

If android project/folder does not exit in your root project then run :

react-native eject
Sign up to request clarification or add additional context in comments.

2 Comments

The eject command has been removed from react-native.
yes in latest version of react native cli, eject command has been removed.
0

I encountered this issue after I ruan ./gradlew clean. Tried serval methods but vain. Then I ran ./gradlew in the Android directory. It worked for me.

// Android
./gradlew

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.