Error SDK MANAGER REACT-NATIVE

0

I finished an app in React Native. But when I start another, I get the error: start normally, react-native init appx react-native run-android

  

Scanning folders for symlinks in E: \ CryptoCoins \ node_modules (36ms)   Starting JS server ... Building and installing the app on the device   (cd android & gradlew.bat installDebug) ... Observed package id   'platform-tools' in inconsistent location   'C: \ Users \ zz \ AppData \ Local \ Android \ Sdk \ platform-tools' (Expected   'C: \ Users \ zz \ AppData \ Local \ Android \ Sdk \ platform-tools \ platform-tools')   Checking the license for package Android SDK Build-Tools 23.0.1 in   C: \ Users \ zz \ AppData \ Local \ Android \ Sdk \ platform-tools \   License for package Android SDK Build-Tools 23.0.1 not accepted.   Checking the license for package Android SDK Platform 23 in   C: \ Users \ zz \ AppData \ Local \ Android \ Sdk \ platform-tools \   License for package Android SDK Platform 23 not accepted.

     

FAILURE: Build failed with an exception.

     
  • What went wrong: A problem occurred configuring project ': app'.      
        

    You have not accepted the license agreements of the following SDK components: [Android SDK Platform 23, Android SDK Build-Tools 23.0.1].     Before building your project, you need to accept the license     agreements and complete the installation of the missing components     using the Android Studio SDK Manager. Alternatively, to learn how to     transfer the license agreements from one workstation to another, go to      link

      
  •   

Now in the folder of the other app, it works normally:

  

Building and installing the app on the device (cd android &   gradlew.bat installDebug) ... Starting a new Gradle Daemon for this   build (subsequent builds will be faster). Incremental java compilation   is an incubating feature. : app: preBuild UP-TO-DATE: app: preDebugBuild   UP-TO-DATE: app: checkDebugManifest: app: preReleaseBuild UP-TO-DATE   : app: prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE   : app: prepareComAndroidSupportSupportV42301Library UP-TO-DATE ... ...   Installing APK 'app-debug.apk' on 'Nexus_5X_API_24 (AVD) - 7.0' for   app: debug Installed on 1 device.

     

BUILD SUCCESSFUL

    
asked by anonymous 02.02.2018 / 04:38

0 answers