Android Studio - Flutter plugin not installed; this adds Flutter specific functionality - android

Considering that I had followed all this steps https://flutter.dev/docs/get-started/install/linux in my Ubuntu 18.04LTS, why this following problem continues to appear:
$ flutter doctor -v
[✓] Flutter (Channel stable, v1.7.8+hotfix.2, on Linux, locale en_US.UTF-8)
• Flutter version 1.7.8+hotfix.2 at /opt/flutter
• Framework revision 2e540931f7 (2 weeks ago), 2019-07-02 09:31:07 -0700
• Engine revision b1cb0d9e9b
• Dart version 2.4.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /home/rodrigo/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /home/rodrigo/Android/Sdk
• Java binary at: /usr/share/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
• All Android licenses accepted.
[✓] Android Studio (version 3.4)
• Android Studio at /usr/share/android-studio
• Flutter plugin version 37.1.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
[!] Android Studio
• Android Studio at /opt/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b16-5323222)
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API
29) (emulator)
! Doctor found issues in 1 category.
Different from another similar questions here in StackOverflow, before I've installed flutter plugin the "[✓] Android Studio (version 3.4)" was equal to "[!] Android Studio", with same error messages. After I've installed flutter plugin (and dart), only "[!] Android Studio" still displaying the error.
Does someone know why? I've made many searches in my files, I have only one Android Studio installed. Why displays two? What "[!] Android Studio" refer to? Does command "$ flutter doctor" have a problem?

This post is for those who have gotten the plug-ins installed but still receive the warning.
Note: The Flutter team has created an issue for the inability of doctor to detect installed plug-ins. It's a know issue and they are looking to deprecate this detection feature of doctor:
https://github.com/flutter/flutter/issues/61246
My flutter and dart plug-ins are correctly installed but I still get the warning.
[!] Android Studio (version 4.0)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
In my case ignoring the warning worked fine.
I tried re-installing plug-ins several times but that did not remove the warning from flutter doctor.
However, everything works fine. I can successfully create and run apps created from
the command line with flutter create
from Android Studio with File->New->New Flutter Project
I'm on Ubuntu 20.04 LTS and Android Studio 4.0.1 (installed through JetBrains toolbox)
I installed flutter via the snap store:
sudo snap install flutter --classic
sudo snap install flutter-gallery
flutter channel dev
flutter upgrade
flutter config --enable-linux-desktop
# wanted to try web, apparently requires beta channel
flutter channel beta
flutter channel upgrade
flutter config --enable-web
FYI, it took me a while to understand where the Flutter SDK was located. It is here: /home/(username)/snap/flutter/common/flutter
Plugins installed correctly, but still get warning:

This can be solved in simple steps:
Step 1: Open Android Studio
Step 2: Open Android Studio Preferences
Step 3: Go-to Plugins tab
Step 4: Click on MarketPlace tab
Step 5: Search for flutter in search box
You will see a list of plugins related to flutter. Click on the first one and check which version it is. Currently, the latest version is 37.1.1.
Step 6: Click on install. (It may ask you to install dart plugin also. Hit yes and android studio will install dart and flutter for you)
Ready to rock !

I recently encountered this problem, I first tried to update the flutter and dart plugin from the android studio market place, but that did not work
Finally, I run the following command and it worked like a charm
ln -s ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins ~/Library/Application\ Support/AndroidStudio4.1
Note: I'm on Mac OS running android studio 4.1

Related

Unable to create Dart Project in Android Studio 4.0

