reply icon indicating copy to clipboard operation
reply copied to clipboard

Cannot compile

Open wpangxin opened this issue 5 years ago • 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.

wpangxin avatar Jul 14 '19 15:07 wpangxin

me too

ChangQing666 avatar Jul 17 '19 13:07 ChangQing666

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.

icetick avatar Jul 24 '19 08:07 icetick

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

maugustosemperfi avatar Aug 17 '19 22:08 maugustosemperfi