Android gradle buid failed case

本文解决了一个关于Android开发中遇到的AAPT2资源链接失败的问题,具体表现为找不到style属性'@android:attr/windowEnterAnimation'。文章提供了错误详情,并给出了修改建议:移除属性前的“@”符号。

1.AAPT err:http://stackoverflow.com/questions/42580645/errorsome-file-crunching-failed-see-logs-for-details-afer-update-gradle

2.Error:(114, 5) error: style attribute '@android:attr/windowEnterAnimation' not found.

Error:failed linking references.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processWepocTestDebugResources'.
> Failed to execute aapt

https://stackoverflow.com/questions/45767077/style-attribute-androidattr-windowenteranimation-not-found (移除 android 前面的“@”)

转载于:https://www.cnblogs.com/kelisi-king/p/6744219.html

Warning: Flutter support for your project's Android Gradle Plugin version (Android Gradle Plugin version 8.1.0) will soon be dropped. Please upgrade your Android Gradle Plugin version to a version of at least Android Gradle Plugin version 8.3.0 soon. Alternatively, use the flag "--android-skip-build-dependency-validation" to bypass this check. Potential fix: Your project's AGP version is typically defined in the plugins block of the `settings.gradle` file (F:\projects\flutter\hbw_edu_app\android/settings.gradle), by a plugin with the id of com.android.application. If you don't see a plugins block, your project was likely created with an older template version. In this case it is most likely defined in the top-level build.gradle file (F:\projects\flutter\hbw_edu_app\android/build.gradle) by the following line in the dependencies block of the buildscript: "classpath 'com.android.tools.build:gradle:<version>'". 2 FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Failed to transform compressor-3.0.1.aar (id.zelory:compressor:3.0.1) to match attributes {artifactType=android-aar-metadata, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}. > Could not download compressor-3.0.1.aar (id.zelory:compressor:3.0.1) > Could not get resource 'https://repo.maven.apache.org/maven2/id/zelory/compressor/3.0.1/compressor-3.0.1.aar'. > Could not HEAD 'https://repo.maven.apache.org/maven2/id/zelory/compressor/3.0.1/compressor-3.0.1.aar'. > Got socket exception during request. It might be caused by SSL misconfiguration > Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: Connection refused: getsockopt > Failed to transform fijkplayer-full-0.7.16.aar (com.befovy.fijkplayer:fijk
08-24
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值