microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.97k stars 29.19k forks source link

could not run phased build action using connection to gradle #157998

Closed mmuftu closed 2 years ago

mmuftu commented 2 years ago

Type: Bug

Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.4-all.zip'. org.gradle.api.ProjectConfigurationException: A problem occurred configuring root project 'android'. A problem occurred configuring root project 'android'. A problem occurred evaluating root project 'android'. A problem occurred configuring project ':app'. A problem occurred evaluating project ':app'. Failed to apply plugin 'com.android.internal.application'. Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options:

VS Code version: Code 1.70.0 (da76f93349a72022ca4670c1b84860304616aaa2, 2022-08-04T04:38:16.462Z) OS version: Windows_NT x64 10.0.25174 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 x 2808)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.89GB (3.61GB free)| |Process Argv|--crash-reporter-id e0ede38b-5239-47d1-8a69-e61574a5d928| |Screen Reader|no| |VM|67%|
Extensions (31) Extension|Author (truncated)|Version ---|---|--- flutter-snippets|ale|3.0.0 dart-code|Dar|3.46.1 flutter|Dar|3.46.0 flutter-auto-import|dav|0.0.1 xml|Dot|2.5.1 flutter-tree|mar|1.0.0 fluent-icons|mig|0.0.18 Angular-BeastCode|Mik|10.0.3 vscode-language-pack-tr|MS-|1.70.8100917 csharp|ms-|1.25.0 python|ms-|2022.12.0 vscode-pylance|ms-|2022.8.20 jupyter|ms-|2022.7.1102252217 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.9 azure-account|ms-|0.11.1 hexeditor|ms-|1.9.8 notepadplusplus-keybindings|ms-|1.0.7 powershell|ms-|2022.7.2 awesome-flutter-snippets|Nas|3.0.3 mvvm-flutter-widget|pan|0.2.1 dartgettersetter|Pet|1.0.2 material-icon-theme|PKi|4.19.0 java|red|1.9.0 vscodeintellicode|Vis|1.2.22 vscode-java-debug|vsc|0.43.0 vscode-java-dependency|vsc|0.21.0 vscode-java-pack|vsc|0.25.0 vscode-java-test|vsc|0.36.0 vscode-maven|vsc|0.37.0 vscode-icons|vsc|11.15.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30542924 vsaa593:30376534 pythonvs932:30410667 wslgetstarted:30449410 cppdebug:30492333 pylanb8912:30545647 vsclangdc:30486549 c4g48928:30535728 hb751961:30543456 dsvsc012:30540252 azure-dev_surveyone:30545435 ```
vscodenpa commented 2 years ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.70.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

gjsjohnmurray commented 2 years ago

/question

vscodenpa commented 2 years ago

We closed this issue because it is a question about using VS Code rather than an issue or feature request. Please search for help on StackOverflow, where the community has already answered thousands of similar questions. You may find their guide on asking a new question helpful if your question has not already been asked. See also our issue reporting guidelines.

Happy Coding!