Problems Starting an Application with React Native

1

I'm using the Deepin Linux operating system. I use the following commands:

react-native init NomeDoProjeto

cd NomeDoProjeto

When you run the command:

react-native run-android

I have the following error:

  

FAILURE: Build failed with an exception. What went wrong: A problem   occurred configuring project ': app'. The SDK directory   '/ root / Android / Sdk' does not exist.

But my SDK directory exists in this folder. I use Genymotion and it's also pointing to the same SDK properly.

    
asked by anonymous 11.05.2018 / 21:14

1 answer

0

This happens when the SDK is not being located by the given directory. Try to create / edit this file within your project: android / local.properties

Insert inside it

sdk.dir = diretório para sua sdk sem aspas

Try to run again

    
14.05.2018 / 19:44