-
Notifications
You must be signed in to change notification settings - Fork 104
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
该项目直接运行flutter run 是否可以启动? #1
Comments
看着好像是那些文件没法下载,你开上vpn试试
onions <[email protected]> 于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
<#1?email_source=notifications&email_token=ACWFSF2N5U7LJ4YT5YS7SD3P3XUJZA5CNFSM4H2WMYE2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3CXNQA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWFSF6QH6NZDNDPBANWH43P3XUJZANCNFSM4H2WMYEQ>
.
|
解决方法参照2d-inc/developer_quest/issues/142,在 pubspec.yaml 里更改 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 :-)
|
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'.
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'.
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
The text was updated successfully, but these errors were encountered: