마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

안드로이드앱스튜디오 토스트메시지실습 에러입니다

0 추천
Executing tasks: [:app:assembleDebug] in project D:\2yearfinal\project112

> 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 UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :app:processDebugMainManifest UP-TO-DATE
> Task :app:processDebugManifest FAILED
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:mergeDebugJavaResource UP-TO-DATE
> Task :app:checkDebugDuplicateClasses UP-TO-DATE
> Task :app:desugarDebugFileDependencies UP-TO-DATE
> Task :app:compressDebugAssets FAILED
> Task :app:mergeExtDexDebug FAILED
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions UP-TO-DATE

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':app:processDebugManifest' (type 'ProcessMultiApkApplicationManifest').
  - Type 'com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest' property 'mainMergedManifest' specifies file 'D:\2yearfinal\project112\app\build\intermediates\merged_manifest\debug\AndroidManifest.xml' which doesn't exist.
    
    Reason: An input file was expected to be present but it doesn't exist.
    
    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.
    
    Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.

* 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:compressDebugAssets'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CompressAssetsWorkAction
   > D:\2yearfinal\project112\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.
==============================================================================

3: Task failed with an exception.
-----------
* What went wrong:
A problem was found with the configuration of task ':app:mergeExtDexDebug' (type 'DexMergingTask').
  - Type 'com.android.build.gradle.internal.tasks.DexMergingTask' property 'fileDependencyDexDir' specifies directory 'D:\2yearfinal\project112\app\build\intermediates\external_file_lib_dex_archives\debug' which doesn't exist.
    
    Reason: An input file was expected to be present but it doesn't exist.
    
    Possible solutions:
      1. Make sure the directory exists before the task is called.
      2. Make sure that the task which produces the directory is declared as an input.
    
    Please refer to https://docs.gradle.org/7.0.2/userguide/validation_problems.html#input_file_does_not_exist for more details about this problem.

* 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 17s
20 actionable tasks: 3 executed, 17 up-to-date

어떻게 해결해야할까요
하영잉 (140 포인트) 님이 2021년 11월 19일 질문
D:\2yearfinal\project112\app\build\intermediates\merged_manifest\debug\AndroidManifest.xml' which doesn't exist.
    
    Reason: An input file was expected to be present but it doesn't exist.
    
    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

위의 부분을 잘 살펴보세요.  AndroidManifest가 제 위치에 존재하는지 혹시 AndroidManifest.xml에 문법적인 에러라 니런 것은 없는지.
클리고 Build -> Clean project -> Build Project도 해보시구요.
Sysc Gradle도 해보시고.
File > Invalid Caches / Restart도 해보세요.
AndroidManifest가 위의 위치에 없네요 폴더에 아무것도없어요 이럴땐 어떻게해야할까요?

src/main/AndroidManifest.xml여기에 들어있는매니페스트를 그쪽으로 옮겨야할까요

1개의 답변

0 추천

 AndroidManifest가 위의 위치에 없네요 폴더에 아무것도없어요 이럴땐 어떻게해야할까요?

src/main/AndroidManifest.xml여기에 들어있는매니페스트를 그쪽으로 옮겨야할까요

익명사용자 님이 2021년 11월 19일 답변
아니오. 기본 AndroidManifest.xml은 거기 있는게 맞구요. project에 있는 build.gradle과 app 폴더에 있는 build.gradle, AndroidManifest.xml 내용을 올려보시는 게 좋을 것 같아요.
...