Open algate opened 5 years ago
看着好像是那些文件没法下载,你开上vpn试试
onions notifications@github.com 于2019年6月22日周六 下午5:13写道:
flutter run 运行之后
报错:
- Error running Gradle: ProcessException: Process "E:\JavascriptCode\Flutter\flutter_compass\android\gradlew.bat" exited abnormally:
FAILURE: Build failed with an exception.
- What went wrong: A problem occurred configuring root project 'android'.
Could not resolve all artifacts for configuration ':classpath'. Could not download guava.jar (com.google.guava:guava:26.0-jre)
Could not get resource ' https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar '. Could not GET ' https://jcenter.bintray.com/com/google/guava/guava/26.0-jre/guava-26.0-jre.jar '. Connection reset Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.3.11) Could not get resource ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.11/kotlin-reflect-1.3.11 . jar'. Could not GET ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.3.11/kotlin-reflect-1.3 . 11.jar'. Received close_notify during handshake Could not download kotlin-stdlib.jar (org.jetbrains.kotlin:kotlin-stdlib:1.3.11) Could not get resource ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.11/kotlin-stdlib-1.3.11.ja r'. Could not GET ' https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib/1.3.11/kotlin-stdlib-1.3.11 .jar'. Connection reset
-
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 2m 19s Command: E:\JavascriptCode\Flutter\flutter_compass\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zesage/flutter_compass/issues/1?email_source=notifications&email_token=ACWFSF2N5U7LJ4YT5YS7SD3P3XUJZA5CNFSM4H2WMYE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3CXNQA, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWFSF6QH6NZDNDPBANWH43P3XUJZANCNFSM4H2WMYEQ .
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.dart
FAILURE: 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
可以直接 flutter run 不过要翻墙
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
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'.
FAILURE: 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'.
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