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

Cannot compile #2

Open
wpangxin opened this issue Jul 14, 2019 · 3 comments
Open

Cannot compile #2

wpangxin opened this issue Jul 14, 2019 · 3 comments

Comments

@wpangxin
Copy link

Hi

I received this error when I compiled it using Android Studio

Compiler message:
file:///C:/Users/User/AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/flare_flutter-1.5.1/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);
    ^
    Compiler terminated unexpectedly.
@ChangQing666
Copy link

me too

@icetick
Copy link

icetick commented Jul 24, 2019

You need to manually change flare.dart file to run application. Its flutter issue. Just change _indices variable type from Int32List to Uint16List and be happy. After running application, i`ll recommend to revert this changes to make sure that another applications will work well.

@maugustosemperfi
Copy link

Work after converting _indices to Uint16List and doing _indices = triangles on line 974 in flare.dart, but you really should update flutter with flutter upgrade and flare_flutter to last version as said here

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