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

build failed (flare_flutter/lib/flare.dart:1023) #142

Closed
langhuihui opened this issue Jul 2, 2019 · 4 comments
Closed

build failed (flare_flutter/lib/flare.dart:1023) #142

langhuihui opened this issue Jul 2, 2019 · 4 comments

Comments

@langhuihui
Copy link

file:///C:/Users/17080854/AppData/Roaming/Pub/Cache/git/Flare-Flutter-4aebb0ff5b98c7bcf2183c6bac8226cc7ddf5402/flare_flutter/lib/flare.dart:1023: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);
@brotherOfChina
Copy link

I also encountered such a problem, hope to be solved

@luigi-rosso
Copy link
Contributor

Hello,

This error is due to a breaking change with Flutter master/dev. You are likely using one of those two channels. If you are trying to run the code in this repository, please use the Flutter stable branch by typing this into your terminal:

flutter channel stable
flutter upgrade

This is the easiest fix that should get you running very quickly. Alternatively, if you're adventurous, you can try to update the code to use a newer version of Flare (which is compatible with Flutter master/dev) by pointing the Flare-Flutter dependency to the dev branch in GitHub as follows:

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

We have details about how to do this in our Flare-Flutter readme here:
https://github.com/2d-inc/Flare-Flutter

Various other reports of this issue which contain more info, in case anything here is not clear:
2d-inc/Flare-Flutter#79 (comment)
2d-inc/Flare-Flutter#105
2d-inc/Flare-Flutter#98
2d-inc/Flare-Flutter#94
2d-inc/Flare-Flutter#86

@langhuihui
Copy link
Author

Thank you,it's working!

@twovs
Copy link

twovs commented Jul 11, 2019

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

I Use this ,but it's not runing :p

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