admin管理员组文章数量:1321063
I accidently imported dart:mirrors
through auto completion.
Now the app is not running with a very not helpful error.
✓ Built build/app/outputs/flutter-apk/app-dev-debug.apk
Installing build/app/outputs/flutter-apk/app-dev-debug.apk...
E/flutter (15723): [ERROR:flutter/shell/common/shell(117)] Dart Error: error: import of dart:mirrors is not supported in the current Dart runtime
E/flutter (15723): [ERROR:flutter/runtime/dart_isolate(147)] Could not prepare isolate.
E/flutter (15723): [ERROR:flutter/runtime/runtime_controller(549)] Could not create root isolate.
E/flutter (15723): [ERROR:flutter/shell/common/shell(690)] Could not launch engine with configuration.
It does NOT tell me which files imports it.
I have thousands of files in my large projects. I could check the Git Logs but this also require check every lines of imports in recent commits.
Is there a way to make Dart tell me where is that import occuring ?
本文标签: flutterHow to know which files import a library in DartStack Overflow
版权声明:本文标题:flutter - How to know which files import a library in Dart? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742091162a2420275.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论