出现此错误时,我正在运行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)。
我关注了线程:
但是我无法进入 $ ANDROID_HOME / tools / bin ,因为我的 $ ANDROID_HOME / tools / 文件夹完全为空。
android更新sdk --no-ui --filter build-tools-24.0.0,android-24,extra-android-m2repository
但是我不能,因为我的 $ ANDROID_HOME / tools / 文件夹完全为空。
任何帮助将不胜感激。谢谢!