Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution to Cloning problems! #26

Open
AlexDartmoor opened this issue Jun 18, 2020 · 6 comments
Open

Solution to Cloning problems! #26

AlexDartmoor opened this issue Jun 18, 2020 · 6 comments

Comments

@AlexDartmoor
Copy link

It seems a lot of people are having issues cloning the mi_card project, and later projects too.
I have hopefully found a way to resolve this:

Problems getting projects to open up from Version Control? Files seem to be missing? The code looks different to the tutorial when you open the project up after cloning? Try this!

  1. Open the cloned project in Android Studio.
  2. Now find the cloned files in a separate documents window (not in Android Studio).
  3. Within the documentation, find a file in here called 'main.dart' (probably in the folder named lib).
  4. Drag and drop the main.dart file into the space on Android Studio where you write the code. This should bring up the code as it appears in the tutorial.
  5. It may now say that Dart SDK is not configured. If it does, in Android Studio go to File>Settings>Languages & Frameworks>Dart.
  6. Click on the box 'Enable Dart support for the project ….........'
  7. You will need to input the Dart SDK path. This is probably: C:\src\flutter\flutter\bin\cache\dart-sdk
  8. If the above path suggestion doesn't work, open up a different, working Flutter project in Android studio. Find the correct path within this project - File>Settings>Languages & Frameworks>Dart.
  9. Copy and paste the path from this working project into the project you are trying to get to work.
  10. Then click the boxes 'Enable Dart Support for the following modules.
  11. Click 'OK'
  12. It should now work.
  13. Remember to now click 'Get Dependencies' at top of the screen

I really do help this solves your issues Flutterers! Please do reply if the solution worked for you.

Thanks,
Alex

@felipecastrosales
Copy link

my problem no do resolved :/

image

@felipecastrosales
Copy link

I managed, all that was missing was this "... / version" in point 7, because that's where it says which version of dart-sdk I'm using

@AlexDartmoor
Copy link
Author

Hi Felipe, glad you sorted it! Yeah everyone's path could be different, glad you found yours!

Kind regards,
Alex

@ShahanAhmedDev
Copy link

just copy the text Angela Uses in the Video for the Project Retrieval from git, and it will download in the specified folder, Open it and it will Start Working Without any problem!

@de-mawo
Copy link

de-mawo commented Sep 28, 2020

Thanks a Lot

@Raviikumar001
Copy link

Well basically if you are facing problems cloning, the project of the mi_card project, actually if you type in all the code that Angels Ma'am types then basically you will have exactly the same output. What is mean is git cloning the project is not necessary you can get the same result by just typing the whole code in the lesssion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants