我多次清理项目,在两个不同的设备上测试,完全卸载我的Flutter调试应用程序并开始新的 – 没有任何帮助.关于beta(当前beta 2)频道的颤动更新什么都不做.还尝试切换到开发和主通道 – 没有帮助.
有没有人遇到类似的情况,怎么处理呢?
编辑,添加Flutter doctor的mail.dart和输出(当前在master分支上,但在切换到beta或dev分支后有相同的问题):
从main.dart导入,或更好的main.dart:
import 'package:Flutter/material.dart';import 'package:Flutter_localizations/Flutter_localizations.dart';import 'app_strings.dart';import 'net_libs_page/net_libs_page.dart';voID main() => runApp(new MyApp());class MyApp extends StatelessWidget { // This Widget is the root of your application. @overrIDe Widget build(BuildContext context) { return MaterialApp( localizationsDelegates: [ // ... app-specific localization delegate[s] here AppLocalizationsDelegate(),GlobalMaterialLocalizations.delegate,GlobalWidgetsLocalizations.delegate,//FallbackMaterialLocalisationsDelegate(),],supportedLocales: [ Locale('en','US'),// English Locale('es','ES'),// Spanish Locale('pl','PL'),// ... other locales the app supports ],Title: '@Voice Network library',//_strings.Title,theme: themeData( // This is the theme of your application. // // Try running your application with "Flutter run". You'll see the // application has a blue toolbar. Then,without quitting the app,try // changing the primarySwatch below to colors.green and then invoke // "hot reload" (press "r" in the console where you ran "Flutter run",// or press Run > Flutter Hot Reload in IntelliJ). Notice that the // counter dIDn't reset back to zero; the application is not restarted. primarySwatch: colors.indigo,),home: NetlibsPage(),); }}
颤动的医生输出:
Doctor summary (to see all details,run Flutter doctor -v):[√] Flutter (Channel master,v0.4.5-pre.52,on Microsoft windows [Version 10.0.16299.431],locale en-US)[√] AndroID toolchain - develop for AndroID devices (AndroID SDK 27.0.3)[√] AndroID Studio (version 3.1)[!] IntelliJ IDEA ultimate Edition (version 2018.1) X Flutter plugin not installed; this adds Flutter specific functionality. X Dart plugin not installed; this adds Dart specific functionality.[!] VS Code,32-bit edition (version 1.19.3)[√] Connected devices (1 available)! Doctor found issues in 2 categorIEs.解决方法 不要在lib / main.dart中使用相对导入
import 'app_strings.dart';import 'net_libs_page/net_libs_page.dart';
改为使用
import 'package:my_app/app_strings.dart';import 'package:my_app/net_libs_page/net_libs_page.dart';
其中my_app是名称:fIEld中pubspec.yaml中的内容.
追踪https://github.com/dart-lang/sdk/issues/33076的问题
总结以上是内存溢出为你收集整理的android – Flutter dart调试器断点停止工作全部内容,希望文章能够帮你解决android – Flutter dart调试器断点停止工作所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)