Cordova 12编译报错Could not resolve com.android.tools.build:gradle:7.4.2.

一、在使用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 find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' w

你可能感兴趣的:(Apache,Cordova,android,studio,gradle,android)