alibaba / flutter_boost

FlutterBoost is a Flutter plugin which enables hybrid integration of Flutter for your existing native apps with minimum efforts
https://github.com/alibaba/flutter_boost
MIT License
6.97k stars 1.23k forks source link

flutter_boost 1.17.1报错 #966

Closed Elex92 closed 3 years ago

Elex92 commented 3 years ago

/Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XFlutterTextureView.java:14: 错误: XFlutterTextureView不是抽象的, 并且未覆盖RenderSurface中的抽象方法pause() public class XFlutterTextureView extends TextureView implements RenderSurface { ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XFlutterView.java:584: 错误: 无法将类 AndroidTouchProcessor中的构造器 AndroidTouchProcessor应用到给定类型; this.androidTouchProcessor = new AndroidTouchProcessor(this.flutterEngine.getRenderer()); ^ 需要: FlutterRenderer,boolean 找到: FlutterRenderer 原因: 实际参数列表和形式参数列表长度不同 /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XTextInputPlugin.java:89: 错误: <匿名com.idlefish.flutterboost.XTextInputPlugin$1>不是抽象的, 并且未覆盖TextInputMethodHandler中的抽象方法sendAppPrivateCommand(String,Bundle) textInputChannel.setTextInputMethodHandler(new TextInputChannel.TextInputMethodHandler() { ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java:36: 错误: <匿名com.idlefish.flutterboost.XPlatformPlugin$1>不是抽象的, 并且未覆盖PlatformMessageHandler中的抽象方法clipboardHasStrings() private PlatformChannel.PlatformMessageHandler mPlatformMessageHandler = new PlatformChannel.PlatformMessageHandler() { ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java:87: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java:92: 错误: 方法不会覆盖或实现超类型的方法 @Override ^ 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 6 个错误

FAILURE: Build failed with an exception.

BUILD FAILED in 35s Exception: Gradle task assembleDebug failed with exit code 1

Elex92 commented 3 years ago

flutter 版本试了1.22.5、1.22.4、1.22.3都报这个错

nightfallsad commented 3 years ago

/Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XFlutterTextureView.java:14: 错误: XFlutterTextureView不是抽象的, 并且未覆盖RenderSurface中的抽象方法pause() public class XFlutterTextureView extends TextureView implements RenderSurface { ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XFlutterView.java:584: 错误: 无法将类 AndroidTouchProcessor中的构造器 AndroidTouchProcessor应用到给定类型; this.androidTouchProcessor = new AndroidTouchProcessor(this.flutterEngine.getRenderer()); ^ 需要: FlutterRenderer,boolean 找到: FlutterRenderer 原因: 实际参数列表和形式参数列表长度不同 /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XTextInputPlugin.java:89: 错误: <匿名com.idlefish.flutterboost.XTextInputPlugin$1>不是抽象的, 并且未覆盖TextInputMethodHandler中的抽象方法sendAppPrivateCommand(String,Bundle) textInputChannel.setTextInputMethodHandler(new TextInputChannel.TextInputMethodHandler() { ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java:36: 错误: <匿名com.idlefish.flutterboost.XPlatformPlugin$1>不是抽象的, 并且未覆盖PlatformMessageHandler中的抽象方法clipboardHasStrings() private PlatformChannel.PlatformMessageHandler mPlatformMessageHandler = new PlatformChannel.PlatformMessageHandler() { ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java:87: 错误: 方法不会覆盖或实现超类型的方法 @override ^ /Users/elex/flutter/flutter/.pub-cache/git/flutter_boost-7a7923c0d4f345f3206c9653468bcd8d9193d102/android/src/main/java/com/idlefish/flutterboost/XPlatformPlugin.java:92: 错误: 方法不会覆盖或实现超类型的方法 @override ^ 注: 某些输入文件使用或覆盖了已过时的 API。 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 注: 某些输入文件使用了未经检查或不安全的操作。 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 6 个错误

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':flutter_boost:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 35s Exception: Gradle task assembleDebug failed with exit code 1

flutter_boost 1.17.1 分支对应flutter版本是1.17.x

shareCourage commented 3 years ago

这个问题咋就关闭了?没看到解决方案啊