在新的电脑安装DevEco Studio,打开其他电脑编译OK的APP代码,发现有以下报错:
The Gradle plugin version must be Gradle 7.2 or later,while the current version is Gradle 6.3.To use the gradle wrapper,try changing the version number by modifying the distributionUrl parameter in 。。。
这是因为gradle版本不匹配的问题,可以在https://services.gradle.org/distributions/下载较新版本。然后解压到电脑目录下,在DevEco Studio的File->Setting界面配置路径就能正常编译了。