且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法在Android SDK中找到gradle包装器。可能需要更新您的Android SDK

更新时间:2021-12-05 23:01:55

编辑:

有一个较新版本的Cordova Android也修复了SDK工具的一些问题26.xx

There has been a newer release of Cordova Android that also fixes some problems with SDK tools 26.x.x

cordova平台更新android@6.2.2

cordova platform rm android
cordova platform add android@6.2.2

旧答案

谷歌破解了Cordova Android 6.1.x及其他一些框架及其最新的sdk工具更新。

Google broke Cordova Android 6.1.x and some other frameworks with their latest sdk tools update.

Cordova Android 6.2.1已发布,现在与最新的Android SDK兼容。

Cordova Android 6.2.1 has been released and it's now compatible with latest Android SDK.

您可以使用更新当前不兼容的Android平台 cordova平台更新android@6.2.1

You can update your current incompatible android platform with cordova platform update android@6.2.1

或者您可以删除现有平台并添加新平台(将删除您在Project / platforms / android /文件夹中所做的任何手动更改

Or you can remove the existing platform and add the new one (will delete any manual change you did inside yourProject/platforms/android/ folder)

cordova平台rm android
cordova平台添加android@6.2.1

您必须指定版本,因为当前CLI默认安装6.1.x.

You have to specify the version because current CLI installs 6.1.x by default.