【发布时间】:2018-10-03 15:12:51
【问题描述】:
尝试使用
构建我的 android 项目react-native run-android
但是,我不断收到同样的错误:
Warning: License for package Android SDK Platform 26 not accepted.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> You have not accepted the license agreements of the following SDK
components:
[Android SDK Platform 26, 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.
BUILD FAILED
我尝试过的:
- 我尝试使用
sdkmanager --licenses接受所有许可 - 我更新了我的 SDK
- 我使用
git clean -d -fx清理了我的项目 - 我确保安装了最新的 Android SDK
我该如何解决这个问题?
【问题讨论】:
标签: android react-native android-sdk-manager