Problems starting an Application with React Native

Asked

Viewed 355 times

1

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

react-native init NomeDoProjeto

cd NomeDoProjeto

When executing the command:

react-native run-android

I have the following mistake:

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 is also pointing to the same SDK correctly.

1 answer

0


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

Insert into it

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

Try to rotate again

Browser other questions tagged

You are not signed in. Login or sign up in order to post.