I have installed Android studio v4.0.1 on my MAC.
When i try to create a new project in android studio via File->New->NewProject->BasicActivity I couldn't find dart in language option for new project. Basically, I am trying to create a new dart project.
Below is the doctor output: Under Android studio, flutter and dart seems to be ticked and ok.
mboobesh$ flutter doctor -v
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.14.6 18G6020, locale en-IN)
• Flutter version 1.17.5 at /Users/mboobesh/Documents/Dev/flutter
• Framework revision 8af6b2f038 (5 weeks ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
• Android SDK at /Users/mboobesh/Library/Android/sdk
• Platform android-30, build-tools 30.0.1
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✗] Xcode - develop for iOS and macOS
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -runFirstLaunch
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without CocoaPods, plugins will not work on iOS or macOS.
For more info, see https://flutter.dev/platform-plugins
To install:
sudo gem install cocoapods
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 47.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[!] IntelliJ IDEA Community Edition (version 2020.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
:~
Moreover, if i go to android studio preferences, there i could see Dart and its SDK path. Plugins are showing that Flutter and Dart are installed and up to date.
Additionally, I have installed intelliJ separately in my Mac, where i could see Dart in new project selection. Am i missing something to install in Android studio? that is why it is not showing Dart language in new project settings? please help.
just add Flutter to your androidStudio plugin go to :
Start Android Studio.
Open plugin preferences " preference->plugin " (Configure > Plugins as of v3.6.3.0 or later).
Select the Flutter plugin and click Install.
Click Yes when prompted to install the Dart plugin.
Click Restart when prompted.
that's all !
You are trying to create Flutter project as I understand.There is no Dart project. There is Flutter project which uses dart language. You need to install flutter plug-in on android studio. and there will be create new flutter project option.
This is from where you are creating flutter project:
If this option is not there that means you have not installed flutter plugin on android studio.
https://flutter.dev/docs/get-started/editor Check this out if there is not this option.

When I want to create a new flutter project, flutter just returns to the welcome screen

I have already installed Flutter and Dart plugins in Android Studio. I go through all the stages of creating a Flutter project but when I click on Finish I get the dialog "creating a new flutter project" but after a few seconds the welcome screen keeps showing up and I'm back at square one. Can anyone help, please?
Here's the information of "flutter doctor -v" command:
CreateProcessW failed 87
[!] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.18362.418], locale en-US)
• Flutter version 1.12.13+hotfix.8 at C:\src\flutter
• Framework revision 0b8abb4724 (4 weeks ago), 2020-02-11 11:44:36 -0800
• Engine revision e1e6ced81d
• Dart version 2.7.0
X Downloaded executables cannot execute on host.
See https://github.com/flutter/flutter/issues/6207 for more information
[X] Android toolchain - develop for Android devices
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/setup/#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, set ANDROID_HOME to that location.
You may also want to add it to your PATH environment variable.
[√] Android Studio (version 3.6)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 44.0.2
• Dart plugin version 192.7761
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b04)
[!] Connected device
! No devices available
! Doctor found issues in 3 categories.
It seems that you have a problem with Flutter installation. You can try to reinstall it (make sure you get version for your OS).
The second problem is with Android SDK. Installing Android Studio is not enough. Try going through this setup instructions: https://flutter.dev/docs/get-started/install#android-setup.

"flutter run" gets stuck at "Running Gradle task 'assembleDebug"

