web-dev-qa-db-fra.com

Erreur Aapt2 dans Android Studio 3.1.1

J'ai mis à jour le studio Android 2.2 à 3.1 et il me donne toujours aapt2 error et la construction a échoué. J'ai ajouté Android.enableAapt2=false dans gradle.properties et mon projet s'est bien construit avec un avertissement:
The option 'Android.enableAapt2' is deprecated and should not be used anymore. Use 'Android.enableAapt2=true' to remove this warning. It will be removed at the end of 2018.

Le plus grave est que je ne peux pas exécuter l'application sur mes appareils mobiles et virtuels. L'erreur Failed to execute aapt

Les détails:
Exécuter la construction

org.gradle..ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:transformDexWithInstantRunDependenciesApkForDebug'.
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.Java:139)
    at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.Java:109)
    at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.Java:78)
    at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.Java:75)
    at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.Java:152)
    at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.Java:100)
    at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.Java:75)
    at org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.Java:62)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.Java:35)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.Java:35)
    at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.Java:32)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.Java:43)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:110)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.Java:40)
    at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.Java:51)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.Java:47)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.Java:30)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.Java:39)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.Java:25)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.Java:80)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.Java:53)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.Java:57)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.Java:32)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.Java:36)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.Java:25)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.Java:43)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.Java:29)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.Java:69)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.Java:30)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.Java:59)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.Java:44)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.Java:45)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.Java:30)
    at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.Java:67)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.Java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.Java:37)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.Java:26)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.Java:34)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.Java:74)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.Java:72)
    at org.gradle.util.Swapper.swap(Swapper.Java:38)
    at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.Java:72)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.Java:55)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.Java:62)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.Java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.Java:82)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.Java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.Java:122)
    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.Java:50)
    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.Java:295)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.Java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.Java:46)
    at Java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.Java:1142)
    at Java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.Java:617)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.Java:55)
    at Java.lang.Thread.run(Thread.Java:745)
Caused by: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':app:transformDexWithInstantRunDependenciesApkForDebug'.
    at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.Java:74)
    at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.Java:47)
    at org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.Java:30)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.Java:137)
    at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.Java:109)
    at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.Java:78)
    at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.Java:75)
    at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.Java:152)
    at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.Java:100)
    at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.Java:75)
    at org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.Java:62)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.Java:35)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.Java:35)
    at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.Java:32)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.Java:43)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.Java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.Java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.Java:110)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.Java:40)
    at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.Java:51)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.Java:47)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.Java:30)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.Java:39)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.Java:25)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.Java:80)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.Java:53)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.Java:57)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.Java:32)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.Java:36)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.Java:25)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.Java:43)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.Java:29)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.Java:69)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.Java:30)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.Java:59)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.Java:44)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.Java:45)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.Java:30)

Compilateur Java
Caused by: Java.util.NoSuchElementException

