简体   繁体   English

我不明白这个错误。 (android build error cordova)

[英]I don't understand the error. (android build error cordova)

Checking Java JDK and Android SDK versions ANDROID_SDK_ROOT=undefined (recommended setting) ANDROID_HOME=C:\\Users\\uslua\\AppData\\Local\\Android\\Sdk (DEPRECATED) Subproject Path: CordovaLib Subproject Path: app 检查Java JDK和Android SDK版本ANDROID_SDK_ROOT = undefined(推荐设置)ANDROID_HOME = C:\\ Users \\ uslua \\ AppData \\ Local \\ Android \\ Sdk(DEPRECATED)子项目路径:CordovaLib子项目路径:app

Configure project :CordovaLibProject evaluation failed including an error in afterEvaluate {}. 配置项目:CordovaLibProject评估失败,包括afterEvaluate {}中的错误。 Run with --stacktrace for details of the afterEvaluate {} error. 使用--stacktrace运行以获取afterEvaluate {}错误的详细信息。

FAILURE: Build failed with an exception. FAILURE:构建因异常而失败。

  • Where: Build file 'C:\\Users\\uslua\\akrida\\myapp\\platforms\\android\\CordovaLib\\build.gradle' line: 41 其中:构建文件'C:\\ Users \\ uslua \\ akrida \\ myapp \\ platforms \\ android \\ CordovaLib \\ build.gradle'行:41

  • What went wrong: A problem occurred evaluating project ':CordovaLib'. 出了什么问题:评估项目':CordovaLib'时出现问题。 Failed to apply plugin [id 'com.github.dcendents.android-maven'] Configuration with name 'testImplementation' not found. 无法应用插件[id'com.github.dcendents.android-maven']未找到名称为“testImplementation”的配置。

  • Try: Run with --stacktrace option to get the stack trace. 尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. 使用--info或--debug选项运行以获取更多日志输出。 Run with --scan to get full insights. 使用--scan运行以获得完整的见解。

  • Get more help at https://help.gradle.org https://help.gradle.org获取更多帮助

BU LD FAILED in 10s BU LD在10s内失败

C:\\Users\\uslua\\akrida\\myapp\\platforms\\android\\gradlew: Command failed with exit code 1 Error output: Project evaluation failed including an error in afterEvaluate {}. C:\\ Users \\ uslua \\ akrida \\ myapp \\ platforms \\ android \\ gradlew:命令失败,退出代码1错误输出:项目评估失败,包括afterEvaluate {}中的错误。 Run with --stacktrace for details of the afterEvaluate {} error. 使用--stacktrace运行以获取afterEvaluate {}错误的详细信息。

FAILURE: Build failed with an exception. FAILURE:构建因异常而失败。

  • Where: Build file 'C:\\Users\\uslua\\akrida\\myapp\\platforms\\android\\CordovaLib\\build.gradle' line: 41 其中:构建文件'C:\\ Users \\ uslua \\ akrida \\ myapp \\ platforms \\ android \\ CordovaLib \\ build.gradle'行:41

  • What went wrong: A problem occurred evaluating project ':CordovaLib'. 出了什么问题:评估项目':CordovaLib'时出现问题。 Failed to apply plugin [id 'com.github.dcendents.android-maven'] Configuration with name 'testImplementation' not found. 无法应用插件[id'com.github.dcendents.android-maven']未找到名称为“testImplementation”的配置。

  • Try: Run with --stacktrace option to get the stack trace. 尝试:使用--stacktrace选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output. 使用--info或--debug选项运行以获取更多日志输出。 Run with --scan to get full insights. 使用--scan运行以获得完整的见解。

  • Get more help at https://help.gradle.org https://help.gradle.org获取更多帮助

BU LD FAILED in 10s BU LD在10s内失败

I try everyhing. 我尝试每一次。 I've uploaded jdk and gradle. 我上传了jdk和gradle。 cordova and sdk updated. cordova和sdk更新。 recently it was working smoothly 最近它运作顺利

Since the error message indicates that Configuration with name testImplementation not found I think you're most likely running the Gradle build with the wrong Gradle version. 由于错误消息指示Configuration with name testImplementation not found我认为您最有可能使用错误的Gradle版本运行Gradle构建。 Please upgrade to the lastest Gradle version and try again. 请升级到最新的Gradle版本,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM