kaina404 / FlutterDouBan

🔥🔥🔥Flutter豆瓣客户端,Awesome Flutter Project,全网最100%还原豆瓣客户端。首页、书影音、小组、市集及个人中心,一个不拉。( https://img.xuvip.top/douyademo.mp4)
8.7k stars 1.82k forks source link

flutter run的时候报这个错,如何解决? #87

Closed dylan-7 closed 2 years ago

dylan-7 commented 4 years ago

Launching lib/main.dart on iPhone SE (2nd generation) in debug mode... Running pod install... 1.3s Running Xcode build...

Xcode build done. 10.1s Failed to build iOS app Error output from Xcode build: ↳ BUILD FAILED

Xcode's output: ↳ 5 warnings generated. In file included from /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas ses/FluttertoastPlugin.m:2: /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas ses/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command [-Wdocumentation] @param sharedStyle


    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param allowTapToDismiss
     ~~~~~~~~~~~~~~~~~~~~~~~^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function
    declaration [-Wdocumentation]
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'?
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
            tapToDismissEnabled
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:362:20: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param queueEnabled
     ~~~~~~~~~~~~~~~~~~^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/FluttertoastPlugin.m:19:23: warning: unused variable 'viewController' [-Wunused-variable]
        UIViewController *viewController =
                          ^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/FluttertoastPlugin.m:70:21: warning: unused variable 'topPadding' [-Wunused-variable]
                CGFloat topPadding = window.safeAreaInsets.top;
                        ^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/FluttertoastPlugin.m:71:21: warning: unused variable 'bottomPadding' [-Wunused-variable]
                CGFloat bottomPadding = window.safeAreaInsets.bottom;
                        ^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/FluttertoastPlugin.m:48:19: warning: unused variable 'size' [-Wunused-variable]
            NSNumber *size = call.arguments[@"size"];
                      ^
    8 warnings generated.
    In file included from
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.m:26:
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:328:19: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param sharedStyle
     ~~~~~~~~~~~~~~~~~^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:343:25: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param allowTapToDismiss
     ~~~~~~~~~~~~~~~~~~~~~~~^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:343:9: warning: parameter 'allowTapToDismiss' not found in the function
    declaration [-Wdocumentation]
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:343:9: note: did you mean 'tapToDismissEnabled'?
     @param allowTapToDismiss
            ^~~~~~~~~~~~~~~~~
            tapToDismissEnabled
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/fluttertoast-3.0.4/ios/Clas
    ses/UIView+Toast.h:362:20: warning: empty paragraph passed to '@param' command [-Wdocumentation]
     @param queueEnabled
     ~~~~~~~~~~~~~~~~~~^
    4 warnings generated.
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:86:55: warning: block implicitly retains 'self'; explicitly mention
    'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                                                      if (_isLooping) {
                                                          ^
                                                          self->
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:90:57: warning: block implicitly retains 'self'; explicitly mention
    'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                                                        if (_eventSink) {
                                                            ^
                                                            self->
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:91:55: warning: block implicitly retains 'self'; explicitly mention
    'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                                                          _eventSink(@{@"event" : @"completed"});
                                                          ^
                                                          self->
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:156:75: warning: values of type 'NSInteger' should not be used as
    format arguments; add an explicit cast to 'long' instead [-Wformat]
        NSLog(@"TX and TY are 0. Rotation: %d. Natural width,height: %f, %f", rotationDegrees,
                                           ~~                                 ^~~~~~~~~~~~~~~
                                           %ld                                (long)
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:188:20: warning: unused variable 'size' [-Wunused-variable]
                CGSize size = videoTrack.naturalSize;
                       ^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:212:10: warning: unused variable 'size' [-Wunused-variable]
      CGSize size = item.presentationSize;
             ^
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:185:15: warning: block implicitly retains 'self'; explicitly mention
    'self' to indicate this is intended behavior [-Wimplicit-retain-self]
              if (_disposed) return;
                  ^
                  self->
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:191:13: warning: block implicitly retains 'self'; explicitly mention
    'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                _preferredTransform = [self fixTransform:videoTrack];
                ^
                self->
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/video_player-0.10.0+2/ios/C
    lasses/VideoPlayerPlugin.m:197:56: warning: block implicitly retains 'self'; explicitly mention
    'self' to indicate this is intended behavior [-Wimplicit-retain-self]
                    [self getVideoCompositionWithTransform:_preferredTransform
                                                           ^
                                                           self->
    9 warnings generated.
    /Users/lee/flutterApp/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_webview_plugin-0.3.
    0+2/ios/Classes/FlutterWebviewPlugin.m:243:60: warning: implicit conversion loses integer
    precision: 'WKNavigationType' (aka 'enum WKNavigationType') to 'int' [-Wshorten-64-to-32]
                    @"navigationType": [NSNumber numberWithInt:navigationAction.navigationType]};
                                       ~                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 warning generated.
    ../flutter/.pub-cache/hosted/pub.flutter-io.cn/cached_network_image-1.1.0/lib/src/cached_network
    _image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer
    positional arguments than those of overridden method 'ImageProvider.load'.
      ImageStreamCompleter load(CachedNetworkImageProvider key) {
                           ^
    ../flutter/packages/flutter/lib/src/painting/image_provider.dart:578:24: Context: This is the
    overridden method ('load').
      ImageStreamCompleter load(T key, DecoderCallback decode);
                           ^
    lib/pages/home/home_page.dart:41:13: Error: No named parameter with the name 'child'.
                child: myapp.SliverAppBar(
                ^^^^^
    ../flutter/packages/flutter/lib/src/widgets/nested_scroll_view.dart:1723:9: Context: Found this
    candidate, but the arguments don't match.
      const SliverOverlapAbsorber({
            ^^^^^^^^^^^^^^^^^^^^^
    lib/pages/home/home_app_bar.dart:1195:13: Error: No named parameter with the name 'child'.
                child: SliverAppBar(
                ^^^^^
    ../flutter/packages/flutter/lib/src/widgets/nested_scroll_view.dart:1723:9: Context: Found this
    candidate, but the arguments don't match.
      const SliverOverlapAbsorber({
            ^^^^^^^^^^^^^^^^^^^^^
    lib/util/palette_generator.dart:70:3: Error: The superclass, 'Diagnosticable', has no unnamed
    constructor that takes no arguments.
      PaletteGenerator.fromColors(this.paletteColors, {this.targets})
      ^^^^^^^^^^
    lib/util/palette_generator.dart:379:3: Error: The superclass, 'Diagnosticable', has no unnamed
    constructor that takes no arguments.
      PaletteTarget({
      ^^^^^^^^^^^^^
    lib/util/palette_generator.dart:607:3: Error: The superclass, 'Diagnosticable', has no unnamed
    constructor that takes no arguments.
      PaletteColor(this.color, this.population)
      ^^^^^^^^^^^^

    Command PhaseScriptExecution failed with a nonzero exit code
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description
    warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the
    range of supported deployment target versions is 8.0 to 13.6.99. (in target 'FMDB' from project
    'Pods')

Could not build the application for the simulator.
Error launching application on iPhone SE (2nd generation).
houtianxi commented 4 years ago

我也类似的错 image

arwzhao commented 3 years ago

child 换成 sliver

ZzzzyMan commented 3 years ago

@dylan-7 你解决了吗 哥们

arwzhao commented 3 years ago

解决了

在 2021-03-04 16:21:21,"ZzzzyMan" notifications@github.com 写道:

@dylan-7 你解决了吗 哥们

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

kaina404 commented 2 years ago

项目已经更新到最新版本拉,可以pull并且直接运行了。卡顿可以使用Release模式运行。

arwzhao commented 2 years ago

thank you

在 2022-02-11 16:57:39,"kaina404" @.***> 写道:

项目已经更新到最新版本拉,可以pull并且直接运行了。卡顿可以使用Release模式运行。

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>