Dart SDK is not configured in Android Studio - android-studio

I just started learning the Dart programming language, then I did some preparations such as installing the Dart SDK, then setting the path for the bin, after that I checked using the command prompt and it didn't cause any problems. After that I started to code Dart program, and Android Studio gave message "Dart SDK is not configured" , then I clicked "open Dart Setting" and set SDK path, then applied it. But still Android Studio gives message Dart SDK is not configured.
Please help to solve this problem

Under Settings, go to Languages & Frameworks, choose the language you are using and check if the field SDK Path has the correct address. For example, mine is flutter so I have added the correct path as shown in the image. Dart SDK not configured

Related

SDK problem after GitHub import to Android Studio

I am new to programming.
I have never coded and I have never used Android Studio and GitHub.
Sorry if I ask stupid questions.
I downloaded this project in ZIP on GitHub: https://github.com/raghavtilak/Paint
When I open it in Android Studio, I get an error message:
"The SDK path 'C:\Sdk\Sdk' does not belong to a directory.
Android Studio will use this Android SDK instead : 'C:\Users\jane\AppData\Local\Android\Sdk' and will modify the projectct's local."
What should I do to solve this problem?
Thank you in advance.
When you open the project in Android Studio it should ask you to change the SDK path automatically. If it does you can just accept it and it will change the path without you noticing and without any problems.
If it does not ask you, just search your SDK Path (on your computer) and change it in your local.properties in the project panel (or the windows explorer) in android studio.

Flutter UI Guides not showing in Android Studio

In Android Studio V4.1.3 (build no. Al-201.8743.12.41.7199119) The Flutter UI guides for widgets and methods not showing at all even though it is enabled in the settings. Please, be kind to see the screenshot =>
no Flutter UI guides
I have Flutter Plugin V55.1.1 and Dart Plugin V201.9335 installed.
All your help is highly appreciated.
Thank you
You might be creating the new Flutter project and selecting Java for Android. But when you select Kotlin and create project. The issue will be fixed.
And if you want your old projects to be converted to Kotlin, just open the terminal in that project and run this
run flutter create -a kotlin .
The dot(.) at the end is also important it will generate the Kotlin files in current directory.
After this, just re-open the project, you'll get the guides.
I have the same android studio version as you and Flutter Plugin V55.1.1 and Dart Plugin V201.9380 installed. Getting the same issue. I have even tried to enable and disable the "Show UI guidelines for build methods" in Setting > Language & Frameworks > Flutter, but nothings work.
I cloned flutter/sample from GitHub and it seem that the UI guides is showing on that samples project.
My current (kinda easy cheat) solution right now is by creating a New Flutter application project via VS Code. And when I open that flutter project on Android studio, the UI guides is there. I have configure my VS Code with the recommended setting for Dart code.
Tutorial to configure your VS Code reference: https://youtu.be/nAmOt5_fMtU?t=278
I'm pretty new in flutter development but I'm pretty sure there might be something that we can configure on Android Studio seeing that generated project file from VS Code does shows the UI guideline. If someone know how do let me know. Cheers!

Flutter users should run `flutter packages get` instead of `pub get`

I got a flutter project to complete from my friend.
I am using Android Studio(AS) as editor. I have installed flutter and dart plugins in AS. Now, I have imported the flutter project by selecting option at start of AS import AS project. Then it I don't know why it shown me error message to setup Dart SDK(Q1: my first question is why it is giving error I already have dart plugin). Somehow I managed to get Dart from this link and gave path to till dart-sdk folder as seen in screenshot
And now I am stuck on this error:
Because xxo_tag_xxxls depends on flutter_test any from sdk which doesn't exist (the Flutter SDK is not available), version solving failed.
Flutter users should run flutter packages get instead of pub get.
you should configure in addition to the Dart language SDK, pointing to the Flutter SDK ('C:\src\flutter') within your Andoid Studio project. Go to the top menu 'Tools > Flutter > Flutter Clean' and the IDE will ask you to configure what is missing.
in mac if you are using android studio, go to android studio at the top left, preferences, flutter, then add path to sdk
you have to configure in addition to the Dart language SDK, pointing to the Flutter SDK ('C:\src\flutter') within your Andoid Studio project. Go to the top menu 'Tools > Flutter >flutter package get and click on it ,it will find the things those are missing.

Google Glass (Not installed)

I am new to Android Studio and google-Glass.
I am trying to create a knew project that will use google-glass but my problem is when I have to Check/select glass it is Disabled and I do not know how to fix this problem.
See the Image below.
and here is my SDK that shows that i have installed APK 19.
and with the Image below it shows that the glass does appear on Android Studio
can anyone please help me if the is something wrong that i am doing.
will appreciate your Help.
In my case, I needed to make sure I also installed the latest Android SDK Tools, Android SDK Platform-tools, and Android SDK Build-tools. Lastly, also install Android SDK Build-tools rev. 20. All four of these are under "Tools" in the SDK Manager.
Downloading the above allowed me to create a new Glass project.
Also try:
Go to File -> Project Structure -> SDK Location. Make sure it is the correct SDK directory.
I installed the GDK with version 1.3.2 but, even checking the correct path of the SDK and GDK, the initial wizard for starting a new project didn't recognize it (still was saying "Glass (not installed)").
I had then to uninstall the current version of Android Studio and delete the SDK; I installed version 1.1 and downloaded again the SDK and GDK and then it works.

Android Studio says I don't have Android Support Repository, but I do

I updated Android Studio from 0.2 to 0.2.7 and now I can't use it. When I click on "New Project", click few times next, then finish, I get this error:
so I installed it through SDK manager, but I still keep getting that message! How can I fix this?
The SDK you used to download the Android Support Repository is external (F:\Android\sdk).
By default Android Studio uses it's own internal SDK, located in the \sdk sub-folder of the folder where Android Studio is installed.
In order to use your external SDK you have to configure Android Studio to use it.
Go to File -> Other Settings -> Default Project Structure.
Now add your required platform to the Platform Settings -> SDK section, making sure to use your exernal SDK's path (F:\Android\sdk).
Then set the default Project SDK to the added platform under Project Settings -> Project.
Edit:
If you want to use the bundled SDK manager, check out this answer for a solution.

Resources