Lorsque j'active AAPT2, les détails du journal:
Configure project :app useNewCruncher has been deprecated. It will be removed in a future version of the gradle plugin. New cruncher is now always enabled. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\anim\abc_tooltip_exit.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable\abc_btn_colored_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\abc_action_bar_up_container.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_ab_share_pack_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\abc_search_dropdown_item_icons_2line.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_scrubber_control_to_pressed_mtrl_000.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_text_select_handle_middle_mtrl_light.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxxhdpi-v4\abc_text_select_handle_right_mtrl_dark.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_list_selector_disabled_holo_dark.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_textfield_search_default_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color\abc_secondary_text_material_light.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable\abc_btn_default_mtrl_shape.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color\abc_primary_text_disable_only_material_light.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-ldrtl-xxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\abc_screen_simple_overlay_action_mode.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color\abc_primary_text_material_light.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\abc_popup_menu_header_item_layout.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_ic_menu_cut_mtrl_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-ldrtl-xhdpi-v17\abc_spinner_mtrl_am_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-mdpi-v4\abc_text_select_handle_left_mtrl_dark.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxhdpi-v4\abc_ic_star_black_36dp.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable\abc_edit_text_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\select_dialog_multichoice_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\89bc5b5be730920c1779275773f888ad\res\drawable-xhdpi-v4\notification_bg_normal.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_list_focused_holo.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_000.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-mdpi-v4\abc_textfield_search_activated_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_btn_radio_to_on_mtrl_015.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-mdpi-v4\abc_ic_menu_cut_mtrl_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\abc_screen_toolbar.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color-v23\abc_tint_btn_checkable.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\abc_tooltip.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\89bc5b5be730920c1779275773f888ad\res\drawable-hdpi-v4\notification_bg_normal_pressed.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable\abc_list_selector_background_transition_holo_light.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable\abc_switch_thumb_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_list_pressed_holo_dark.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\anim\abc_fade_in.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color-v23\abc_btn_colored_borderless_text_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-ldrtl-xxxhdpi-v17\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\89bc5b5be730920c1779275773f888ad\res\layout\notification_template_custom_big.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-ldrtl-hdpi-v17\abc_ic_menu_cut_mtrl_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_ic_menu_copy_mtrl_am_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_cab_background_top_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-mdpi-v4\abc_ic_commit_search_api_mtrl_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-ldrtl-xxxhdpi-v17\abc_ic_menu_cut_mtrl_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\anim\abc_tooltip_enter.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xhdpi-v4\abc_cab_background_top_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_list_selector_disabled_holo_dark.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\89bc5b5be730920c1779275773f888ad\res\drawable-v21\notification_action_background.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\layout\abc_dialog_title_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable\abc_spinner_textfield_background_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color\abc_primary_text_material_dark.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxhdpi-v4\abc_spinner_mtrl_am_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color\abc_secondary_text_material_dark.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-watch-v20\abc_dialog_material_background.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxhdpi-v4\abc_list_divider_mtrl_alpha.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\anim\abc_popup_exit.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-mdpi-v4\abc_list_selector_disabled_holo_light.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-ldrtl-mdpi-v17\abc_ic_menu_cut_mtrl_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\anim\abc_fade_out.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\89bc5b5be730920c1779275773f888ad\res\layout\notification_action.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxxhdpi-v4\abc_scrubber_control_to_pressed_mtrl_005.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxxhdpi-v4\abc_scrubber_control_to_pressed_mtrl_000.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable\abc_ic_go_search_api_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-mdpi-v4\abc_btn_check_to_on_mtrl_000.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\89bc5b5be730920c1779275773f888ad\res\drawable-xhdpi-v4\notification_bg_low_normal.9.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\color\abc_tint_edittext.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-v21\abc_btn_colored_material.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxhdpi-v4\abc_text_select_handle_middle_mtrl_dark.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\support-compat-27.1.1.aar\89bc5b5be730920c1779275773f888ad\res\layout\notification_action_tombstone.xml: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxxhdpi-v4\abc_ic_menu_paste_mtrl_am_alpha.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-hdpi-v4\abc_text_select_handle_left_mtrl_dark.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-xxxhdpi-v4\abc_ic_star_black_48dp.png: error: file not found. C:\Users\??\.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\031c62276958579ac6449e5bad72b0ac\res\drawable-mdpi-v4\abc_scrubber_control_off_mtrl_alpha.png: error: file not found. Task :app:mergeDebugResources Error: Java.util.concurrent.ExecutionException: com.Android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. Error: Java.util.concurrent.ExecutionException: com.Android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details * 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 BUILD FAILED in 5s 11 actionable tasks: 9 executed, 2 up-to-date

Informations de mon studio Android
Outils du SDK: 26.1.1
Version de la version: 4.4
Version du plugin: 3.1
version de la plateforme: API 27

J'ai vu des réponses dans d'autres questions mais elles ne fonctionnent pas pour moi. J'espère que mes détails sont suffisants pour vous permettre de résoudre mon problème. 

4
Libra Tang

Il semblerait que vous rencontriez peut-être des problèmes avec le fait que AAPT2 ne gère pas correctement les caractères non ascii sous Windows. Ce problème a été résolu dans les alphas 3.2.0 les plus récents. Essayez de remplacer le plugin Android Gradle dans votre fichier build.gradle pour correspondre à:

classpath 'com.Android.tools.build:gradle:3.2.0-alpha11'

Remarque: puisque vous avez mis à jour directement les versions 2.2 à 3.1.1, une fois ce problème résolu, vous pouvez également rencontrer d’autres erreurs provenant de AAPT2 - il est beaucoup plus strict que AAPT (il est préférable d’échouer tôt au moment de la construction plutôt que de rencontrer des problèmes d’exécution). Si vous les rencontrez, consultez le guide de migration . Si le guide n'a pas assez d'informations, créez un nouveau bogue ici ou sur le traqueur issue .

4
Izabela Orlowska

J'ai résolu mon problème en supprimant la balise Android:fullBackUpContent="" du fichier manifeste, Intellisense d'Android studio m'avait fait le placer là et, par confiance, vous pouvez également passer 12 heures cherchez votre problème, mais c'est tout Bonne chance

0
Nderitu Kelvin