Can't install engish_words in flutter depedencies - android-studio

i am running this code
dependencies:
flutter:
sdk: flutter
english_words:^3.1.5
and having this
I've tried it on VS Code and Android Studio
Please answer me as fast as i can

It seems that you made a line break between english_words: and ^3.1.5, when you write it in one line it should work.

Related

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.

Flutter in Android Studio: Build Bundle/APK greyed out

I installed Flutter and Android Studio following this link here:
https://flutter.dev/docs/get-started/editor
I've been coding in flutter for two months now and can run my app in simulator or on a connected device no problem.
But when I try to actually build an apk via "Build" --> "Build Bundle(s) / APK", this option is greyed out.
Android Studio: 3.3.2
You can't build apk using Build option in Android Studio if you are running your Flutter project.
There are 2 solutions to build it.
In terminal, write flutter build apk (this will build apk for release version not the debug version)
Open your module in Android Studio and you can use Build option of the Android studio to build the debug apk.
For option 2, you can go to build.gradle file and you should see an option in Android Studio asking you to open the module separately (see the screenshot) Tap on this option and you can then build your apk in both debug and release mode.
I realize this might have already been answered, but I have another solution to this issue. I was having the same problem after modifying my pubspec.yaml file, so after trying to build within terminal nothing would happen. Apparently, you have to open the .yaml file within Android Studio from your project directory in order to for AS to realize that there's been a change to the file. After I opened the file from the project folder, the option for Build > flutter > Build Bundle(s) /APK > Build App Bundle finally reappeared again. Just sharing my experience and hope it can help someone else who may come across this rather strange issue.
Reopen the project from your projects directory, not from recent projects option. This solved for me
Please follow these steps:-
Go To Project Structure>Project>NOSDK
Change NOSDK to the latest
ANDROID API PLATFORM
Then go to MODULE and DO THE SAME

Unable to create flutter project in android studio

Kernel binary: invalid kernel binary format version.
I get this error when i try to create the flutter project in android studio.
Try "flutter clean". But this might not help.
I'm no expert but if this doesn't help you'll probably end up uninstalling and reinstalling Flutter.

Flutter: Android Studio not found at /Applications/Contents

After installing flutter, when I run
I think I have messed up my Mac regarding Android Studio when I run
Flutter doctor reports it says Android Studio not found like below
Android Studio not found at /Applications/Contents
Flutter doctor -v
What should I do?
Please run flutter config --android-studio-dir=/Applications/Android\ Studio.app
As #Akshay says run flutter config --android-studio-dir=/Application/Android\ Studio.app. I got the same problem when i ran the config command this way: flutter config --android-studio-dir=/Application/
I believe that when you install Android Studio with JetBrains toolbox, the pwd is different, mine was at "Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents"
So, to solve it:
flutter config --android-studio-dir=/Users/<$YOUR_USER>/Applications/JetBrains\ Toolbox/Android\ Studio.app/Contents

flutter SDK is not available in android studio

I'm trying to run Flutter on Android studio but I have an issue resolving this error.
I'm using last version of every thing (like as dart and flutter or plugins).
Flutter users should run flutter packages get instead of pub get
I was able to solve this issue by providing the Flutter SDK path at:
Settings > Language & Frameworks > Flutter
check local.properties and edit it with error quick fix. I had same issue by adding one more backslash to path of flutter sdk.

Resources