Comments (4)
Updating the flutter_flare dependency in pubspec.yaml to the latest fixes this. Probably what's written above but for clarity :-)
flare_flutter: ^1.5.8
from flutter_compass.
from flutter_compass.
flutter run 运行之后
报错:
Compiler message:
file:///C:/Users/sbbc/AppData/Roaming/Pub/Cache/hosted/pub.flutter-io.cn/flare_flutter-1.5.2/lib/flare.dart:1033: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 failed on E:\JavascriptCode\Flutter\flutter_compass\lib\main.dartFAILURE: Build failed with an exception.
- Where:
Script 'D:\Program Files\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 665- What went wrong:
Execution failed for task ':app:compileflutterBuildDebugX86'.Process 'command 'D:\Program Files\flutter\bin\flutter.bat'' finished with non-zero exit value 1
- Try:
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.- Get more help at https://help.gradle.org
BUILD FAILED in 21s
Finished with error: Gradle task assembleDebug failed with exit code 1
解决方法参照2d-inc/developer_quest/issues/142,在 pubspec.yaml 里更改 flare_flutter 的分支:
git:
url: git://github.com/2d-inc/Flare-Flutter.git
ref: dev
path: flare_flutter
from flutter_compass.
可以直接 flutter run 不过要翻墙
from flutter_compass.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_compass.