Fix plugin registrant reflection path. (#44161) (flutter/engine#13698)

This commit is contained in:
Matt Carroll 2019-11-05 23:36:35 +00:00 committed by GitHub
parent bb82d46bdb
commit 9c4534c7dd

View File

@ -248,7 +248,7 @@ public class FlutterEngine {
*/
private void registerPlugins() {
try {
Class<?> generatedPluginRegistrant = Class.forName("io.plugins.GeneratedPluginRegistrant");
Class<?> generatedPluginRegistrant = Class.forName("io.flutter.plugins.GeneratedPluginRegistrant");
Method registrationMethod = generatedPluginRegistrant.getDeclaredMethod("registerWith", FlutterEngine.class);
registrationMethod.invoke(null, this);
} catch (Exception e) {