I updated Flutter to the latest stable version today - 1.12.13+hotfix.7 (I was running 1.12.13+hotfix.6 before). When I tried to run my project in vs code with flutter run it always gets stuck at Running Gradle task 'assembleDebug:
Have anyone experienced the same issue?
Here is the output of flutter doctor -v:
[georgi#georgi-pc Line-up-Generator]$ flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Linux, locale en_GB.UTF-8)
• Flutter version 1.12.13+hotfix.7 at /home/georgi/Development/flutter
• Framework revision 9f5ff2306b (2 weeks ago), 2020-01-26 22:38:26 -0800
• Engine revision a67792536c
• Dart version 2.7.0
[!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at /home/georgi/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.2
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] Android Studio (version 3.5)
• Android Studio at /opt/android-studio
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (1 available)
• MI 8 • 62fb6fd8 • android-arm64 • Android 10 (API 29)
! Doctor found issues in 2 categories.
I have to point out that I have tried running flutter doctor --android-licenses but it gets stuck at 25%
Note: I am on Manjaro 18.1.5
UPDATE:
There seems to be an issue with Dart SDK: https://github.com/flutter/flutter/issues/49185#issuecomment-589968058
flutter clean worked for me
I had the same issue. I tried so many solutions and finally found on Github. Try this command in the terminal.
The issue has been resolved upstream. If you want to consume it you will have to switch to the master channel (for now. It will arrive in the stable channel at some point) by running
flutter channel master
After running that, I was able to build my apk just fine on Linux 5.5
I had the same problem and solved it.
I ran flutter doctor --android-licenses as sudo.
I used the whole path, don't know if that's necessary though.
For example I did it like that:
sudo /home/jan/development/languages+devtools/flutter/bin/flutter doctor --android-licenses
After that everything worked.
I tried every answer I found about it, but none of them worked.
Finally I fixed it by deleting the Android Virtual Device I had and creating a new one. In my case looks like it was a problem with the android emulator rather than a flutter bug.

Error ":app:transformClassesWithDexBuilderForDebug" when upgrade to new version of flutter

I upgrade flutter from v1.91. hotfix 6 by using flutter upgrade --force.
Then i build an example "layers" - flutter run, it shows this message, while if i switch to 1.91, everything built ok
flutter run --stacktrace gives this error
Could not find an option named "stacktrace".
flutter doctor -v
G:\new\new_exam>flutter doctor -v [√] Flutter (Channel stable,
v1.12.13+hotfix.5, on Microsoft Windows [Version 10.0.18362.535],
locale en-US) • Flutter version 1.12.13+hotfix.5 at G:\Flutter\flutter
• Framework revision 27321eb (12 days ago), 2019-12-10 18:15:01 -0800
• Engine revision 2994f7e1e6 • Dart version 2.7.0
[√] Android toolchain - develop for Android devices (Android SDK
version 29.0.2) • Android SDK at G:\Flutter\android • Android NDK
location not configured (optional; useful for native profiling
support) • Platform android-29, build-tools 29.0.2 • ANDROID_HOME =
G:\Flutter\android • ANDROID_SDK_ROOT = G:\Flutter\android\sdk • Java
binary at: G:\flutter\openjdk\bin\java • Java version OpenJDK Runtime
Environment (build 1.8.0_232-b09) • All Android licenses accepted.
[!] Android Studio (not installed) • Android Studio not found;
download from https://developer.android.com/studio/index.html (or
visit https://flutter.dev/setup/#android-setup for detailed
instructions).
[!] IntelliJ IDEA Community Edition (version 2019.3) • IntelliJ at
C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.1 X
Flutter plugin not installed; this adds Flutter specific
functionality. X Dart plugin not installed; this adds Dart specific
functionality. • For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
[!] Connected device ! No devices available
! Doctor found issues in 3 categories.
1: https://i.stack.imgur.com/B4DTX.png
I feel the solution is pretty straight forward. Usually, it's always a best practice to use Android Studio when working with Flutter and Dart. Reasons are there are some dependencies that would require you to use Android Studio to have it work well for you, especially when you're just starting to work with Flutter and Dart.
Flutter Doctor is pretty precise as to the issues you're experiencing.
After downloading Android Studio, do the following;
Navigate to your Preferences or Android Studio Settings on PC, then select, Plugins, ensure the following plugins are installed.
Android APK Support
Android NDK Support
Dart
Flutter
EditorConfig
App Links Assistant
Google Services
Gradle
Properties Support
Java Bytecode Decompiler
Java Stream Debugger
Task Management
YAML
Among others which would be automatically installed by Android Studio for you, this should take that error away and you should be fine.
Then, before you probably run your App, if you see the get dependencies at the Top of your Android Studio, click the get dependencies so that Android studio can get the latest dependencies to run your App without issues.
Ensure you run a cold restart after each time you add a new dependency to your pubspec.yaml file.

How to install flutter and dart in Android Studio and InttelliJ?

