在Android上以 Debug模式运行Flutter应用。按“后退”按钮关闭应用程序,然后使用任务开关将其切换回该应用程序。然后进行热装。
flutter_tools将引发异常:
Exception from flutter run: NoSuchMethodError: Class 'NoSuchMethodError' has no instance method '[]'.
Receiver: Instance of 'NoSuchMethodError'
Tried calling: []("code")
最佳答案
经过多次尝试,我由此解决了以上错误。
flutter clean
希望对您有所帮助
关于flutter - 使用Android后退按钮重新启动应用程序后,热重装失败吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60092213/