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

issue about configure and running this project #67

Open
zhiyan93 opened this issue Jul 17, 2019 · 5 comments
Open

issue about configure and running this project #67

zhiyan93 opened this issue Jul 17, 2019 · 5 comments

Comments

@zhiyan93
Copy link

zhiyan93 commented Jul 17, 2019

I use the provided command line to run this project with my android studio, It shows the following compiler error message. I have configured the path of flutter and dart, and I have no idea how to deal with this problem.

Compiler message:
file:///Users/stevenliu/HistoryOfEverything/dependencies/Nima-Flutter/lib/nima.d
art:114:90: 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'.
    _canvasVertices = new ui.Vertices.raw(ui.VertexMode.triangles, _vertexBuffer,
    indices: _indices, textureCoordinates: _uvBuffer);
    ^
    Compiler failed on /Users/stevenliu/HistoryOfEverything/app/lib/main.dart
    Error launching application on iPhone Xʀ.
@seanLee
Copy link

seanLee commented Jul 25, 2019

Same problem.But when i just created a new flutter project,everything is OK.

@oxydron
Copy link

oxydron commented Jul 25, 2019

Same problem...

17:05:32.691 8 info flutter.tools Compiler message:
17:05:32.691 9 info flutter.tools file:///home/bh/AndroidStudioProjects/HistoryOfEverything/dependencies/Nima-Flutter/lib/nima.dart:114:90: Error: The argument type 'Int32List' can't be assigned to the parameter type 'Uint16List'.
17:05:32.693 10 info flutter.tools - 'Int32List' is from 'dart:typed_data'.
17:05:32.694 11 info flutter.tools
17:05:32.694 12 info flutter.tools - 'Uint16List' is from 'dart:typed_data'.
17:05:32.694 13 info flutter.tools Try changing the type of the parameter, or casting the argument to 'Uint16List'.
17:05:32.694 14 info flutter.tools
17:05:32.694 15 info flutter.tools _canvasVertices = new ui.Vertices.raw(ui.VertexMode.triangles, _vertexBuffer, indices: _indices, textureCoordinates: _uvBuffer);
17:05:32.694 16 info flutter.tools ^
17:05:32.694 17 info flutter.tools
17:05:35.292 18 info flutter.tools Compiler failed on /home/bh/AndroidStudioProjects/HistoryOfEverything/app/lib/main.dart
17:05:35.292 19 info flutter.tools
17:05:35.313 20 info flutter.tools
17:05:35.314 21 info flutter.tools FAILURE: Build failed with an exception.
17:05:35.314 22 info flutter.tools
17:05:35.314 23 info flutter.tools * Where:
17:05:35.315 24 info flutter.tools Script '/home/bh/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 665
17:05:35.315 25 info flutter.tools
17:05:35.315 26 info flutter.tools * What went wrong:
17:05:35.315 27 info flutter.tools Execution failed for task ':app:compileflutterBuildDebugX64'.
17:05:35.315 28 info flutter.tools > Process 'command '/home/bh/flutter/bin/flutter'' finished with non-zero exit value 1
17:05:35.315 29 info flutter.tools
17:05:35.315 30 info flutter.tools * Try:
17:05:35.315 31 info flutter.tools Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
17:05:35.315 32 info flutter.tools
17:05:35.315 33 info flutter.tools * Get more help at https://help.gradle.org
17:05:35.315 34 info flutter.tools
17:05:35.315 35 info flutter.tools BUILD FAILED in 8s

@dgsc-fav
Copy link

dgsc-fav commented Jul 26, 2019

in my case
[macname]:Nima-Flutter [username]$ git status
HEAD detached at ba82223
then I switch to the master branch
[macname]:Nima-Flutter [username]$ git checkout master
and compiled successfully

(submodule init and submodule update was called previously)

@luigi-rosso
Copy link
Contributor

luigi-rosso commented Jul 26, 2019

This is due to Flutter stable updating with breaking changes for Flare and Nima.

I just pushed 855fd92 that fixes the dependencies to newer versions and I updated the History of Everything code to be compatible with the newer libraries. Please pull the latest changes from the master branch and make sure you update submodules too.

@seanLee
Copy link

seanLee commented Jul 29, 2019

@luigi-rosso After update to the latest version,everything runs perfectly.Thx very much.

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

5 participants