cordova常见错误集合

2017-12-29  本文已影响0人  answer6
错误信息:
[Android SDK Platform 26].
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 
解决办法:
Windows脚本:cmd 
mkdir "%ANDROID_HOME%\licenses"
echo |set /p="8933bad161af4178b1185d1a37fbf41ea5269c55" > "%ANDROID_HOME%\licenses\android-sdk-license"
-- 上面的命令也就是找到自己的android的位置 每个人都不一样 即 ANDROID_HOME找到位置后
找到licenses 修改android-sdk-license里面的key
 Android target: android-25 这里指明了 是 25
8933bad161af4178b1185d1a37fbf41ea5269c55 // 24 的key
d56f5187479451eabf01fb78af6dfcb131a6481e  // 26 的key
上一篇 下一篇

猜你喜欢

热点阅读