Android Studio Error Execution failed for task ':app:pressDebugAsets'

Asked 2 years ago, Updated 2 years ago, 207 views

I don't think it's a grammar error because the error keeps appearing every time I turn on the project. I don't know how to solve it even if I search on the Internet

Executing tasks: [:app:assembleDebug] in project E:\Programing\University\1Grade\beet_second_semester\Project\AndroidStudio\Study\02

> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig
> Task :app:javaPreCompileDebug
> Task :app:checkDebugAarMetadata
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:createDebugCompatibleScreenManifests
> Task :app:mergeDebugResources
> Task :app:extractDeepLinksDebug
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:compressDebugAssets FAILED
> Task :app:checkDebugDuplicateClasses
> Task :app:desugarDebugFileDependencies
> Task :app:processDebugManifestForPackage
> Task :app:mergeLibDexDebug
> Task :app:mergeExtDexDebug
> Task :app:mergeDebugJniLibFolders
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :app:mergeDebugJavaResource

> Task :app:processDebugResources FAILED
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"E:\\Programing\\University\\1Grade\\beet_second_semester\\Project\\AndroidStudio\\Study\\02\\app\\src\\main\\res\\layout\\activity_main.xml","position":{"startLine":18}}],"original":"ERROR:E:\\Programing\\University\\1Grade\\beet_second_semester\\Project\\AndroidStudio\\Study\\02\\app\\src\\main\\res\\layout\\activity_main.xml:19: AAPT: error: '10' is incompatible with attribute padding (attr) dimension.\n    ","tool":"AAPT"}
AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"E:\\Programing\\University\\1Grade\\beet_second_semester\\Project\\AndroidStudio\\Study\\02\\app\\src\\main\\res\\layout\\activity_main.xml","position":{"startLine":26}}],"original":"ERROR:E:\\Programing\\University\\1Grade\\beet_second_semester\\Project\\AndroidStudio\\Study\\02\\app\\src\\main\\res\\layout\\activity_main.xml:27: AAPT: error: '10' is incompatible with attribute padding (attr) dimension.\n    ","tool":"AAPT"}

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* * What went wrong:
Execution failed for task ':app:compressDebugAssets'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
   > E:\Programing\University\1Grade\beet_second_semester\Project\AndroidStudio\Study\02\app\build\intermediates\merged_assets\debug\out

* * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* * What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:E:\Programing\University\1Grade\beet_second_semester\Project\AndroidStudio\Study\02\app\src\main\res\layout\activity_main.xml:19: AAPT: error: '10' is incompatible with attribute padding (attr) dimension.

     ERROR:E:\Programing\University\1Grade\beet_second_semester\Project\AndroidStudio\Study\02\app\src\main\res\layout\activity_main.xml:27: AAPT: error: '10' is incompatible with attribute padding (attr) dimension.


* * Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================

* * Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 16s
23 actionable tasks: 23 executed

android java android-studio error

2022-09-20 12:34

1 Answers

https://investory123.tistory.com/433


2022-09-20 12:34

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.