I am facing issues with installation. I get the following when I run
flutter doctor
[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.11.6 15G19009, locale en)
• Flutter version 0.4.4 at /Users/divyakrishnan/Development/flutter
• Framework revision f9bb4289e9 (11 days ago), 2018-05-11 21:44:54 -0700
• Engine revision 06afdfe54e
• Dart version 2.0.0-dev.54.0.flutter-46ab040e58
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/divyakrishnan/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio 3.0 Preview.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
• All Android licenses accepted.
[!] iOS toolchain - develop for iOS devices
✗ Xcode installation is incomplete; a full installation is necessary for iOS development.
Download at: https://developer.apple.com/xcode/download/
Or install Xcode via the App Store.
Once installed, run:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
✗ libimobiledevice and ideviceinstaller are not installed. To install, run:
brew install --HEAD libimobiledevice
brew install ideviceinstaller
✗ ios-deploy not installed. To install:
brew install ios-deploy
✗ CocoaPods not installed.
CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.
Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.
For more info, see https://flutter.io/platform-plugins
To install:
brew install cocoapods
pod setup
[✓] Android Studio
• Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[!] IntelliJ IDEA Community Edition (version 2018.1.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[!] Connected devices
! No devices available
I do not see the flutter or dart plugin in Android Studio 3.0 and IntelliJ.
The plugins are not installed by default with Android Studio or IntelliJ. You need to install them yourself using the instructions from this page:
Install the Flutter and Dart plugins
Flutter is supported by two plugins:
The Flutter plugin powers Flutter developer workflows (running, debugging, hot reload, etc.).
The Dart plugin offers code analysis (code validation as you type, code completions, etc.).
To install these:
Start the Android Studio.
Open plugin preferences (Preferences>Plugins on macOS, File>Settings>Plugins on Windows & Linux).
Select Browse repositories…, select the Flutter plugin and click install.
Click Yes when prompted to install the Dart plugin.
Click Restart when prompted.
Just follow these steps:
Go to Plugins.
Browse Repositories.
Search for flutter.
Tap on Install (a dialog will pop regarding dart dependency. click Yes).
Once the installation is finished restart android studio.
Hope it helps.
I had the same problem and these are the steps to solve my problem (Install the Flutter and Dart plugins):
Start Android Studio.
Open plugin preferences (Configure > Plugins as of v3.6.3.0 or later).
Note: Prior to v3.6.3.0, should follow: Open plugin preferences
(Preferences > Plugins on macOS, File >
Settings > Plugins on Windows & Linux)
Select the Flutter plugin and click Install.
Click Yes when prompted to install the Dart plugin.
Click Restart when prompted.
Run flutter doctor. You should get this output:
Installing Flutter and Dart Plugins into Android Studio is very easy--
Follow the steps to install-
Click on Configure --> Plugins
Browse Flutter repository from Search box
Click on install button
Click on Yes to install Dart plugin from Alter prompt
After completing all process Restart Android Studio to activate plugins
For more information Click here to find detail steps with graphical inteface
One of the most import thing always " RUN AS ADMINISTRATOR " you IDE i.e Android .. etc.
for flutter to avoid several errors.
This is the step for flutter install the Android Studio:
1.Go to Settings->Plugin->Install Flutter and Dart->Restart Android Studio
2.Download the flutter sdk
3.In the environment Variable->User Variable->
ANDROID_HOME F:\AndroidSDK(Paste your Android SDK Path)
Path:F:\AndroidSDk;(Paste your Android SDK Path)
c:\ProgramFiles\Java\jdk\1.8.0_20\bin;(Paste your jdk Path)
c:\Users\Desktop\flutter\bin;(Paste your Flutter SDK Path)
4.Git install at c:\ProgramFiles\Git
5.Open Gitbash
$flutter doctor
$flutter doctor --android-licenses
Accept the licences Y Y Y Y
Make sure your Device should be connected your PC
I found this solution myself, so there is no link for proof or details.
I tried installing Dart and Flutter plugin via Android Studio (File - Settings - Plugins - Market Place). Every time after install it showed Restart IDE. After restart every time Android Studio use to show Disable Flutter plugin or install Dart.
After many attempts (installing Dart via above option), what I did I went into
*\.AndroidStudio4.0\system\plugins
copied flutter-intellij.zip and Dart-*.*.zip files into
*\.AndroidStudio4.0\config\plugins
and just unzipped these 2 files ( used extract here option) and launched android studio, the error was gone and Android Studio showed some data collection message.
Now I can see File -> New -> New Flutter Project ...

Categories

Resources