Невозможно запускать реагирующие нативные приложения в эмуляторе Android - PullRequest
0 голосов
/ 08 апреля 2020

Я пытаюсь запустить приложения с естественной реакцией в Android Эмулятор в Ubuntu Linux. Когда я запускаю командуact-native run- android, я получаю следующие ошибки:

ankurgupta@Ubuntu-PC:~/AndroidDev/Project2$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 960 file(s) to forward-jetify. Using 4 workers...
info Starting JS server...
info Installing the app...
Observed package id 'tools' in inconsistent location '/home/ankurgupta/Software/android-sdk/tools' (Expected '/home/ankurgupta/Software/android-sdk/tools/tools')
Checking the license for package Android SDK Build-Tools 28.0.3 in /home/ankurgupta/Software/android-sdk/tools/licenses
Warning: License for package Android SDK Build-Tools 28.0.3 not accepted.
Checking the license for package Android SDK Platform 28 in /home/ankurgupta/Software/android-sdk/tools/licenses
Warning: License for package Android SDK Platform 28 not accepted.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.0.1/userguide/command_line_interface.html#sec:command_line_warnings

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:installDebug'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;28.0.3 Android SDK Build-Tools 28.0.3
     platforms;android-28 Android SDK Platform 28
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

  Using Android SDK: /home/ankurgupta/Software/android-sdk/tools

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

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

error Failed to install the app. Please accept all necessary Android SDK licenses using Android SDK Manager: "$ANDROID_HOME/tools/bin/sdkmanager --licenses". Run CLI with --verbose flag for more details.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:installDebug'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     build-tools;28.0.3 Android SDK Build-Tools 28.0.3
     platforms;android-28 Android SDK Platform 28
  To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
  Alternatively, to transfer the license agreements from one workstation to another, see http://d.android.com/r/studio-ui/export-licenses.html

  Using Android SDK: /home/ankurgupta/Software/android-sdk/tools

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

* Get more help at https://help.gradle.org

BUILD FAILED in 5s

    at makeError (/home/ankurgupta/AndroidDev/Project2/node_modules/execa/index.js:174:9)
    at Promise.all.then.arr (/home/ankurgupta/AndroidDev/Project2/node_modules/execa/index.js:278:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Я принял лицензии, запустив ~ / Software / android -sdk / tools / bin / sdkmanager --licenses Но все же я получаю вышеуказанную ошибку.

...