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

Error running Teddy sample: The argument type 'Uint16List' can't be assigned to the parameter type 'Int32List' #96

Open
cursodroidudemy opened this issue May 30, 2019 · 9 comments

Comments

@cursodroidudemy
Copy link

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'.

  • 'Uint16List' is from 'dart:typed_data'.
  • 'Int32List' is from 'dart:typed_data'.
    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

[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.4 18E226, locale en-BR)
• Flutter version 1.5.4-hotfix.2 at /Users/rlecheta/flutter
• Framework revision 7a4c33425d (4 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)

@luigi-rosso
Copy link
Contributor

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.

@Vanethos
Copy link

For those having this issue, you can change your pubspec.yaml to the following:

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

This currently also happens in the betabranch

@tensor-programming
Copy link

Is it master that is broken? Seeing this on a custom app build with version 1.5.1 which is the version specified on pub.

@umberto-sonnino
Copy link
Contributor

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:
Flutter Stable: Flare-Flutter "stable" branch
Flutter Master: Flare-Flutter "master" branch
Flutter Dev: Flare-Flutter "dev" branch

Use the flutter channel command in a terminal to view the currently active flutter channel.

@juliengit2
Copy link

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??

@hyperionstudios
Copy link

@juliengit2 you will need flutter 1.7 as the stable

@juliengit2
Copy link

@hyperionstudios thank you! I was using 1.5.4, am upgrading to 1.7 and hope it'll work

@luigi-rosso
Copy link
Contributor

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.

flutter channel stable
flutter upgrade

@juliengit2
Copy link

yes it worked after upgrading

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

7 participants