AndrewShen812 / AssetsRefGenerator

MIT License
46 stars 9 forks source link

Current directory does not seem to be a valid Flutter project directory. #5

Open chihung93 opened 3 years ago

chihung93 commented 3 years ago
Screen Shot 2020-09-24 at 16 54 44 Screen Shot 2020-09-24 at 16 56 12 Screen Shot 2020-09-24 at 16 56 21

I can not generate Res.dart on my project anymore

20156284 commented 3 years ago

Check your project if include theses files

checkFiles = new ArrayList<>(); checkFiles.add("lib"); checkFiles.add(".metadata"); checkFiles.add(".packages"); checkFiles.add("pubspec.lock"); checkFiles.add("pubspec.yaml");

https://github.com/ChinaStyle812/AssetsRefGenerator/blob/master/src/com/shenyong/flutter/checker/ProjChecker.java

if you have theses files and the tool will determine that you are the correct flutter project