Open zhiyan93 opened 5 years ago
Same problem.But when i just created a new flutter project,everything is OK.
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
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)
This is due to Flutter stable updating with breaking changes for Flare and Nima.
I just pushed https://github.com/2d-inc/HistoryOfEverything/commit/855fd92861d7114e4b6b6c31f256505ebef563e1 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.
@luigi-rosso After update to the latest version,everything runs perfectly.Thx very much.
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'.