Repository: flutter
Issue: [camera] "CAMERA_DISCONNECTED (2): Camera service is currently unavailable" when switching cameras
Labels: e: device-specific,platform-android,p: camera,package,P2,team-android,triaged-android

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

This issue is reproduced in the plugin example and also in my app on a Google Nexus 6P device (Android 10 LineageOS ROM) 
https://github.com/flutter/plugins/blob/master/packages/camera/camera/example/lib/main.dart

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Run the example, give all permission
2. Switch the front and rear cameras slowly. The most important thing is to make long intervals between switching (more than 20-30 seconds). You can also minimize the app window.

**Expected results:** <!-- what did you want to see? -->
Switching cameras must be error-free.

**Actual results:** <!-- what did you see? -->
`CameraException` occurs:
```
[   +1 ms] I/CameraManagerGlobal( 1705): Connecting to camera service
[   +2 ms] E/CameraManagerGlobal( 1705): Camera service is unavailable
[  +21 ms] I/flutter ( 1705): Error: CameraAccess
[        ] I/flutter ( 1705): Error Message: CAMERA_DISCONNECTED (2): Camera service is currently unavailable
```

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue.
-->

```
[  +67 ms] executing: uname -m
[  +34 ms] Exit code 0 from: uname -m
[        ] x86_64
[   +5 ms] executing: [/home/user/dev/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[   +7 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] executing: [/home/user/dev/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[  +24 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] 2.5.3
[  +10 ms] executing: [/home/user/dev/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [/home/user/dev/flutter/] git ls-remote --get-url origin
[   +6 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +91 ms] executing: [/home/user/dev/flutter/] git rev-parse --abbrev-ref HEAD
[   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +53 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +48 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb devices -l
[  +42 ms] List of devices attached
           8XV5T15A20001445       device usb:1-3 product:angler model:Nexus_6P device:angler transport_id:1
[   +8 ms] /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 shell getprop
[ +117 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[   +1 ms] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[   +3 ms] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +101 ms] Skipping pub get: version match.
[  +21 ms] Found plugin camera_web at /home/user/.pub-cache/hosted/pub.dartlang.org/camera_web-0.2.1+1/
[  +14 ms] Found plugin flutter_plugin_android_lifecycle at /home/user/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.4/
[   +6 ms] Found plugin path_provider at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.5/
[   +1 ms] Found plugin path_provider_linux at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.0/
[   +1 ms] Found plugin path_provider_macos at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.2/
[   +3 ms] Found plugin path_provider_windows at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.3/
[  +13 ms] Found plugin video_player at /home/user/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.5/
[   +2 ms] Found plugin video_player_web at /home/user/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.4/
[   +5 ms] Found plugin camera at /home/user/data/git/plugins/packages/camera/camera/
[  +12 ms] Found plugin integration_test at /home/user/dev/flutter/packages/integration_test/
[ +166 ms] Found plugin camera_web at /home/user/.pub-cache/hosted/pub.dartlang.org/camera_web-0.2.1+1/
[   +6 ms] Found plugin flutter_plugin_android_lifecycle at /home/user/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-2.0.4/
[   +3 ms] Found plugin path_provider at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.5/
[   +1 ms] Found plugin path_provider_linux at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.1.0/
[        ] Found plugin path_provider_macos at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.2/
[   +1 ms] Found plugin path_provider_windows at /home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.3/
[   +7 ms] Found plugin video_player at /home/user/.pub-cache/hosted/pub.dartlang.org/video_player-2.2.5/
[   +1 ms] Found plugin video_player_web at /home/user/.pub-cache/hosted/pub.dartlang.org/video_player_web-2.0.4/
[   +2 ms] Found plugin camera at /home/user/data/git/plugins/packages/camera/camera/
[   +6 ms] Found plugin integration_test at /home/user/dev/flutter/packages/integration_test/
[   +6 ms] Generating /home/user/data/git/plugins/packages/camera/camera/example/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +41 ms] ro.hardware = angler
[        ] ro.build.characteristics = nosdcard
[  +38 ms] Initializing file store
[   +9 ms] Skipping target: gen_localizations
[   +3 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[   +1 ms] complete
[   +5 ms] Launching lib/main.dart on Nexus 6P in debug mode...
[   +5 ms] /home/user/dev/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/user/dev/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/user/dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true --output-dill /tmp/flutter_tools.SVUSDA/flutter_tool.EIWPVQ/app.dill --packages /home/user/data/git/plugins/packages/camera/camera/example/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/c075001b96339384a97db4862b8ab8db.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[   +6 ms] executing: /home/user/dev/Android/sdk/build-tools/30.0.3/aapt dump xmltree /home/user/data/git/plugins/packages/camera/camera/example/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[   +7 ms] Exit code 0 from: /home/user/dev/Android/sdk/build-tools/30.0.3/aapt dump xmltree /home/user/data/git/plugins/packages/camera/camera/example/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="io.flutter.plugins.cameraexample" (Raw: "io.flutter.plugins.cameraexample")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-feature (line=11)
                 A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera")
                 A: android:required(0x0101028e)=(type 0x12)0xffffffff
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.FLASHLIGHT" (Raw: "android.permission.FLASHLIGHT")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")
               E: uses-permission (line=19)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
               E: application (line=21)
                 A: android:label(0x01010001)="camera_example" (Raw: "camera_example")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=26)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="io.flutter.embedding.android.FlutterActivity" (Raw: "io.flutter.embedding.android.FlutterActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x24b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=33)
                     E: action (line=34)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=36)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=40)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +7 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 shell -x logcat -v time -t 1
[   +6 ms] <- compile package:camera_example/main.dart
[  +88 ms] --------- beginning of main
           10-27 11:18:28.558 I/nanohub (  924): osLog: [AR_CHRE] IDLE => ON
[  +15 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb version
[   +6 ms] Android Debug Bridge version 1.0.41
           Version 31.0.3-7562133
           Installed as /home/user/dev/Android/sdk/platform-tools/adb
[   +2 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb start-server
[   +8 ms] Building APK
[  +16 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] Using gradle from /home/user/data/git/plugins/packages/camera/camera/example/android/gradlew.
[  +22 ms] executing: /home/user/dev/Android/android-studio/jre/bin/java -version
[ +122 ms] Exit code 0 from: /home/user/dev/Android/android-studio/jre/bin/java -version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[   +1 ms] executing: /home/user/dev/Android/android-studio/jre/bin/java -version
[ +111 ms] Exit code 0 from: /home/user/dev/Android/android-studio/jre/bin/java -version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[   +1 ms] executing: /home/user/dev/Android/android-studio/jre/bin/java -version
[  +87 ms] Exit code 0 from: /home/user/dev/Android/android-studio/jre/bin/java -version
[        ] openjdk version "11.0.10" 2021-01-19
           OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
           OpenJDK 64-Bit Server VM (build 11.0.10+0-b96-7249189, mixed mode)
[   +3 ms] executing: [/home/user/data/git/plugins/packages/camera/camera/example/android/] /home/user/data/git/plugins/packages/camera/camera/example/android/gradlew -Pverbose=true -Ptarget-platform=android-arm64 -Ptarget=/home/user/data/git/plugins/packages/camera/camera/example/lib/main.dart -Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+3280 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +67 ms] executing: uname -m
[        ] [  +34 ms] Exit code 0 from: uname -m
[        ] [        ] x86_64
[        ] [   +6 ms] executing: [/home/user/dev/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [   +6 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [        ] executing: [/home/user/dev/flutter/] git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [  +12 ms] Exit code 0 from: git tag --points-at 18116933e77adc82f80866c928266a5b4f1ed645
[        ] [        ] 2.5.3
[        ] [   +9 ms] executing: [/home/user/dev/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +6 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [/home/user/dev/flutter/] git ls-remote --get-url origin
[        ] [   +5 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +59 ms] executing: [/home/user/dev/flutter/] git rev-parse --abbrev-ref HEAD
[        ] [   +5 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +49 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [  +92 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] [   +1 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] [        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[        ] [  +28 ms] Initializing file store
[        ] [  +16 ms] Skipping target: gen_localizations
[        ] [  +15 ms] Skipping target: gen_dart_plugin_registrant
[        ] [   +1 ms] kernel_snapshot: Starting due to {}
[        ] [  +15 ms] /home/user/dev/flutter/bin/cache/dart-sdk/bin/dart --disable-dart-dev /home/user/dev/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root /home/user/dev/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter --no-print-incremental-dependencies -DFLUTTER_WEB_AUTO_DETECT=true -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --no-link-platform --packages /home/user/data/git/plugins/packages/camera/camera/example/.dart_tool/package_config.json --output-dill /home/user/data/git/plugins/packages/camera/camera/example/.dart_tool/flutter_build/27afc02192df3484962cf2098a9dbdf4/app.dill --depfile /home/user/data/git/plugins/packages/camera/camera/example/.dart_tool/flutter_build/27afc02192df3484962cf2098a9dbdf4/kernel_snapshot.d package:camera_example/main.dart
[+8582 ms] [+9886 ms] kernel_snapshot: Complete
[ +499 ms] [ +466 ms] debug_android_application: Starting due to {}
[ +399 ms] [ +473 ms] debug_android_application: Complete
[ +600 ms] [ +517 ms] Persisting file store
[        ] [   +7 ms] Done persisting file store
[        ] [   +6 ms] build succeeded.
[        ] [  +10 ms] "flutter assemble" took 11 559ms.
[        ] [   +4 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +197 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[        ] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :camera:preBuild UP-TO-DATE
[        ] > Task :camera:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:preBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugAidl NO-SOURCE
[        ] > Task :camera:compileDebugAidl NO-SOURCE
[        ] > Task :integration_test:preBuild UP-TO-DATE
[        ] > Task :integration_test:preDebugBuild UP-TO-DATE
[        ] > Task :integration_test:compileDebugAidl NO-SOURCE
[        ] > Task :path_provider:preBuild UP-TO-DATE
[        ] > Task :path_provider:preDebugBuild UP-TO-DATE
[        ] > Task :path_provider:compileDebugAidl NO-SOURCE
[        ] > Task :video_player:preBuild UP-TO-DATE
[        ] > Task :video_player:preDebugBuild UP-TO-DATE
[        ] > Task :camera:packageDebugRenderscript NO-SOURCE
[        ] > Task :video_player:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugRenderscript NO-SOURCE
[        ] > Task :integration_test:packageDebugRenderscript NO-SOURCE
[        ] > Task :path_provider:packageDebugRenderscript NO-SOURCE
[        ] > Task :video_player:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :camera:checkDebugManifest UP-TO-DATE
[        ] > Task :camera:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :camera:generateDebugResValues UP-TO-DATE
[        ] > Task :camera:compileDebugRenderscript NO-SOURCE
[        ] > Task :camera:generateDebugResources UP-TO-DATE
[        ] > Task :camera:packageDebugResources UP-TO-DATE
[        ] > Task :camera:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :camera:processDebugManifest UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugResValues UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugRenderscript NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:checkDebugManifest UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:processDebugManifest UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugRFile UP-TO-DATE
[        ] > Task :camera:generateDebugRFile UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:javaPreCompileDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :camera:javaPreCompileDebug UP-TO-DATE
[  +92 ms] > Task :camera:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :camera:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :integration_test:checkDebugManifest UP-TO-DATE
[        ] > Task :integration_test:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :integration_test:compileDebugRenderscript NO-SOURCE
[        ] > Task :integration_test:generateDebugResValues UP-TO-DATE
[        ] > Task :integration_test:generateDebugResources UP-TO-DATE
[        ] > Task :integration_test:packageDebugResources UP-TO-DATE
[        ] > Task :integration_test:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :integration_test:processDebugManifest UP-TO-DATE
[        ] > Task :integration_test:generateDebugRFile UP-TO-DATE
[        ] > Task :integration_test:javaPreCompileDebug UP-TO-DATE
[        ] > Task :integration_test:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :integration_test:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :path_provider:compileDebugRenderscript NO-SOURCE
[        ] > Task :path_provider:checkDebugManifest UP-TO-DATE
[        ] > Task :path_provider:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :path_provider:generateDebugResValues UP-TO-DATE
[        ] > Task :path_provider:generateDebugResources UP-TO-DATE
[        ] > Task :path_provider:packageDebugResources UP-TO-DATE
[        ] > Task :path_provider:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :path_provider:processDebugManifest UP-TO-DATE
[        ] > Task :path_provider:generateDebugRFile UP-TO-DATE
[        ] > Task :path_provider:javaPreCompileDebug UP-TO-DATE
[        ] > Task :path_provider:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :path_provider:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :video_player:checkDebugManifest UP-TO-DATE
[        ] > Task :video_player:compileDebugRenderscript NO-SOURCE
[        ] > Task :video_player:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :video_player:generateDebugResValues UP-TO-DATE
[        ] > Task :video_player:generateDebugResources UP-TO-DATE
[        ] > Task :video_player:packageDebugResources UP-TO-DATE
[        ] > Task :video_player:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :video_player:processDebugManifest UP-TO-DATE
[        ] > Task :video_player:generateDebugRFile UP-TO-DATE
[        ] > Task :video_player:javaPreCompileDebug UP-TO-DATE
[        ] > Task :video_player:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :video_player:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :app:javaPreCompileDebug UP-TO-DATE
[        ] > Task :app:cleanMergeDebugAssets
[        ] > Task :app:mergeDebugShaders UP-TO-DATE
[        ] > Task :app:compileDebugShaders UP-TO-DATE
[        ] > Task :app:generateDebugAssets UP-TO-DATE
[        ] > Task :camera:mergeDebugShaders UP-TO-DATE
[        ] > Task :camera:compileDebugShaders UP-TO-DATE
[        ] > Task :camera:generateDebugAssets UP-TO-DATE
[        ] > Task :camera:packageDebugAssets UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugShaders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugShaders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:packageDebugAssets UP-TO-DATE
[        ] > Task :integration_test:mergeDebugShaders UP-TO-DATE
[        ] > Task :integration_test:compileDebugShaders UP-TO-DATE
[        ] > Task :integration_test:generateDebugAssets UP-TO-DATE
[        ] > Task :integration_test:packageDebugAssets UP-TO-DATE
[        ] > Task :path_provider:mergeDebugShaders UP-TO-DATE
[        ] > Task :path_provider:compileDebugShaders UP-TO-DATE
[        ] > Task :path_provider:generateDebugAssets UP-TO-DATE
[        ] > Task :path_provider:packageDebugAssets UP-TO-DATE
[        ] > Task :video_player:mergeDebugShaders UP-TO-DATE
[        ] > Task :video_player:compileDebugShaders UP-TO-DATE
[        ] > Task :video_player:generateDebugAssets UP-TO-DATE
[        ] > Task :video_player:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +180 ms] > Task :app:copyFlutterAssetsDebug
[ +101 ms] > Task :app:mainApkListPersistenceDebug UP-TO-DATE
[        ] > Task :app:generateDebugResValues UP-TO-DATE
[        ] > Task :app:generateDebugResources UP-TO-DATE
[        ] > Task :app:mergeDebugResources UP-TO-DATE
[        ] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
[        ] > Task :app:processDebugManifest UP-TO-DATE
[        ] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :camera:processDebugJavaRes NO-SOURCE
[        ] > Task :camera:bundleLibResDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibResDebug UP-TO-DATE
[        ] > Task :integration_test:processDebugJavaRes NO-SOURCE
[        ] > Task :integration_test:bundleLibResDebug UP-TO-DATE
[        ] > Task :path_provider:processDebugJavaRes NO-SOURCE
[        ] > Task :path_provider:bundleLibResDebug UP-TO-DATE
[        ] > Task :video_player:processDebugJavaRes NO-SOURCE
[        ] > Task :video_player:bundleLibResDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJavaResource UP-TO-DATE
[  +95 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE
[        ] > Task :app:checkDebugDuplicateClasses UP-TO-DATE
[        ] > Task :app:mergeExtDexDebug UP-TO-DATE
[        ] > Task :path_provider:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :path_provider:createFullJarDebug UP-TO-DATE
[        ] > Task :video_player:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :video_player:createFullJarDebug UP-TO-DATE
[        ] > Task :integration_test:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :integration_test:createFullJarDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:createFullJarDebug UP-TO-DATE
[        ] > Task :camera:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :camera:createFullJarDebug UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[        ] > Task :app:mergeLibDexDebug UP-TO-DATE
[        ] > Task :app:mergeProjectDexDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :camera:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :camera:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :camera:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :camera:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :integration_test:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :integration_test:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :integration_test:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :integration_test:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :path_provider:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :path_provider:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :path_provider:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :path_provider:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :video_player:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :video_player:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :video_player:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :video_player:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :app:packageDebug UP-TO-DATE
[ +196 ms] > Task :app:assembleDebug
[        ] > Task :camera:extractDebugAnnotations UP-TO-DATE
[        ] > Task :camera:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :camera:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :camera:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :camera:mergeDebugJavaResource UP-TO-DATE
[  +98 ms] > Task :camera:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :camera:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :camera:bundleDebugAar UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:extractDebugAnnotations UP-TO-DATE
[        ] > Task :camera:mergeDebugResources UP-TO-DATE
[        ] > Task :camera:compileDebugSources UP-TO-DATE
[        ] > Task :camera:assembleDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:bundleDebugAar UP-TO-DATE
[        ] > Task :integration_test:extractDebugAnnotations UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:mergeDebugResources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugSources UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:assembleDebug UP-TO-DATE
[        ] > Task :integration_test:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :integration_test:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :integration_test:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :integration_test:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :integration_test:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :integration_test:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :integration_test:bundleDebugAar UP-TO-DATE
[        ] > Task :integration_test:compileDebugSources UP-TO-DATE
[        ] > Task :integration_test:assembleDebug UP-TO-DATE
[        ] > Task :path_provider:extractDebugAnnotations UP-TO-DATE
[        ] > Task :path_provider:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :path_provider:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :path_provider:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :path_provider:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :path_provider:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :path_provider:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :path_provider:bundleDebugAar UP-TO-DATE
[        ] > Task :video_player:extractDebugAnnotations UP-TO-DATE
[        ] > Task :path_provider:mergeDebugResources UP-TO-DATE
[        ] > Task :path_provider:compileDebugSources UP-TO-DATE
[        ] > Task :path_provider:assembleDebug UP-TO-DATE
[        ] > Task :video_player:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :video_player:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :video_player:prepareLintJarForPublish UP-TO-DATE
[  +45 ms] > Task :video_player:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :video_player:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :video_player:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :video_player:bundleDebugAar UP-TO-DATE
[        ] > Task :video_player:mergeDebugResources UP-TO-DATE
[        ] > Task :video_player:compileDebugSources UP-TO-DATE
[        ] > Task :video_player:assembleDebug UP-TO-DATE
[        ] BUILD SUCCESSFUL in 14s
[        ] 175 actionable tasks: 5 executed, 170 up-to-date
[ +348 ms] Running Gradle task 'assembleDebug'... (completed in 15,1s)
[ +270 ms] calculateSha: LocalDirectory: '/home/user/data/git/plugins/packages/camera/camera/example/build/app/outputs/flutter-apk'/app.apk
[ +640 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +2 ms] executing: /home/user/dev/Android/sdk/build-tools/30.0.3/aapt dump xmltree /home/user/data/git/plugins/packages/camera/camera/example/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[  +10 ms] Exit code 0 from: /home/user/dev/Android/sdk/build-tools/30.0.3/aapt dump xmltree /home/user/data/git/plugins/packages/camera/camera/example/build/app/outputs/flutter-apk/app.apk AndroidManifest.xml
[        ] N: android=http://schemas.android.com/apk/res/android
             E: manifest (line=2)
               A: android:versionCode(0x0101021b)=(type 0x10)0x1
               A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
               A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1d
               A: android:compileSdkVersionCodename(0x01010573)="10" (Raw: "10")
               A: package="io.flutter.plugins.cameraexample" (Raw: "io.flutter.plugins.cameraexample")
               A: platformBuildVersionCode=(type 0x10)0x1d
               A: platformBuildVersionName=(type 0x10)0xa
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-feature (line=11)
                 A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera")
                 A: android:required(0x0101028e)=(type 0x12)0xffffffff
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.FLASHLIGHT" (Raw: "android.permission.FLASHLIGHT")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.RECORD_AUDIO" (Raw: "android.permission.RECORD_AUDIO")
               E: uses-permission (line=19)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw: "android.permission.ACCESS_NETWORK_STATE")
               E: application (line=21)
                 A: android:label(0x01010001)="camera_example" (Raw: "camera_example")
                 A: android:icon(0x01010002)=@0x7f080000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw: "androidx.core.app.CoreComponentFactory")
                 E: activity (line=26)
                   A: android:theme(0x01010000)=@0x7f0a0000
                   A: android:name(0x01010003)="io.flutter.embedding.android.FlutterActivity" (Raw: "io.flutter.embedding.android.FlutterActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x24b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=33)
                     E: action (line=34)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=36)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
                 E: meta-data (line=40)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +1 ms] Stopping app 'app.apk' on Nexus 6P.
[        ] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 shell am force-stop io.flutter.plugins.cameraexample
[ +113 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 shell pm list packages io.flutter.plugins.cameraexample
[ +108 ms] package:io.flutter.plugins.cameraexample
[   +3 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 shell cat /data/local/tmp/sky.io.flutter.plugins.cameraexample.sha1
[  +71 ms] e63c00ceba853e521f06a14aac963851b814b453
[   +1 ms] Latest build already installed.
[        ] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 shell -x logcat -v time -t 1
[  +68 ms] --------- beginning of main
           10-27 11:18:45.080 D/RegisteredNfcFServicesCache( 4719): Service unchanged, not updating
[  +14 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode true --ez verify-entry-points true io.flutter.plugins.cameraexample/io.flutter.embedding.android.FlutterActivity
[ +117 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=io.flutter.plugins.cameraexample/io.flutter.embedding.android.FlutterActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +955 ms] Observatory URL on device: http://127.0.0.1:48990/IN8X9JubWJo=/
[   +2 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 forward tcp:0 tcp:48990
[  +14 ms] 35181
[        ] Forwarded host port 35181 to device port 48990 for Observatory
[  +14 ms] Caching compiled dill
[  +55 ms] Connecting to service protocol: http://127.0.0.1:35181/IN8X9JubWJo=/
[ +490 ms] Launching a Dart Developer Service (DDS) instance at http://127.0.0.1:0, connecting to VM service at http://127.0.0.1:35181/IN8X9JubWJo=/.
[ +373 ms] DDS is listening at http://127.0.0.1:35511/wXDvoxcBmr8=/.
[  +70 ms] Successfully connected to service protocol: http://127.0.0.1:35181/IN8X9JubWJo=/
[ +128 ms] DevFS: Creating new filesystem on the device (null)
[  +54 ms] DevFS: Created new filesystem on the device (file:///data/user/0/io.flutter.plugins.cameraexample/code_cache/exampleHBNZEW/example/)
[   +4 ms] Updating assets
[ +118 ms] Syncing files to device Nexus 6P...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +1 ms] <- recompile package:camera_example/main.dart 1992b2c4-b7c9-41b9-81e9-c2923e1b2ec8
[        ] <- 1992b2c4-b7c9-41b9-81e9-c2923e1b2ec8
[  +73 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device Nexus 6P... (completed in 77ms)
[        ] Synced 0.0MB.
[   +1 ms] <- accept
[   +4 ms] Connected to _flutterView/0x7d7b39ea20.
[   +3 ms] Flutter run key commands.
[   +1 ms] 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 Nexus 6P is available at: http://127.0.0.1:35511/wXDvoxcBmr8=/
[ +146 ms] Activating Dart DevTools...
[+1783 ms] W/Gralloc3( 1705): mapper 3.x is not supported
[+1941 ms] Activating Dart DevTools... (completed in 3,7s)
[ +692 ms] The Flutter DevTools debugger and profiler on Nexus 6P is available at: http://127.0.0.1:9102?uri=http://127.0.0.1:35511/wXDvoxcBmr8=/
[ +633 ms] I/Camera  ( 1705): startPreview
[  +43 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[   +1 ms] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[        ] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[   +1 ms] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[   +1 ms] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[   +1 ms] W/Gralloc3( 1705): allocator 3.x is not supported
[   +3 ms] I/Gralloc2( 1705): Adding additional valid usage bits: 0x2002000
[ +337 ms] I/Adreno  ( 1705): Invalid colorspace 1
[+1058 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 4 lines
[   +1 ms] I/Adreno  ( 1705): Invalid colorspace 1
[        ] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +223 ms] I/Camera  ( 1705): open | onClosed
[  +40 ms] I/Camera  ( 1705): close
[  +82 ms] I/Camera  ( 1705): startPreview
[  +30 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[   +1 ms] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[        ] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[        ] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[ +243 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +32 ms] I/Adreno  ( 1705): Invalid colorspace 1
[ +973 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 3 lines
[   +2 ms] I/Adreno  ( 1705): Invalid colorspace 1
[ +167 ms] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +202 ms] I/Camera  ( 1705): open | onClosed
[        ] W/s.cameraexampl( 1705): Long monitor contention with owner main (1705) at boolean android.os.BinderProxy.transactNative(int, android.os.Parcel, android.os.Parcel, int)(BinderProxy.java:-2) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureStarted(android.hardware.camera2.impl.CaptureResultExtras, long) for 192ms
[   +3 ms] I/Camera  ( 1705): close
[  +91 ms] I/Camera  ( 1705): startPreview
[  +36 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[        ] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[        ] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[   +5 ms] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[ +214 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +31 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +33 ms] I/Adreno  ( 1705): Invalid colorspace 1
[ +792 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 2 lines
[        ] I/Adreno  ( 1705): Invalid colorspace 1
[        ] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +230 ms] I/Camera  ( 1705): open | onClosed
[  +40 ms] I/Camera  ( 1705): close
[  +77 ms] I/Camera  ( 1705): startPreview
[  +37 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[   +1 ms] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[   +1 ms] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[        ] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[        ] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[ +253 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +14 ms] I/Adreno  ( 1705): Invalid colorspace 1
[ +788 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 3 lines
[        ] I/Adreno  ( 1705): Invalid colorspace 1
[ +772 ms] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +335 ms] I/Camera  ( 1705): open | onClosed
[+10996 ms] I/Camera  ( 1705): close
[ +127 ms] I/Camera  ( 1705): startPreview
[  +43 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[   +1 ms] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[        ] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[        ] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[ +267 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +33 ms] I/Adreno  ( 1705): Invalid colorspace 1
[+1208 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 3 lines
[   +3 ms] I/Adreno  ( 1705): Invalid colorspace 1
[ +158 ms] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +193 ms] I/Camera  ( 1705): open | onClosed
[   +5 ms] I/Camera  ( 1705): close
[ +100 ms] I/Camera  ( 1705): startPreview
[  +34 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[        ] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[        ] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[        ] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[   +1 ms] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[ +207 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +33 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +50 ms] I/Adreno  ( 1705): Invalid colorspace 1
[+1080 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 2 lines
[        ] I/Adreno  ( 1705): Invalid colorspace 1
[ +703 ms] W/System  ( 1705): A resource failed to call release.
[ +371 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) FinalizerDaemon identical 2 lines
[        ] W/System  ( 1705): A resource failed to call release.
[+11520 ms] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +229 ms] I/Camera  ( 1705): open | onClosed
[   +5 ms] I/Camera  ( 1705): close
[ +109 ms] I/Camera  ( 1705): startPreview
[  +38 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[        ] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[   +3 ms] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[        ] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[ +248 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +29 ms] I/Adreno  ( 1705): Invalid colorspace 1
[+2295 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 3 lines
[   +3 ms] I/Adreno  ( 1705): Invalid colorspace 1
[ +555 ms] I/Adreno  ( 1705): Invalid colorspace 1
[+1543 ms] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +262 ms] I/Camera  ( 1705): open | onClosed
[   +9 ms] I/Camera  ( 1705): close
[  +91 ms] I/Camera  ( 1705): startPreview
[  +42 ms] I/Camera  ( 1705): Updating builder settings
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureLockFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposurePointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ZoomLevelFeature
[        ] D/Camera  ( 1705): Updating builder with feature: AutoFocusFeature
[        ] D/Camera  ( 1705): Updating builder with feature: NoiseReductionFeature
[   +2 ms] I/Camera  ( 1705): updateNoiseReduction | currentSetting: fast
[        ] D/Camera  ( 1705): Updating builder with feature: FocusPointFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ResolutionFeature
[        ] D/Camera  ( 1705): Updating builder with feature: SensorOrientationFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FlashFeature
[        ] D/Camera  ( 1705): Updating builder with feature: ExposureOffsetFeature
[        ] D/Camera  ( 1705): Updating builder with feature: FpsRangeFeature
[ +208 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +34 ms] I/Adreno  ( 1705): Invalid colorspace 1
[  +33 ms] I/Adreno  ( 1705): Invalid colorspace 1
[ +640 ms] I/chatty  ( 1705): uid=10305(io.flutter.plugins.cameraexample) 1.raster identical 2 lines
[   +3 ms] I/Adreno  ( 1705): Invalid colorspace 1
[+11845 ms] I/Camera  ( 1705): dispose
[        ] I/Camera  ( 1705): close
[        ] I/Camera  ( 1705): closeCaptureSession
[ +821 ms] I/Camera  ( 1705): open | onClosed
[        ] W/s.cameraexampl( 1705): Long monitor contention with owner main (1705) at boolean android.os.BinderProxy.transactNative(int, android.os.Parcel, android.os.Parcel, int)(BinderProxy.java:-2) waiters=0 in void android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onDeviceError(int, android.hardware.camera2.impl.CaptureResultExtras) for 784ms
[   +1 ms] I/Camera  ( 1705): close
[   +1 ms] I/CameraManagerGlobal( 1705): Connecting to camera service
[   +2 ms] E/CameraManagerGlobal( 1705): Camera service is unavailable
[  +21 ms] I/flutter ( 1705): Error: CameraAccess
[        ] I/flutter ( 1705): Error Message: CAMERA_DISCONNECTED (2): Camera service is currently unavailable
[+4922 ms] Application finished.
[   +3 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 forward --list
[   +7 ms] Exit code 0 from: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 forward --list
[        ] 8XV5T15A20001445 tcp:35181 tcp:48990
[   +1 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb -s 8XV5T15A20001445 forward --remove tcp:35181
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
Analyzing example...                                                    
No issues found! (ran in 2.1s)
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
[✓] Flutter (Channel stable, 2.5.3, on Fedora 34 (Workstation Edition) 5.14.12-200.fc34.x86_64, locale ru_RU.UTF-8)
    • Flutter version 2.5.3 at /home/user/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (12 дней назад), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/user/dev/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.

[✓] Chrome - develop for the web
    • CHROME_EXECUTABLE = /usr/bin/chromium-freeworld

[✓] Linux toolchain - develop for Linux desktop
    • clang version 12.0.1 (Fedora 12.0.1-1.fc34)
    • cmake version 3.20.5
    • ninja version 1.10.2
    • pkg-config version 1.7.3

[✓] Android Studio (version 2020.3)
    • Android Studio at /home/user/dev/Android/android-studio
    • Flutter plugin version 61.2.2
    • Dart plugin version 203.8430
    • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] IntelliJ IDEA Community Edition (version 2021.2)
    • IntelliJ at /home/user/bin/intellij-idea
    • 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

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Fedora 34 (Workstation Edition) 5.14.12-200.fc34.x86_64
    • Chrome (web)    • chrome • web-javascript • Chromium 94.0.4606.81
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->