一、在使用Cordova12 创建项目后编译时候报错
A problem occurred configuring root project 'HelloCordova'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:7.4.2.
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'HelloCordova'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:7.4.2.
Required by:
project :
> No matching variant of com.android.tools.build:gradle:7.4.2 was found. The consumer was configured to f
本文介绍了在使用Cordova 12编译项目时遇到的问题,错误信息为`Could not resolve com.android.tools.build:gradle:7.4.2.`。原因是Gradle版本与JDK版本不匹配。解决方案包括安装Java 11并确保Gradle与JDK版本一致。同时,提供了Cordova的adb安装错误和不支持http请求的相关解决方法。
订阅专栏 解锁全文
6245

被折叠的 条评论
为什么被折叠?



