Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

can not run gallery #360

Closed
font-size opened this issue Oct 26, 2020 · 5 comments
Closed

can not run gallery #360

font-size opened this issue Oct 26, 2020 · 5 comments

Comments

@font-size
Copy link

step1: cloned gallery in my computer
step2: open this project with Android Studio
step3: run "flutter channel master" and "flutter upgrade"
step: run gallery failed
I'm puzzled

Android Studio say:
lib/layout/adaptive.dart:18:55: Error: Getter not found: 'm'.
return getWindowType(context) == AdaptiveWindowType.m;
^
FAILURE: Build failed with an exception.

  • Where:
    Script 'E:\flutter\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 900

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'E:\flutter\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 31s
Exception: Gradle task assembleDebug failed with exit code 1

who have any idea? very thanks

@font-size font-size added the enhancement New feature or request label Oct 26, 2020
@font-size font-size changed the title cant not run this project can not run gallery Oct 26, 2020
@perclasson
Copy link
Contributor

Can you put your flutter doctor -v here?

@perclasson perclasson removed the enhancement New feature or request label Oct 26, 2020
@font-size
Copy link
Author

font-size commented Oct 27, 2020

Can you put your flutter doctor -v here?

I run the code aggin flutter channel master and flutter upgrade
flutter doctor -v here

`E:\flutter\flutter_demo\gallery> flutter doctor -v
[√] Flutter (Channel master, 1.24.0-4.0.pre.80, on Microsoft Windows [Version 10.0.17763.1282], locale zh-CN)
• Flutter version 1.24.0-4.0.pre.80 at E:\flutter\flutter
• Framework revision 19ce7a86af (12 minutes ago), 2020-10-26 18:56:34 -0700
• Engine revision 1857470267
• Dart version 2.11.0 (build 2.11.0-260.0.dev)
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\flex\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: E:\flutter\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.

[√] Android Studio (version 4.0)
• Android Studio at E:\flutter\android-studio
• Flutter plugin version 49.0.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (1 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)

• No issues found!
`

I still can't run gallery, same error in Android Studio , it confuse me a few days

@guidezpl
Copy link
Member

#364 may fix this

@font-size
Copy link
Author

wow, it works, very thinks the two guys!

@font-size font-size reopened this Oct 28, 2020
@perclasson
Copy link
Contributor

Great thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants