您尚未接受以下SDK组件的许可协议:[Android SDK Platform 27]

时间:2018-10-17 17:51:39

标签: android-studio ionic-framework gradle android-gradle android-sdk-tools

问题

出现此错误时,我正在运行ionic cordova run android --device来部署离子项目:

BUILD FAILED in 21s
/home/brian/git/menuu-resto/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':CordovaLib'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 27].
  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 http://d.android.com/r/studio-ui/export-licenses.html

我的支票

我的操作系统是Manjaro 17.1 Xfce版本。 我正在使用离子4,cordova 8.1.2(cordova-lib@8.1.1)。

在我的Android Studio-> SDK Manager->应用和行为->系统设置-> Android SDK中,我已经安装了具有Platform 27的Android 8.1(Oreo)。 SDK Manager

我关注了线程:

  1. You have not accepted the license agreements of the following SDK components

但是我无法进入 $ ANDROID_HOME / tools / bin ,因为我的 $ ANDROID_HOME / tools / 文件夹完全为空。

  1. Automatically accept all SDK licences,上面写着
  

android更新sdk --no-ui --filter   build-tools-24.0.0,android-24,extra-android-m2repository

但是我不能,因为我的 $ ANDROID_HOME / tools / 文件夹完全为空。

任何帮助将不胜感激。谢谢!

0 个答案:

没有答案