flutter error in running app in andriod studio - android-studio

I have installed Android studio with the latest Jdk version and flutter SDK and configured it to my studio by installing flutter and dart plugin but when I run the sample code it doesn't run properly and shows some errors.
I am a newbie to programming so plz tell me solution how to fix that error and I also attached a screenshot of that error here

Related

Plugins or methods not found in Android Studio in an Ionic and Capacitor project

Sorry if my English is bad, my level is not very high.
I am developing a mobile app with Ionic and Capacitor. Some Capacitor plugins like Share or Splash Screen were installed.
These are the versions:
ionic: 6.12.4
capacitor: 4.1.0
In Android Studio I have SDK version 9 and Gradle version 7 installed and I ran into the following issue since I added Capacitor.
When I open Android Studio and try to create an APK, I get errors like 'package not found...' for the plugins mentioned above. I have tried installing jetifier but it keeps giving me the same error.
I put an example screenshot of what appears to me with the Capacitor Share plugin but it also happens to me with the other Splash Screen add-on.
example bug Android Studio
Thanks.

Flutter SDK is incomplete during setting up Path in Android Studio Ubuntu 20.04 Flutter project creation

Hi have downloaded new version of Android Studio 4.1.1.
Installed Flutter and Dart plugin and also downloaded Flutter installation and unzipped into my specific location, but during the option to choose Flutter Path in Android studio, while I am creating Flutter project alwais get error:
the flutter sdk installation is incomplete please see https //flutter.dev/get-started
any same experience?
I think you downloaded the latest version which is not complete and you should download a version before the final version

Flutter plugins already installed but displaying not installed

I am trying to install Flutter in Android Studio. I have installed flutter and dart plugins in Android Studio and I have also downloaded the flutter sdk and set the path.
But when I am running Flutter Doctor in the terminal it displays:
Flutter plugins not installed
Dart plugins not installed
Following is the image of the error:
I also tried uninstalling the flutter and dart plugins and re install them, but still getting the same error.
Can someone help me with this please?
If you are using android studio 4.1, then it's likely bug of the Android Studio or the flutter itself (you can read this github issue) as the plugins path may be changed in android studio 4.1.
For a temporary solution, you can use flutter dev channel that contains a fix for the issue.
flutter channel dev
flutter upgrade
And try to run flutter doctor again.
flutter doctor
If you do nothing, it's okay as long as you have installed the plugin. You can create project and working on it as usual (see this issue).
It's a bug in either android studio or flutter.
You can ignore it because everything still works as usual.

Android Studio and Flutter(VSCode) show the same problem sun.security.ec.ECKeyPairGenerator.isCurveSupported([B)Z

Im currently developing an android app with flutter using VScode. So this problem happened after i update my windows from 1903 to 1909 yesterday. I tried to run and debug my app in vscode it shows:
"sun.security.ec.ECKeyPairGenerator.isCurveSupported([B)Z".
the same thing happen with Android Studio when im trying to test my code. Even the gradle sync in android studio failed with the same message (see the image below):
Error screenshot

Android Studio Error About Gradle And License

I'm using ubuntu and I am coding with flutter in android studio. When my run my first app, android studio give me this error.
I am already tried what error text told me.
Here's the error

Resources