0

vs wrong

android studio wrong

it is my first wrong

i installed flutter but i am getting errors like this i got my error about java installed sdk installed sdk i have no idea i am waiting for your help virtual studio code say Exception: Build process failed.

Sarx
  • 1
  • 1
    install flutter plugin to your sdk. https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter#:~:text=This%20VS%20Code%20extension%20adds,menu%20for%20full%20debugging%20functionality. – BIS Tech Apr 09 '22 at 03:29
  • What is your java version that you installed? and run flutter doctor command then write the result here and did you installed flutter plugin? – Mohamed Reda Apr 09 '22 at 04:10
  • 1
    Have you imported material.dart File ? import 'package:flutter/material.dart'; – Milan Surelia Apr 09 '22 at 06:21
  • I downloaded flutter plugin but it doesn't work flutter plugin with dart – Sarx Apr 09 '22 at 22:06
  • @MohamedReda flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 2.10.4, on Microsoft Windows [Version 10.0.19042.1586], locale tr-TR) [√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.3) [√] Android Studio (version 2021.1) [√] VS Code (version 1.66.1) [√] Connected device (3 available) [√] HTTP Host Availability • No issues found! java version openjdk 11.0.12 2021-07-20 i install plugins – Sarx Apr 09 '22 at 22:10

1 Answers1

0

I think I found the problem you have

java version openjdk 11.0.12 2021-07-20

and you mustn't have any Java JDK version after Java 8, to explain why, all you need to know is that Google doesn't support any java version after 8 it's because that Google had a lawsuit with oracle (who support Java) for not fitting the standards with the new versions of Java, that is why google is trying to replase it with Kotlin, so:

  1. uninstall java and
  2. install Java 8 from here

If it still not working, get me the error and will update the answer, but now we solved the Java problem.

Mohamed Reda
  • 1,207
  • 13
  • 21
  • same wrong Exception: Build process failed. – Sarx Apr 10 '22 at 07:30
  • okey, maybe it's another problem, so keep Java 8, can you create a new Flutter project, if it still not working, get the error massage here because all of it is not visible at the images? – Mohamed Reda Apr 10 '22 at 09:15