Android SDK 许可证
Android SDK licenses
我在编译 ionic 应用程序时出错。
Checking the license for package Android SDK Build-Tools 26.0.2 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.
Checking the license for package Android SDK Platform 27 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Platform 27 not accepted.
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, Android SDK Build-Tools 26.0.2].
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
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
/media/skif/4TB-DISK/Projects/ionicProjects/tbApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
...
如果我检查许可证 - 一切正常:
skif@ubuntu-desktop:/media/skif/4TB-DISK/Projects/ionicProjects/tbApp$ ~/Android/Sdk/tools/bin/sdkmanager --licenses
Warning: File /home/skif/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates...
为什么我会收到这个错误?接受所有许可证。我该如何解决?
正如https://github.com/ionic-team/ionic-cli/issues/1726所说,运行 sdkmanager
和参数--licenses
将解决这个问题。
请注意,您的离子使用 (/usr/lib/android-sdk
) 和您正在使用 (~/Android/Sdk/tools/bin/sdkmanager
) 的 Android SDK 位置不同。
我在编译 ionic 应用程序时出错。
Checking the license for package Android SDK Build-Tools 26.0.2 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Build-Tools 26.0.2 not accepted.
Checking the license for package Android SDK Platform 27 in /usr/lib/android-sdk/licenses
Warning: License for package Android SDK Platform 27 not accepted.
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, Android SDK Build-Tools 26.0.2].
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
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
/media/skif/4TB-DISK/Projects/ionicProjects/tbApp/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.
...
如果我检查许可证 - 一切正常:
skif@ubuntu-desktop:/media/skif/4TB-DISK/Projects/ionicProjects/tbApp$ ~/Android/Sdk/tools/bin/sdkmanager --licenses
Warning: File /home/skif/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates...
为什么我会收到这个错误?接受所有许可证。我该如何解决?
正如https://github.com/ionic-team/ionic-cli/issues/1726所说,运行 sdkmanager
和参数--licenses
将解决这个问题。
请注意,您的离子使用 (/usr/lib/android-sdk
) 和您正在使用 (~/Android/Sdk/tools/bin/sdkmanager
) 的 Android SDK 位置不同。