I wanted to follow this tutorial: https://docs.flutter.dev/platform-integration/platform-channels
i create a project with the command: flutter create -a java batterylevel
I am using Vs Code.
flutter version: Flutter 3.22.2
Tools • Dart 3.4.3 • DevTools 2.34.3
java version: openjdk 17
now the problem is when i open mainactivity.java file in vscode, i get this error:
also when the project open in the vs code , so it starts doing gradle build is it normal?
i have these 2 extension currently installed and i also tried with microsoft java extension pack same thing happens:
and if i have no extension installed so in the mainactivity.java file when i have hover over any word i get no text information, nothing.
also in the build.gradle file why do i have this version of java set as shown in the picture? Do i need to change it? are there any other setting also which i have to change before following the tutorial in the link.