Dart Error: Can't load Kernel binary: Invalid kernel binary: Indicated size.

是否有在安卓机器上运行flutter 项目出现这个呢? 解决办法很简单

public class MainActivity extends FlutterActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
       
        super.onCreate(savedInstanceState);
///让线程睡眠一下就好
        if(BuildConfig.DEBUG){
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}

你可能感兴趣的:(Dart Error: Can't load Kernel binary: Invalid kernel binary: Indicated size.)