GVKun编程网logo

离子cordova构建android错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系

2

对于想了解离子cordova构建android错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系的读者,本文将是一篇不可错过的文章,并且为您提供关于*出了什么

对于想了解离子cordova构建android错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系的读者,本文将是一篇不可错过的文章,并且为您提供关于* 出了什么问题:无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 > 无法找到构建工具修订版 29.0.2、Android Error:Execution failed for task '':app:compileDebugJavaWithJavac'' 解决方案 总结、Android Studio 3.0:无法解析:app@dexOptions/compileClasspath'的依赖关系:无法解析项目:animators、Android Studio Gradle 构建错误:无法确定任务 ':app:compileFreeDebugJavaWithJavac' 的依赖项的有价值信息。

本文目录一览:

离子cordova构建android错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系

离子cordova构建android错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系

如何解决离子cordova构建android错误:无法确定任务'':app:compileDebugJavaWithJavac''的依赖关系

我是初学者。我可以打一点英文。 我尝试构建离子应用程序。但错误

error detail img

  1. Checking Java JDK and Android SDK versions

ANDROID_SDK_ROOT=C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk(推荐设置) ANDROID_HOME=C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools(已弃用) 使用 Android SDK:C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk 子项目路径:Cordovalib 子项目路径:app 在不一致的位置 ''C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools'' 中观察到包 ID ''platform-tools''(预期为 ''C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform -工具\\平台工具'') 在 C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools\\licenses 中检查软件包 SDK Patch Applier v4 的许可证 警告:不接受软件包 SDK Patch Applier v4 的许可证。 在 C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools\\licenses 中检查包 Android Emulator 的许可证 警告:不接受包 Android Emulator 的许可证。 检查 C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools\\licenses 中 Android SDK Tools 包的许可证 警告:不接受包 Android SDK 工具的许可。 在 C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools\\licenses 中检查包 Android SDK Build-Tools 29.0.3 的许可证 警告:不接受包 Android SDK Build-Tools 29.0.3 的许可。 在 C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools\\licenses 中检查包 Android SDK Platform 29 的许可证 警告:不接受包 Android SDK Platform 29 的许可。

FAILURE:构建失败,出现异常。

  • 出了什么问题: 无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。

无法安装以下 Android SDK 软件包,因为某些许可证未被接受。 patcher;v4 SDK Patch Applier v4 构建工具;29.0.3 Android SDK 构建工具 29.0.3 模拟器安卓模拟器 平台;android-29 Android SDK 平台 29 工具 Android SDK 工具 要构建此项目,请接受 SDK 许可协议并使用 Android Studio SDK 管理器安装缺少的组件。 或者,要将许可协议从一个工作站转移到另一个工作站,请参阅 http://d.android.com/r/studio-ui/export-licenses.html

使用 Android SDK:C:\\Users\\el_fe\\AppData\\Local\\Android\\Sdk\\platform-tools

  • 试试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。

  • 在 https://help.gradle.org

    获得更多帮助

构建在 3 秒内失败 命令失败,退出代码 1:C:\\myapp_63\\BBPHApp63\\platforms\\android\\gradlew cdvBuildDebug -b C:\\myapp_63\\BBPHApp63\\platforms\\android\\build.gradle [ERROR] 运行子进程cordova时出错。

  1. cordova.cmd build android exited with exit code 1.
  2. Re-running this command with the --verbose flag may provide more information.

* 出了什么问题:无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 > 无法找到构建工具修订版 29.0.2

* 出了什么问题:无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 > 无法找到构建工具修订版 29.0.2

如何解决* 出了什么问题:无法确定任务 '':app:compileDebugJavaWithJavac'' 的依赖关系 > 无法找到构建工具修订版 29.0.2

FAILURE:构建失败,出现异常。

出了什么问题: Could not determine the dependencies of task '':app:compileDebugJavaWithJavac''. Failed to find Build Tools revision 29.0.2

  • 试试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。

  • 在 https://help.gradle.org

    获得更多帮助

构建在 31 秒内失败 Exception: Gradle task assembleDebug Failed with exit code 1

解决方法

我只是通过从 C:/User/Gustavo/ 中删除 .gradle 来修复它,我的情况是在我升级 flutter 版本时发生了这个问题

Android Error:Execution failed for task '':app:compileDebugJavaWithJavac'' 解决方案 总结

Android Error:Execution failed for task '':app:compileDebugJavaWithJavac'' 解决方案 总结

1、升级更新buildToolsVersion 到最新版本
2、升级Android Studio 2.2.2版本,JDK 1.8版本
3、配置JAVA_HOME路径

然并卵没有解决我个人的问题

 

gradlew compileDebug --stacktrace 可以用于查看堆栈的错误信息,然后再去网上继续找寻错误信息。

把命令gradlew compileDebug --stacktrace 改成 gradlew compileDebugJavaWithJavac

居然把具体的错误信息打印出来了

然后更改,解决问题

像我遇到的问题是,刷新的时候都没有问题,运行的时候就出现我们标题的问题,然而解决了几次这样错误以后,发现一般来说只有manefest的权限重复这种类型错误,不打印错误信息出来,是看不到真正的错误的。gradle和studio升级版本越来越高以后,对权限要求都不能重复了,感觉算不算坑,有点追求完美?以前版本是可以兼容,内部应该帮你合并了的。

 

环境:studio3.0.1  gradle 4.1版本

Android Studio 3.0:无法解析:app@dexOptions/compileClasspath'的依赖关系:无法解析项目:animators

Android Studio 3.0:无法解析:app@dexOptions/compileClasspath'的依赖关系:无法解析项目:animators

我迁移到 Android Studio 3.0。因此,项目无法编译名为“:animator”的模块,并显示此错误:

 Error:Unable to resolve dependency for '':app@dexOptions/compileClasspath'': Could not resolve project :animators. <a href="openFile:/home/mobilepowered/MobilePowered/MyInnovalee/trunk17-10-2017/app/build.gradle">Open File</a><br><a href="Unable to resolve dependency for &#39;:app@dexOptions/compileClasspath&#39;: Could not resolve project :animators.">Show Details</a>

并显示详细信息给出了这个日志:

 Unable to resolve dependency for '':app@dexOptions/compileClasspath'': Could not resolve project :animators. Could not resolve project :animators. Required by:     project :app Unable to find a matching configuration of project :animators:      - Configuration ''debugApiElements'':          - Required com.android.build.api.attributes.BuildTypeAttr ''dexOptions'' and found incompatible value ''debug''.          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr ''Aar'' and found compatible value ''Aar''.          - Found com.android.build.gradle.internal.dependency.VariantAttr ''debug'' but wasn''t required.          - Required org.gradle.api.attributes.Usage ''java-api'' and found compatible value ''java-api''.      - Configuration ''debugRuntimeElements'':          - Required com.android.build.api.attributes.BuildTypeAttr ''dexOptions'' and found incompatible value ''debug''.          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr ''Aar'' and found compatible value ''Aar''.          - Found com.android.build.gradle.internal.dependency.VariantAttr ''debug'' but wasn''t required.          - Required org.gradle.api.attributes.Usage ''java-api'' and found incompatible value ''java-runtime''.      - Configuration ''releaseApiElements'':          - Required com.android.build.api.attributes.BuildTypeAttr ''dexOptions'' and found incompatible value ''release''.          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr ''Aar'' and found compatible value ''Aar''.          - Found com.android.build.gradle.internal.dependency.VariantAttr ''release'' but wasn''t required.          - Required org.gradle.api.attributes.Usage ''java-api'' and found compatible value ''java-api''.      - Configuration ''releaseRuntimeElements'':          - Required com.android.build.api.attributes.BuildTypeAttr ''dexOptions'' and found incompatible value ''release''.          - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr ''Aar'' and found compatible value ''Aar''.          - Found com.android.build.gradle.internal.dependency.VariantAttr ''release'' but wasn''t required.          - Required org.gradle.api.attributes.Usage ''java-api'' and found incompatible value ''java-runtime''.

答案1

小编典典

使用 Android Studio 2.3(AS) 项目工作正常,我可以运行应用程序。将 AS 更新到 Android Studio 3.0
后。对于库和构建类型,我也遇到了如下错误。

Unable to resolve dependency for '':app@dexOptions/compileClasspath'': Could not resolve project : library_Name.Unable to resolve dependency for '':app@release/compileClasspath'': Could not resolve project : library_Name.

解决问题,简单。

曾经是什么

buildTypes{          debug{ ... }          release{ ... }    }

你在你的 (应用程序)build.gradle 文件中,你必须包括所有buildTypes{ }同名的

buildTypes{      debug{ ... }      release{ ... }}

放入 项目中包含的所有库/模块*build.gradle的文件中。 *

清理并重建项目,问题将得到解决。

问题仍未解决,请将 gradle-wrapper.properties 更新为

distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

Android Studio Gradle 构建错误:无法确定任务 ':app:compileFreeDebugJavaWithJavac' 的依赖项

Android Studio Gradle 构建错误:无法确定任务 ':app:compileFreeDebugJavaWithJavac' 的依赖项

如何解决Android Studio Gradle 构建错误:无法确定任务 '':app:compileFreeDebugJavaWithJavac'' 的依赖项

然后在我的设备上构建或启动时,我收到以下错误:

Could not determine the dependencies of task '':app:compileFreeDebugJavaWithJavac''.
> Could not resolve all task dependencies for configuration '':app:freeDebugCompileClasspath''.
   > Could not resolve project :capacitor-android.
     required by:
         project :app
      > No matching configuration of project :capacitor-android was found. The consumer was configured to find an API of a component,as well as attribute ''com.android.build.api.attributes.BuildTypeAttr'' with value ''debug'',attribute ''minApi'' with value ''____free'',attribute ''tier'' with value ''free'',attribute ''abi'' with value ''x86'' but:
          - None of the consumable configurations have attributes.

它正在使用 grable 构建我的项目。

我也尝试过 Build Clean、Build Rebuild 和 File > Invlaidate Caches 和 Resatrt。

请帮忙。

我们今天的关于离子cordova构建android错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系的分享已经告一段落,感谢您的关注,如果您想了解更多关于* 出了什么问题:无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 > 无法找到构建工具修订版 29.0.2、Android Error:Execution failed for task '':app:compileDebugJavaWithJavac'' 解决方案 总结、Android Studio 3.0:无法解析:app@dexOptions/compileClasspath'的依赖关系:无法解析项目:animators、Android Studio Gradle 构建错误:无法确定任务 ':app:compileFreeDebugJavaWithJavac' 的依赖项的相关信息,请在本站查询。

本文标签: