flschweiger/reply

Cannot compile

Opened this issue · 3 comments

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.

me too

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.

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