Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Não consegui rodar o projeto

Subi o emulador e deixei ele rodando entao dei o comando react-native start na pasta do projeto e o no outro terminal dei react-native run-android mas recebi este erro

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'InstaluraMobile'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:2.2.3.
     Required by:
         :InstaluraMobile:unspecified
      > Could not resolve com.android.tools.build:gradle:2.2.3.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom'.
               > jcenter.bintray.com

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
2 respostas

Consegui resolver este erro atualizando meu android studio, que estava numa versão mais antiga, mas agora recebo que o sdk não foi encontrado, mas eu defini a variável do windows com o sdk e também ate tentei criar esse local.properties na pasta android do projeto , deixei assim sdk.dir = C:/Users/Nataniel/AppData/Local/Android/sdk

mas n foi, o meu python é o 3.6, será que é isso?

erro

* What went wrong:
A problem occurred configuring project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
solução!

Depois de reiniciar meu computador consegui fazer o build da aplicação no emulador. tinha que ser no windows mesmo 'alo Bill Gates resolve isso ai '

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software