0

I want to develop Dart Applications using Eclipse IDE. So the process is that you have to install the Dart Plugin for eclipse and I have done that.

Then I have to configure the Dart SDK through point Eclipse to the Dart SDK Location and I have done that, by going to Window, Preferences, Dart - Then browse to Dart SDK Location as: C:\dart-sdk, but Eclipse is saying: Not a valid Dart SDK location.

So because of that the Apply button remains grayed and I cant apply. So please help.

Obert
  • 1
  • 1
  • Please add screenshots of what you are doing. You need to install the Dart SDK using the Preferences page. – harrymc Mar 29 '21 at 09:23
  • Possibly related to https://stackoverflow.com/questions/48650831/dart-sdk-is-not-configured looks like you need a relative path under `../bin/cache/dart-sdk` rather than a random folder, probably due to libraries it depends on. – spikey_richie Mar 29 '21 at 10:03
  • @harrymc and Spikey_richie, please see note that i am doing that under Eclipse Preferences and the directory i have pointed it to is : C:\dart-sdk and it failed and it failed and then tried: C:\flutter\bin\cache\dart-sdk but it still says: Not a valid SDK location – Obert Mar 29 '21 at 10:19
  • Maybe the message is correct and the SDK is wrong or wrongly installed? – harrymc Mar 29 '21 at 10:22
  • @harrymc - i just left the eclipse as it is with the message the message that: Its not a valid SDK and proceeded to try and create a new dart project that i named helloworld and surprising its working and am getting results after doing RUN FILE. Below is the code: main(){ int a=3, b=5; int sum=a+b; print("$a"'+'"$b= $sum"); String name="Obert"; print("Name is: $name"); } – Obert Mar 29 '21 at 11:52
  • This corresponds better with my (general) knowledge, so I added an answer. – harrymc Mar 29 '21 at 13:01

1 Answers1

0

Installing the Dart Plugin for Eclipse is supposed to install everything that is required for Dart projects.

There is no need to install separately the SDK.

harrymc
  • 455,459
  • 31
  • 526
  • 924
  • Hi, i dont think so, because for IntelliJ IDEA, you have to install the Dart Plugin and then configure IntelliJ IDEA to point to a location where the Dart SDK is located. This is the correct process. And its the same for Eclipse. – Obert Mar 29 '21 at 13:22
  • Do you have another explanation as to why Dart works? – harrymc Mar 29 '21 at 13:27