Commit 524b6601 authored by Yacumima's avatar Yacumima

dev

parent 74ef0ca4
...@@ -66,7 +66,22 @@ public class BoostFlutterEngine extends FlutterEngine { ...@@ -66,7 +66,22 @@ public class BoostFlutterEngine extends FlutterEngine {
flutterJNI = (FlutterJNI) field.get(this); flutterJNI = (FlutterJNI) field.get(this);
} catch (Throwable t) { } catch (Throwable t) {
Debuger.exception(t); try {
for(Field field:FlutterEngine.class.getDeclaredFields()) {
field.setAccessible(true);
Object o = field.get(this);
if(o instanceof FlutterJNI) {
flutterJNI = (FlutterJNI)o;
}
}
if(flutterJNI == null) {
throw new RuntimeException("FlutterJNI not found");
}
}catch (Throwable it){
Debuger.exception(it);
}
} }
mFakeRender = new FakeRender(flutterJNI); mFakeRender = new FakeRender(flutterJNI);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment