gradle build提示You have not accepted the license agreements of the following SDK components
2017-05-23 00:00
627 查看
从Android Gradle plugin 2.2.0开始,gradle会自动加载需要的SDK, build-tools,但是因为没有接受license,导致加载依赖终止,license存放在$ANDROID_HOME/licenses下
创建license
Linux
<span style="font-size:18px;">mkdir "$ANDROID_HOME/licenses"
echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"</span>
Windows
<span style="font-size:18px;">mkdir "%ANDROID_HOME%\licenses"
echo |set /p="8933bad161af4178b1185d1a37fbf41ea5269c55" > "%ANDROID_HOME%\licenses\android-sdk-license"</span>
创建license
Linux
<span style="font-size:18px;">mkdir "$ANDROID_HOME/licenses"
echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"</span>
Windows
<span style="font-size:18px;">mkdir "%ANDROID_HOME%\licenses"
echo |set /p="8933bad161af4178b1185d1a37fbf41ea5269c55" > "%ANDROID_HOME%\licenses\android-sdk-license"</span>
相关文章推荐
- gradle build提示You have not accepted the license agreements of the following SDK components
- You have not accepted the license agreements of the following SDK components的解决方案
- react native生成APP报错:You have not accepted the license agreements of the following SDK components:
- You have not accepted the license agreements of the following SDK components: XXX
- 编译ionic时出错:You have not accepted the license agreements of the following SDK components
- Jenkins 打包出现You have not accepted the license agreements of the following SDK components: 错误的解决办法
- ionic开发——编译出错:You have not accepted the license agreements of the following SDK component
- You haven't accepted the license agreements of the following SDK components:
- cordova run android时报错——You have not accpeted the license agruments of the following SDK components:
- A problem occurred configuring project ':AndroidLib'. > You have not accepted the license agreements
- Mac 终端提示You have not agreed to the Xcode license agreements
- Mac 终端提示You have not agreed to the Xcode license agreements
- xcode 打包提交appstore 提示 版本号低于线上版本号 及 The application you have selected does not exist
- Cannot execute as the database principal because the principal "guest" does not exist, this type of principal cannot be impersonated, or you do not have permission.
- eclipse中设置.abc--xyz触发提示输入时,提示This compilation unit is not on the build path of java project 异常如何解决?
- The following SDK component was not installed: build-tools-21.1.1
- error: Xcode not set up properly. You ..confirm the license agreement by running /usr/bin/xcodebuild
- 打开eclipse的opens the android sdk and avd manager提示错误:error:location of the android sdk has not been
- java.lang.IllegalStateException: you have not supplyed the global app context info from SDKInitializ