cordova常见错误集合

错误信息:
[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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容