Failed to calculate the value of task ':CordovaLib:compileDebugJavaWithJavac' property 'options.generatedSourceOutputDirectory'.
gradle版本不匹配
打开gradle-wrapper.properties 修改
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
为
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
点击Sync Now 即可