Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

该项目直接运行flutter run 是否可以启动? #1

Open
algate opened this issue Jun 22, 2019 · 4 comments
Open

该项目直接运行flutter run 是否可以启动? #1

algate opened this issue Jun 22, 2019 · 4 comments

Comments

@algate
Copy link

algate commented Jun 22, 2019

flutter run 运行之后

报错:
Compiler message:
file:///C:/Users/sbbc/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/flare_flutter-1.5.2/lib/flare.dart:1033:18: Error: The argument type 'Int32List' can't be assigned to the parameter type 'Uint16List'.

  • 'Int32List' is from 'dart:typed_data'.
  • 'Uint16List' is from 'dart:typed_data'.
    Try changing the type of the parameter, or casting the argument to 'Uint16List'.
    indices: _indices, textureCoordinates: _uvBuffer);
    ^
    Compiler failed on E:\JavascriptCode\Flutter\flutter_compass\lib\main.dart

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\Program Files\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 665

  • What went wrong:
    Execution failed for task ':app:compileflutterBuildDebugX86'.

Process 'command 'D:\Program Files\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • 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 21s
Finished with error: Gradle task assembleDebug failed with exit code 1

@zesage
Copy link
Owner

zesage commented Jun 24, 2019 via email

@zesage
Copy link
Owner

zesage commented Jul 3, 2019

flutter run 运行之后

报错:
Compiler message:
file:///C:/Users/sbbc/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/flare_flutter-1.5.2/lib/flare.dart:1033:18: Error: The argument type 'Int32List' can't be assigned to the parameter type 'Uint16List'.

  • 'Int32List' is from 'dart:typed_data'.
  • 'Uint16List' is from 'dart:typed_data'.
    Try changing the type of the parameter, or casting the argument to 'Uint16List'.
    indices: _indices, textureCoordinates: _uvBuffer);
    ^
    Compiler failed on E:\JavascriptCode\Flutter\flutter_compass\lib\main.dart

FAILURE: Build failed with an exception.

  • Where:
    Script 'D:\Program Files\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 665
  • What went wrong:
    Execution failed for task ':app:compileflutterBuildDebugX86'.

Process 'command 'D:\Program Files\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • 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 21s
Finished with error: Gradle task assembleDebug failed with exit code 1

解决方法参照2d-inc/developer_quest/issues/142,在 pubspec.yaml 里更改 flare_flutter 的分支:

  git: 
    url: git://github.com/2d-inc/Flare-Flutter.git
    ref: dev
    path: flare_flutter

@zxrliuyan
Copy link

可以直接 flutter run 不过要翻墙

@Furtim
Copy link

Furtim commented Sep 11, 2019

Updating the flutter_flare dependency in pubspec.yaml to the latest fixes this. Probably what's written above but for clarity :-)

flare_flutter: ^1.5.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants