@Apstrew

Почему Gradle не видит, что я принял лицензии в Android SDK manager?

Приложение React Native нормально работает на физическом устройстве через expo. Пытаюсь сделать debug-версию apk.

Первый этап сработал:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res


Далее, перехожу в подпапку (cd android)

И - затык - VS code команда ./gradlew assembleDebug не работает. Выдаёт см. ниже:
FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     patcher;v4 SDK Patch Applier v4
     platforms;android-30 Android SDK Platform 30
     emulator Android Emulator
     tools Android SDK Tools
     build-tools;29.0.2 Android SDK Build-Tools 29.0.2
     platform-tools Android SDK Platform-Tools
  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: C:\Program Files\Android\Android Studio


При том что я сходил в C:\Users\1\AppData\Local\Android\Sdk\cmdline-tools\latest\bin
и командой sdkmanager.bat --licenses принял все лицензии, см. ниже.
61aa5297e16e2206002822.jpeg

ANDROID_HOME у меня указан C:\Users\1\AppData\Local\android\Sdk

Как мне таки собрать apk?

Спасибо!
  • Вопрос задан
  • 107 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы