成功解决Execution failed for task ‘:app:checkDebugAarMetadata‘

这篇具有很好参考价值的文章主要介绍了成功解决Execution failed for task ‘:app:checkDebugAarMetadata‘。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

yarn android的时候出现这个错误:
Execution failed for task ‘:app:checkDebugAarMetadata’
详细错误信息如下

Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Could not find com.android.support.constraint:constraint-layout:1.1.3.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in ‘Maven POM’ format, you need to adjust the ‘metadataSources { … }’ of the repository declaration.
Required by:
project :app
Could not find com.android.support:appcompat-v7:25.3.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/appcompat-v7/25.3.1/appcompat-v7-25.3.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in ‘Maven POM’ format, you need to adjust the ‘metadataSources { … }’ of the repository declaration.
Required by:
project :app
Could not find com.android.support:support-v4:25.3.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/support-v4/25.3.1/support-v4-25.3.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in ‘Maven POM’ format, you need to adjust the ‘metadataSources { … }’ of the repository declaration.
Required by:
project :app
Could not find com.android.support:design:25.3.1.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/support/design/25.3.1/design-25.3.1.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in ‘Maven POM’ format, you need to adjust the ‘metadataSources { … }’ of the repository declaration.
Required by:
project :app

解决方式
在android/build.gradle目录下:
**1.**将 compileSdkVersion 从 30 更改为 31 并将 targetSdkVersion 从 30 更改为 31
**2.**将ext.kotlin_version = ‘1.3.50’ 改为 ext.kotlin_version = ‘1.6.10’文章来源地址https://www.toymoban.com/news/detail-735147.html

到了这里,关于成功解决Execution failed for task ‘:app:checkDebugAarMetadata‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 已解决org.gradle.api.tasks.TaskExecutionException: Execution failed for task

    已解决org.gradle.api.tasks.TaskExecutionException: Execution failed for task org.gradle.api.tasks.TaskExecutionException: Execution failed for task org.gradle.api.tasks.TaskExecutionException: Execution failed for task的详细解决方法可能会因具体情况而异。 下滑查看解决方法 但通常情况下,这个错误是由于 Gradle 任务的执

    2024年02月08日
    浏览(33)
  • execution failed for task ‘:×××:compiledebugkotlin‘解决办法--Android Studio

    一个月前创建的一个kotlin activity项目,当时使用的kotlin版本是1.5×,后来在当前项目下创建了一个compose模块,建完后手贱更新了kotlin版本(1.6.10)。 运行compose activity的时候就报这个错误: execution failed for task \\\':composetutorial1:compiledebugkotlin\\\' 简言之就是kotlin版本和compose版本不兼

    2023年04月08日
    浏览(30)
  • Execution failed for task ‘:keyboard_utils:compileDebugKotlin‘.

    这个错误是keyboard_utils依赖报错。 这个问题在keyboard_utils github项目的issues 有记载Project does not run with new Flutter 2.10.0 详细错误信息: 解决方式: 1.建议使用 1.3.4 版本。 2.从写该依赖的handleKeyboard()方法:

    2024年02月06日
    浏览(39)
  • 关于Android Studio编译时提示Execution failed for task ‘:xxx:compileDebugJavaWithJavac‘

    在项目首次导入编译时,总是会出现一些比较难排除的问题,特别是在提示中无法直接找到原因: 这里我使用的是Android Studio 2021.3.1 故在Terminal输入 这里的提示是项目的gradle缺少gradle-wrapper.properties文件,我的解决方案是: 从其他项目中拷贝一份gradle-wrapper.properties

    2024年02月11日
    浏览(73)
  • 【已解决】Task :app:compileDebugKotlin FAILED

    给android项目改App ID,修改了模块名后,编译出现了这个问题。 1.尝试了统一kotlin版本,Android Studio Tools - Kotlin - Configure Kotlin Plugin Updates    查看目前Kotlin版本,以及在项目找kotlin-version(不同项目展现方式不同,一般是在build.gradle),将项目的Kotlin版本改为Android Studio上的版

    2024年02月13日
    浏览(32)
  • android studio 我遇到的Task :app:compileDebugJavaWithJavac FAILED问题及解决过程

    前几天一个网友在学习我的一个小项目的时候,发现无法达到目的,在帮他解决问题的过程中发现他用的是最近的giraffe版本的as,我用的是老版本,没办法打开他的项目,没办法只能卸载我的as,安装了最近版的diraffe版。也成功帮网友解决了问题。本来想着退回之前的版本,

    2024年02月04日
    浏览(42)
  • 修改Flutter3.19.2SDK的镜像源为国内镜像源 解决一直卡在Running Gradle task ‘assembleDebug‘与Executfailed for task ‘app:x‘

    该文档仅为个人解决记录 参考自:https://blog.csdn.net/qq_39105508/article/details/133992154 在 flutter3.19.2packagesflutter_toolslibsrc 下的 http_host_validator.dart 文件中,找到 const String kMaven = \\\'https://maven.google.com/\\\'; ,将 Flutter SDK 使用的 maven 镜像修改为国内镜像 参考自:https://blog.csdn.net/libra_

    2024年04月17日
    浏览(46)
  • docker failed to create task for container: failed to create shim task: OCI runtime create failed:

    根据CentOS安装docker指南,启动hello-world时报错,提示信息中提到了 OCI runtime ,根本原因是 runc did not terminate successfully 参考【错误解决】docker找不到runc:failed to create shim: OCI runtime create failed: unable to retrieve OCI runtime,这个问题跟 runc 有关,查看docker版本的确没有runc信息 查看

    2024年02月14日
    浏览(45)
  • React Native报错Task :app:compileDebugKotlin FAILED

    \\\"react-native\\\": \\\"0.73.1\\\", \\\"react-native-safe-area-context\\\": \\\"^4.8.2\\\", distributionUrl=https://services.gradle.org/distributions/gradle-8.3-all.zip 安装react-native-safe-area-context后一直编辑不通过,查了好久,终于找到原因: Task :app:compileDebugKotlin FAILED Deprecated Gradle features were used in this build, making it incompatible w

    2024年01月23日
    浏览(33)
  • docker: Error response from daemon: failed to create task for container: failed to create shim task:

    我的系统是ubuntu22.04,装的docker版本是24.0.5,但是在下载镜像之后去加载时报了这个错误 docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: invalid rootfs: not an absolute path, or a symlink: unknown. ERRO[0000] error waiting for conta

    2024年02月09日
    浏览(35)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包