tal-tech / d_stack

A Flutter hybrid stack solution
MIT License
106 stars 37 forks source link

跑example报错!!! #13

Closed aktomi666 closed 3 years ago

aktomi666 commented 3 years ago
Launching lib/main.dart on ELE AL00 in debug mode...
Running Gradle task 'assembleDebug'...
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterPageDelegate.java:66: 错误: 找不到符号
/* package */ class DFlutterPageDelegate implements ExclusiveAppComponent<Activity> {
                                                    ^
  符号: 类 ExclusiveAppComponent
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterPageDelegate.java:763: 错误: 找不到符号
            PlatformPlugin.PlatformPluginDelegate {
                          ^
  符号:   类 PlatformPluginDelegate
  位置: 类 PlatformPlugin
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterActivity.java:16: 错误: 找不到符号
import static io.flutter.embedding.android.FlutterActivityLaunchConfigs.HANDLE_DEEPLINKING_META_DATA_KEY;
^
  符号:   静态 HANDLE_DEEPLINKING_META_DATA_KEY
  位置: 类
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterPageDelegate.java:169: 错误: 不兼容的类型: DFlutterPageDelegate无法转换为Activity
            flutterEngine.getActivityControlSurface().attachToActivity(this, host.getLifecycle());
                                                                       ^
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterPageDelegate.java:183: 错误: 方法不会覆盖或实现超类型的方法
    @Override
    ^
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterPageDelegate.java:514: 错误: 方法不会覆盖或实现超类型的方法
    @Override
    ^
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterActivity.java:928: 错误: 无法将类 PlatformPlugin中的构造器 PlatformPlugin应用到给定类型;
        return new PlatformPlugin(getActivity(), flutterEngine.getPlatformChannel(), this);
               ^
  需要: Activity,PlatformChannel
  找到: Activity,PlatformChannel,DFlutterActivity
  原因: 实际参数列表和形式参数列表长度不同
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterActivity.java:1009: 错误: 找不到符号
                    metaData != null ? metaData.getBoolean(HANDLE_DEEPLINKING_META_DATA_KEY) : false;
                                                           ^
  符号:   变量 HANDLE_DEEPLINKING_META_DATA_KEY
  位置: 类 DFlutterActivity
/Users/a/Documents/curwork/demo/d_stack/android/src/main/kotlin/io/flutter/embedding/android/DFlutterActivity.java:1054: 错误: 方法不会覆盖或实现超类型的方法
    @Override
    ^
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
注: 某些消息已经过简化; 请使用 -Xdiags:verbose 重新编译以获得完整输出
9 个错误

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':d_stack: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 7s
Exception: Gradle task assembleDebug failed with exit code 1

debug异常!

xiaoyuyouer commented 3 years ago

您当前的flutter版本是多少?

aktomi666 commented 3 years ago
octor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.19.0-3.0.pre.1424, on Mac OS X 10.14.6 18G1012 darwin-x64, locale zh-Hans-CN)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
[!] Xcode - develop for iOS and macOS (Xcode 10.3)
    ✗ Flutter requires a minimum Xcode version of 11.0.0.
      Download the latest version or update via the Mac App Store.
    ! CocoaPods 1.7.5 out of date (1.8.0 is recommended).
        CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/platform-plugins
      To upgrade:
        sudo gem install cocoapods
[!] Android Studio (version 4.1)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.2)
[✓] IntelliJ IDEA Community Edition (version 2020.1.4)
[!] Connected device
    ! No devices available
aktomi666 commented 3 years ago

拉取了最新的版本可以用。 老版本dstack版本1.3.1的example跑不通!