-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Description
Steps to Reproduce
- Attach a Quest 2 VR headset to your computer and enable developer mode such that it shows up in
adb devicesandflutter devices - Create a new Flutter project from the CLI or your IDE of choice (I've tried both AS and VSC)
- Deploy and execute the Flutter app from Android Studio or VS Code using either Run or Debug, targeting the Quest 2 device
Expected results: I see the Flutter counter app running on my Quest 2 and am able to use the Quest controllers to interact with it. If I'm debugging, I can set breakpoints and they'll be hit, etc.
Actual results: I see three pulsing white dots on a black background, mocking me in their eternal progress indication.
If I perform the equivalent steps for a native Android app, i.e. create a new Android project and deploy the app from Android Studio to my Quest 2, it runs and I'm able to debug it as expected.
If I manually deploy the Flutter app's apk, then I can see the Flutter app run on my Quest 2 and interact with it using the controllers:
$ flutter build apk
$ adb install path/to/flutter_app_name.apk
$ adb shell monkey -p com.domain.flutter_app_name 1It's only when deploying my Flutter app from AS or VSC to enable debugging that there is trouble. I've tried it on both the latest beta and the latest stable, getting the same results. I'm trying this from my Apple M1 Max although it's my understanding that the same thing happens using 64-bit Intel processors running Windows as well.
Logs
# `flutter run --verbose` output flagged by GitHub as too long; `flutter run` output follows:
➜ flutter run
Launching lib/main.dart on Quest 2 in debug mode...
Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01
Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01
Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01
Running Gradle task 'assembleDebug'... 2,432ms
✓ Built build/app/outputs/flutter-apk/app-debug.apk.
Syncing files to device Quest 2... 51ms
Flutter run key commands.
r Hot reload. 🔥🔥🔥
R Hot restart.
h List all available interactive commands.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
💪 Running with sound null safety 💪
An Observatory debugger and profiler on Quest 2 is available at:
http://127.0.0.1:58140/FtQBh0Rz4-M=/
The Flutter DevTools debugger and profiler on Quest 2 is available at:
http://127.0.0.1:9103?uri=http://127.0.0.1:58140/FtQBh0Rz4-M=/
➜ flutter analyze
Analyzing flutter_application_7...
No issues found! (ran in 1.6s)
➜ flutter doctor -v
[✓] Flutter (Channel stable, 2.10.5, on macOS 12.3.1 21E258 darwin-arm, locale
en-US)
• Flutter version 2.10.5 at /Users/csells/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5464c5bac7 (3 weeks ago), 2022-04-18 09:55:37 -0700
• Engine revision 57d3bac3dd
• Dart version 2.16.2
• DevTools version 2.9.2
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/csells/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
[✓] VS Code (version 1.67.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.40.0
[✓] Connected device (3 available)
• Quest 2 (mobile) • 1WMHH824UW0353 • android-arm64 • Android 10 (API 29)
• macOS (desktop) • macos • darwin-arm64 • macOS 12.3.1 21E258
darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome
101.0.4951.54
[✓] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!