fluttercommunity / fluttercommunity/chewie

Failed to run example on Android

Open
#529 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
Dart
Stars
2.1k
Forks
1.1k
Avg merge
6d 8h
Merged PRs (30d)
6

Description

Hi
i have tried to run github example on Pixel_3a_API_30_x86 but after the build and installation in AVD, the AVD crashed and these errors logged from flutter:
```
Connecting to VM Service at ws://127.0.0.1:40387/d0g-5oINUrQ=/ws
W/example.exampl( 4494): Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (greylist, reflection, allowed)
I/ExoPlayerImpl( 4494): Init c2a1773 [ExoPlayerLib/2.14.1] [generic_x86_arm, sdk_gphone_x86_arm, Google, 30]
I/ExoPlayerImpl( 4494): Init 82b9b48 [ExoPlayerLib/2.14.1] [generic_x86_arm, sdk_gphone_x86_arm, Google, 30]
I/TetheringManager( 4494): registerTetheringEventCallback:com.example.example
I/VideoCapabilities( 4494): Unsupported profile 4 for video/mp4v-es
2
I/OMXClient( 4494): IOmx service obtained
D/SurfaceUtils( 4494): connecting to surface 0xe66579e8, reason connectToSurface
D/SurfaceUtils( 4494): connecting to surface 0xe6654788, reason connectToSurface
I/MediaCodec( 4494): [OMX.android.goldfish.h264.decoder] setting surface generation to 4601857
D/SurfaceUtils( 4494): disconnecting from surface 0xe66579e8, reason connectToSurface(reconnect)
I/MediaCodec( 4494): [OMX.android.goldfish.h264.decoder] setting surface generation to 4601858
D/SurfaceUtils( 4494): connecting to surface 0xe66579e8, reason connectToSurface(reconnect)
D/SurfaceUtils( 4494): disconnecting from surface 0xe6654788, reason connectToSurface(reconnect)
D/SurfaceUtils( 4494): connecting to surface 0xe6654788, reason connectToSurface(reconnect)
2
E/ACodec ( 4494): [OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
2
I/ACodec ( 4494): codec does not support config priority (err -1010)
D/SurfaceUtils( 4494): disconnecting from surface 0xe6654788, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils( 4494): disconnecting from surface 0xe66579e8, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils( 4494): connecting to surface 0xe66579e8, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils( 4494): set up nativeWindow 0xe66579e8 for 1280x720, color 0x13, rotation 0, usage 0x1002900
D/SurfaceUtils( 4494): connecting to surface 0xe6654788, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils( 4494): set up nativeWindow 0xe6654788 for 720x1280, color 0x13, rotation 0, usage 0x1002900
W/Gralloc4( 4494): allocator 3.x is not supported
Error handling 'checkPlatformOverride' custom request: method not available: ext.flutter.platformOverride
Error handling 'checkBrightnessOverride' custom request: method not available: ext.flutter.brightnessOverride
Error handling 'checkIsWidgetCreationTracked' custom request: method not available: ext.flutter.inspector.isWidgetCreationTracked
Error handling 'serviceExtension' custom request: method not available: ext.flutter.inspector.setPubRootDirectories
```

also here is my flutter doctor -v:
```
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
• Flutter version 2.2.3 at /opt/flutter
• Framework revision f4abaa0735 (7 weeks ago), 2021-07-01 12:46:11 -0700
• Engine revision 241c87ad80
• Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/ashkan/Android/Sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2020.3)
• Android Studio at /opt/android-studio
• 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.10+0-b96-7249189)

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

! Doctor found issues in 1 category.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.