flutter build apk fail

$ flutter build apk
Initializing gradle…
Resolving dependencies…
Running ‘gradlew assembleRelease’…
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:1: Error: Variables must be declared using th’const’, ‘final’, ‘var’ or a type name.
compiler message: Try adding the name of the type of the variable or the keyword ‘var’.
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:1: Error: Expected an identifier, but got 'mi
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:1: Error: Expected ‘;’ after this.
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:1: Error: Expected a declaration, but got 'mi
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:34: Error: Expected ‘;’ after this.
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:74:5: Error: Expected ‘;’ after this.
compiler message: implements ChartStateBehavior {
compiler message: ^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:74:16: Error: A function declaration needs an ex of parameters.
compiler message: Try adding a parameter list to the function declaration.
compiler message: implements ChartStateBehavior {
compiler message: ^^^^^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_and_zoom_behavior.dart:63:36: Error: The type 'FlutterPanBehavan’t be mixed in.
compiler message: class FlutterPanAndZoomBehavior extends common.PanAndZoomBehavior
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:68:7: Error: The type ‘FlutterPanBehaviorMixin’ xed in.
compiler message: class FlutterPanBehavior = common.PanBehavior
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_and_zoom_behavior.dart:64:10: Error: Type 'FlutterPanBehaviorMound.
compiler message: with FlutterPanBehaviorMixin {}
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:69:10: Error: Type ‘FlutterPanBehaviorMixin’ not
compiler message: with FlutterPanBehaviorMixin;
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:7: Error: ‘FlutterPanBehaviorMixin’ expects 0ents.
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:56: Error: Type ‘D’ not found.
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:31: Error: ‘D’ isn’t a type.
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:7: Error: ‘FlutterPanBehaviorMixin’ isn’t a t
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^^^^^^^^^^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:73:56: Error: ‘D’ isn’t a type.
compiler message: mixin FlutterPanBehaviorMixin on common.PanBehavior
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:77:3: Error: Unexpected token ‘set’.
compiler message: set chartState(BaseChartState chartState) {
compiler message: ^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:81:57: Error: Expected identifier, but got 'this
compiler message: _flingAnimator = _chartState.getAnimationController(this);
compiler message: ^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:81:5: Error: Setter not found: ‘_flingAnimator’.
compiler message: _flingAnimator = _chartState.getAnimationController(this);
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:82:33: Error: Getter not found: ‘_onFlingTick’.
compiler message: _flingAnimator?.addListener(_onFlingTick);
compiler message: ^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:82:5: Error: Getter not found: ‘_flingAnimator’.
compiler message: _flingAnimator?.addListener(_onFlingTick);
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:85:23: Error: Can’t declare ‘_flingAnimator’ bec already used in this scope.
compiler message: AnimationController _flingAnimator;
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:81:5: Error: Previous use of ‘_flingAnimator’.
compiler message: _flingAnimator = _chartState.getAnimationController(this);
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:92:3: Error: Can’t have modifier ‘static’ here.
compiler message: Try removing ‘static’.
compiler message: static const flingDistanceMultiplier = 0.15;
compiler message: ^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:93:3: Error: Can’t have modifier ‘static’ here.
compiler message: Try removing ‘static’.
compiler message: static const flingDeceleratorFactor = 1.0;
compiler message: ^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:94:3: Error: Can’t have modifier ‘static’ here.
compiler message: Try removing ‘static’.
compiler message: static const flingDurationMultiplier = 0.15;
compiler message: ^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:95:3: Error: Can’t have modifier ‘static’ here.
compiler message: Try removing ‘static’.
compiler message: static const minimumFlingVelocity = 300.0;
compiler message: ^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:98:31: Error: ‘D’ isn’t a type.
compiler message: removeFrom(common.BaseChart chart) {
compiler message: ^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:99:5: Error: Method not found: 'stopFlingAnimati
compiler message: stopFlingAnimation();
compiler message: ^^^^^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:100:44: Error: Expected identifier, but got 'thi
compiler message: _chartState.disposeAnimationController(this);
compiler message: ^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:101:5: Error: Setter not found: ‘_flingAnimator’
compiler message: _flingAnimator = null;
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:102:5: Error: Expected identifier, but got 'supe
compiler message: super.removeFrom(chart);
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:107:5: Error: Expected identifier, but got 'supe
compiler message: super.onTapTest(chartPoint);
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:109:5: Error: Method not found: 'stopFlingAnimat
compiler message: stopFlingAnimation();
compiler message: ^^^^^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:117:9: Error: Getter not found: ‘isPanning’.
compiler message: if (isPanning) {
compiler message: ^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:120:9: Error: Method not found: ‘onPanEnd’.
compiler message: onPanEnd();
compiler message: ^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:124:7: Error: Method not found: ‘_startFling’.
compiler message: _startFling(pixelsPerSec);
compiler message: ^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:127:12: Error: Expected identifier, but got 'sup
compiler message: return super.onDragEnd(localPosition, scale, pixelsPerSec);
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:131:8: Error: Can’t declare ‘_startFling’ becausready used in this scope.
compiler message: void _startFling(double pixelsPerSec) {
compiler message: ^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:124:7: Error: Previous use of ‘_startFling’.
compiler message: _startFling(pixelsPerSec);
compiler message: ^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:132:24: Error: Getter not found: ‘chart’.
compiler message: final domainAxis = chart.domainAxis;
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:142:5: Error: Getter not found: ‘_flingAnimator’
compiler message: _flingAnimator
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:154:8: Error: Can’t declare ‘_onFlingTick’ becaulready used in this scope.
compiler message: void _onFlingTick() {
compiler message: ^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:82:33: Error: Previous use of ‘_onFlingTick’.
compiler message: _flingAnimator?.addListener(_onFlingTick);
compiler message: ^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:159:21: Error: Getter not found: '_flingAnimator
compiler message: final percent = _flingAnimator.value;
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:164:24: Error: Getter not found: ‘chart’.
compiler message: final domainAxis = chart.domainAxis;
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:168:24: Error: Getter not found: ‘chart’.
compiler message: drawAreaWidth: chart.drawAreaBounds.width);
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:171:7: Error: Method not found: 'stopFlingAnimat
compiler message: stopFlingAnimation();
compiler message: ^^^^^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:172:7: Error: Method not found: ‘onPanEnd’.
compiler message: onPanEnd();
compiler message: ^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:173:7: Error: Getter not found: ‘chart’.
compiler message: chart.redraw();
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:175:7: Error: Getter not found: ‘chart’.
compiler message: chart.redraw(skipAnimation: true, skipLayout: true);
compiler message: ^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:180:8: Error: Can’t declare ‘stopFlingAnimation’ was already used in this scope.
compiler message: void stopFlingAnimation() {
compiler message: ^^^^^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:99:5: Error: Previous use of 'stopFlingAnimation
compiler message: stopFlingAnimation();
compiler message: ^^^^^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_behavior.dart:183:7: Error: Getter not found: ‘_flingAnimator’
compiler message: _flingAnimator?.stop();
compiler message: ^^^^^^^^^^^^^^
compiler message: file:///D:/workspace/flutter_windows_v0.8.2-beta/flutter/.pub-cache/hosted/pub.flutter-s_flutter-0.5.0/lib/src/behaviors/zoom/pan_and_zoom_behavior.dart:1: Error: The superclass, ‘_FlutterPanAior&PanAndZoomBehavior&FlutterPanBehaviorMixin’, has no unnamed constructor that takes no arguments.
Compiler terminated unexpectedly.

FAILURE: Build failed with an exception.

  • Where:
    Script ‘D:\workspace\flutter_windows_v0.8.2-beta\flutter\packages\flutter_tools\gradle\flutter.gradle’ li

  • What went wrong:
    Execution failed for task ‘:app:flutterBuildRelease’.

Process ‘command ‘D:\workspace\flutter_windows_v0.8.2-beta\flutter\bin\flutter.bat’’ finished with non-alue 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log ouith --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 12s
Gradle build failed: 1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Hi 王波,

Writing an answer takes time and effort. It would be polite to take time and effort to explain what you are doing and what problems are you seeing. Logs and errors belong in Github Gists and pastebin.

With your current post you are making people guess what you are doing and what is your codebase. Ideally, create a small project on Github that illustrates your problem and I’m sure you’ll get a helpful reply.

Cheers,
Dimitar (waiting for a CI build)

First of all,Thanks for your reply!
however ,I cannot understand what you want to illustrate,please make me clear with tthe usual language, English,etc
Wish your reply again!

I am very sorry for I can’t push my project onto Github,under I haven’t know what’s wrong with it,because it is my company’s program,instead of my own.

Please use the old version of plugin “charts_flutter: ^0.4.0”. It will work.

Thank you very much! will try

发自我的iPhone

------------------ Original ------------------