Closed Diaglyonok closed 5 years ago
Flutter doctor:
Changing code of FLutterWebViewFactory in android/src/main/java/io/github/ponnamkarthik/flutterwebview/FlutterwebviewFactory.java to
`public class FlutterwebviewFactory implements PlatformViewFactory {
private final Registrar mPluginRegistrar;
public FlutterwebviewFactory(Registrar registrar) {
super();
mPluginRegistrar = registrar;
}
@Override
public PlatformView create(Context context, int i) {
return new FlutterWeb(context, mPluginRegistrar, i);
}
}`
solved the problem
fixed 1.0.2
github/ponnamkarthik/flutterwebview/FlutterwebviewFactory.java:15: error: constructor PlatformViewFactory in class PlatformViewFactory cannot be applied to given types; super(); ^ required: MessageCodec
Is there any solution ?
I think the original code was correct, and the patch may have caused some problems
Changing that line back to
super(StandardMessageCodec.INSTANCE);
fixed my compilation issue.
Thanks so much for the package!!
I see the same thing as @Muchene Making the change has fixed the issue.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':flutter_native_web:compileDebugJavaWithJavac'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
BUILD FAILED in 7s Finished with error: Gradle build failed: 1 )
Getting this when install this lib.
Is there any solutions?