-
Notifications
You must be signed in to change notification settings - Fork 469
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
Error running Teddy sample: The argument type 'Uint16List' can't be assigned to the parameter type 'Int32List' #96
Comments
Hi, There’s a breaking change between flutter stable and dev/master. If you wish to use flutter stable, please use the corresponding Flare-Flutter stable branch. Our master and dev branches are kept up to date with flutter master and dev. I suspect you checked out the example from our master branch. If so, either switch to flutter master/dev or checkout Flare-Flutter branch stable. |
For those having this issue, you can change your flare_flutter:
git:
url: https://github.com/2d-inc/Flare-Flutter.git
path: flare_flutter
ref: dev This currently also happens in the |
Is it master that is broken? Seeing this on a custom app build with version |
Unfortunately Flutter has changed their API between their stable and master/dev channels, but we've updated our runtime to comply with those changes. Our README has a compatibility list, so everyone can keep using their Flutter channel, they just need to use the correct branch - that is: Use the |
same issue, and very annoying. using channel stable + flare_flutter: ^1.5.4 (as indicated in https://github.com/2d-inc/Flare-Flutter/#flutter-channel) doesn't work. I tried to change the type but it didn't work, any idea?? |
@juliengit2 you will need flutter 1.7 as the stable |
@hyperionstudios thank you! I was using 1.5.4, am upgrading to 1.7 and hope it'll work |
Flutter stable was upgraded a few days ago, we upgraded our stable to match. If you’re seeing this error, you likely haven’t upgraded yet.
|
yes it worked after upgrading |
Hi,
I have this error after run the teddy example:
`Compiler message:
file:///Users/rlecheta/Desktop/Flare-Flutter-master/flare_flutter/lib/flare.dart:1022:18: Error: The argument type 'Uint16List' can't be assigned to the parameter type 'Int32List'.
Try changing the type of the parameter, or casting the argument to 'Int32List'.
indices: _indices, textureCoordinates: _uvBuffer);
^
Compiler failed on /Users/rlecheta/Desktop/Flare-Flutter-master/example/teddy/lib/main.dart
Finished with error: Gradle task assembleDebug failed with exit code 1`
Flutter doctor:
flutter doctor -v
The text was updated successfully, but these errors were encountered: