美文网首页
cordova常见错误集合

cordova常见错误集合

作者: answer6 | 来源:发表于2017-12-29 15:08 被阅读0次
    错误信息:
    [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
    

    相关文章

      网友评论

          本文标题:cordova常见错误集合

          本文链接:https://www.haomeiwen.com/subject/lutugxtx.html