Morton
Morton

Reputation: 5782

How to start ReactNative on Android?

I had installed Node.jspython 2.7.13git for windowsC++ , and i used cmd : npm install -g react-native-clireact-native init MyProject creat a ReactNative project .

I see the information To run your app on Android enter image description here

Finally i use cmd: react-native run-android on my project root.

And i open my android studio like this: enter image description here

My question is what is next step ?

How do i compile the project ?

Is my step correct for now ?

Any help would be grated appreciated , thanks in advance.

I take the advice and try to run app , i use second cmd:react-native run-android It shows SDK locations not found: enter image description here

Should i change my SDK location ?

Upvotes: 1

Views: 411

Answers (1)

Lijith Vipin
Lijith Vipin

Reputation: 1916

1) Open your android folder

2) Create local.properties file

3) Edit file sdk.dir = {sdk location} eg: sdk.dir = /Users/(name)/Library/Android/sdk

4) run application again, react-native run-android

Upvotes: 1

Related Questions