안드로이드 스튜디오 에러 Execution failed for task ':app:compressDebugAssets'

조회수 1067회

프로젝트를 킬때마다 해당 오류가 계속 뜨는 걸로 보아서 문법오류는 아닌 것 같습니다. 인터넷에 알아보아도 어떻게 해결을 해야할지 모르겠습니다.....

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

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)