Repository: flutter
Issue: [camera] Android  emulator camera throws `CameraAccessException: CAMERA_ERROR (3): The camera device has encountered a serious error` when taking a photo
Labels: c: crash,platform-android,p: camera,package,e: OS-version specific,has reproducible steps,P2,found in release: 2.5,found in release: 2.6,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, only in Android 12 emulator with the latest plugin version.
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. Select the main camera, click the capture button

**Expected results:** <!-- what did you want to see? -->
Taking a photo must be successful 

**Actual results:** <!-- what did you see? -->
Camera crash occurred:
```
[  +73 ms] I/Camera  ( 7120): open | onError
[        ] I/Camera  ( 7120): close
[        ] I/Camera  ( 7120): closeCaptureSession
[  +11 ms] E/CameraCaptureSession( 7120): Session 0: Exception while
stopping repeating: 
[        ] E/CameraCaptureSession( 7120):
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The
camera device has encountered a serious error
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInEr
ror(CameraDeviceImpl.java:2340)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDevic
eImpl.java:1267)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptu
reSessionImpl.java:579)
[        ] E/CameraCaptureSession( 7120):       at
io.flutter.plugins.camera.Camera.closeCaptureSession(Camera.java:1085)
[        ] E/CameraCaptureSession( 7120):       at
io.flutter.plugins.camera.Camera.close(Camera.java:1092)
[        ] E/CameraCaptureSession( 7120):       at
io.flutter.plugins.camera.Camera$1.onError(Camera.java:291)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.notifyError(CameraDeviceI
mpl.java:1738)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.$r8$lambda$KBQCqQRdhVVn7u
HI9Xdha6OqnsU(Unknown Source:0)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl$$ExternalSyntheticLambda0
.accept(Unknown Source:8)
[        ] E/CameraCaptureSession( 7120):       at
com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(Pool
edLambdaImpl.java:278)
[        ] E/CameraCaptureSession( 7120):       at
com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(Pooled
LambdaImpl.java:201)
[        ] E/CameraCaptureSession( 7120):       at
com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.
java:97)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Handler.handleCallback(Handler.java:938)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Handler.dispatchMessage(Handler.java:99)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Looper.loopOnce(Looper.java:201)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Looper.loop(Looper.java:288)
[        ] E/CameraCaptureSession( 7120):       at
android.os.HandlerThread.run(HandlerThread.java:67)
```

<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.
-->

```
[  +74 ms] executing: uname -m
[  +35 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
[  +12 ms] Exit code 0 from: git -c log.showSignature=false log -n 1
--pretty=format:%H
[   +1 ms] 18116933e77adc82f80866c928266a5b4f1ed645
[   +1 ms] executing: [/home/user/dev/flutter/] git tag --points-at
18116933e77adc82f80866c928266a5b4f1ed645
[  +29 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}
[   +5 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
[  +98 ms] executing: [/home/user/dev/flutter/] git rev-parse
--abbrev-ref HEAD
[   +8 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +61 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.
[   +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.
[        ] 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.
[  +65 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb
devices -l
[  +47 ms] List of devices attached
           emulator-5554          device product:sdk_gphone64_x86_64
           model:sdk_gphone64_x86_64 device:emulator64_x86_64_arm64
           transport_id:1
[   +9 ms] /home/user/dev/Android/sdk/platform-tools/adb -s
emulator-5554 shell getprop
[  +42 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not
required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required,
skipping update.
[   +5 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.
[   +5 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.
[ +120 ms] Skipping pub get: version match.
[  +23 ms] Found plugin camera_web at
/home/user/.pub-cache/hosted/pub.dartlang.org/camera_web-0.2.1+1/
[  +17 ms] Found plugin flutter_plugin_android_lifecycle at
/home/user/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android
_lifecycle-2.0.4/
[   +7 ms] Found plugin path_provider at
/home/user/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.5/
[   +2 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/
[   +4 ms] Found plugin path_provider_windows at
/home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-
2.0.3/
[  +18 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
/
[   +4 ms] Found plugin camera at
/home/user/data/git/plugins/packages/camera/camera/
[  +16 ms] Found plugin integration_test at
/home/user/dev/flutter/packages/integration_test/
[ +195 ms] Found plugin camera_web at
/home/user/.pub-cache/hosted/pub.dartlang.org/camera_web-0.2.1+1/
[   +7 ms] Found plugin flutter_plugin_android_lifecycle at
/home/user/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android
_lifecycle-2.0.4/
[   +5 ms] Found plugin path_provider at
/home/user/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.5/
[   +2 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/
[   +2 ms] Found plugin path_provider_windows at
/home/user/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-
2.0.3/
[   +9 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
/
[   +3 ms] Found plugin camera at
/home/user/data/git/plugins/packages/camera/camera/
[   +7 ms] Found plugin integration_test at
/home/user/dev/flutter/packages/integration_test/
[  +26 ms] Generating
/home/user/data/git/plugins/packages/camera/camera/example/android/a
pp/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[  +48 ms] ro.hardware = ranchu
[  +17 ms] Using hardware rendering with device sdk gphone64 x86 64. If
you notice
           graphics artifacts, consider enabling software rendering with
           "--enable-software-rendering".
[  +32 ms] Initializing file store
[  +34 ms] Skipping target: gen_localizations
[   +4 ms] Skipping target: gen_dart_plugin_registrant
[        ] Skipping target: _composite
[   +2 ms] complete
[   +5 ms] Launching lib/main.dart on sdk gphone64 x86 64 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_pat
ched_sdk/ --incremental --target=flutter --debugger-module-names
--experimental-emit-debug-metadata -DFLUTTER_WEB_AUTO_DETECT=true
--output-dill /tmp/flutter_tools.TOYMBW/flutter_tool.OWEFZI/app.dill
--packages
/home/user/data/git/plugins/packages/camera/camera/example/.dart_too
l/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
[   +7 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
[  +41 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_AUD
                 IO" (Raw: "android.permission.RECORD_AUDIO")
               E: uses-permission (line=19)
                 A:
                 android:name(0x01010003)="android.permission.ACCESS_NET
                 WORK_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.androi
                   d.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.M
                       AIN" (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
[  +12 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb
-s emulator-5554 shell -x logcat -v time -t 1
[  +10 ms] <- compile package:camera_example/main.dart
[  +47 ms] --------- beginning of main
           10-30 18:25:00.012 D/EGL_emulation(  739): app_time_stats:
           avg=17467.10ms min=17467.10ms max=17467.10ms count=1
[  +16 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb
version
[   +9 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
[  +74 ms] Building APK
[  +15 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] Using gradle from
/home/user/data/git/plugins/packages/camera/camera/example/android/g
radlew.
[  +23 ms] executing:
/home/user/dev/Android/android-studio/jre/bin/java -version
[ +117 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
[ +107 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
[ +103 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)
[   +2 ms] executing:
[/home/user/data/git/plugins/packages/camera/camera/example/android/
]
/home/user/data/git/plugins/packages/camera/camera/example/android/g
radlew -Pverbose=true -Ptarget-platform=android-x64
-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
[+5005 ms] > Task :app:compileFlutterBuildDebug
[        ] [  +70 ms] executing: uname -m
[        ] [  +35 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
[   +1 ms] [   +5 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
[        ] [   +9 ms] executing: [/home/user/dev/flutter/] git
rev-parse --abbrev-ref --symbolic @{u}
[        ] [   +5 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
[        ] [   +7 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +62 ms] executing: [/home/user/dev/flutter/] git
rev-parse --abbrev-ref HEAD
[        ] [   +7 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +51 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.
[   +1 ms] [        ] 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.
[        ] [   +2 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.
[        ] [  +29 ms] Initializing file store
[        ] [  +94 ms] Done initializing file store
[        ] [  +97 ms] Skipping target: gen_localizations
[        ] [  +26 ms] Skipping target: gen_dart_plugin_registrant
[        ] [ +685 ms] Skipping target: kernel_snapshot
[ +116 ms] [ +566 ms] Skipping target: debug_android_application
[        ] [   +1 ms] Persisting file store
[        ] [  +17 ms] Done persisting file store
[ +100 ms] [  +72 ms] build succeeded.
[        ] [  +13 ms] "flutter assemble" took 1 719ms.
[        ] [   +4 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [   +3 ms] exiting with code 0
[  +97 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 :integration_test:preBuild UP-TO-DATE
[        ] > Task :integration_test:preDebugBuild UP-TO-DATE
[        ] > Task :path_provider:preBuild UP-TO-DATE
[  +96 ms] > Task :path_provider:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_plugin_android_lifecycle:compileDebugAidl
NO-SOURCE
[        ] > Task :camera:compileDebugAidl NO-SOURCE
[        ] > Task :integration_test:compileDebugAidl NO-SOURCE
[        ] > 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
:flutter_plugin_android_lifecycle:packageDebugRenderscript NO-SOURCE
[        ] > Task :integration_test:packageDebugRenderscript NO-SOURCE
[        ] > Task :video_player:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :path_provider:packageDebugRenderscript NO-SOURCE
[        ] > Task :video_player:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :camera:compileDebugRenderscript NO-SOURCE
[        ] > Task :camera:checkDebugManifest UP-TO-DATE
[        ] > Task :camera:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :camera:generateDebugResValues UP-TO-DATE
[        ] > 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
[        ] > 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
[   +1 ms] > Task :integration_test:packageDebugResources UP-TO-DATE
[  +78 ms] > 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:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :video_player:compileDebugRenderscript NO-SOURCE
[        ] > 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
[ +189 ms] > Task :app:copyFlutterAssetsDebug
[        ] > 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
[  +98 ms] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[   +2 ms] > Task :app:processDebugJavaRes NO-SOURCE
[   +8 ms] > 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
[        ] > 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
[  +83 ms] > Task :camera:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :camera:createFullJarDebug UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug 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:transformNativeLibsWithIntermediateJni
LibsForDebug 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:mergeLibDexDebug UP-TO-DATE
[        ] > Task :app:packageDebug UP-TO-DATE
[ +289 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
[        ] > 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:transformClassesAndResourcesWithSyncLi
bJarsForDebug UP-TO-DATE
[        ] > Task
:flutter_plugin_android_lifecycle:transformNativeLibsWithSyncJniLibsForD
ebug 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
[  +88 ms] > 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
[        ] > 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 6s
[        ] 175 actionable tasks: 5 executed, 170 up-to-date
[ +399 ms] Running Gradle task 'assembleDebug'... (completed in 7,1s)
[ +114 ms] calculateSha: LocalDirectory:
'/home/user/data/git/plugins/packages/camera/camera/example/build/ap
p/outputs/flutter-apk'/app.apk
[ +509 ms] ✓  Built build/app/outputs/flutter-apk/app-debug.apk.
[   +3 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
[   +8 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_AUD
                 IO" (Raw: "android.permission.RECORD_AUDIO")
               E: uses-permission (line=19)
                 A:
                 android:name(0x01010003)="android.permission.ACCESS_NET
                 WORK_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.androi
                   d.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.M
                       AIN" (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
[   +4 ms] Stopping app 'app.apk' on sdk gphone64 x86 64.
[        ] executing: /home/user/dev/Android/sdk/platform-tools/adb
-s emulator-5554 shell am force-stop io.flutter.plugins.cameraexample
[  +25 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb
-s emulator-5554 shell pm list packages io.flutter.plugins.cameraexample
[  +31 ms] package:io.flutter.plugins.cameraexample
[   +3 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb
-s emulator-5554 shell cat
/data/local/tmp/sky.io.flutter.plugins.cameraexample.sha1
[  +30 ms] 0d902a51fbee4058ee09fb9f39283c443510dba4
[        ] Latest build already installed.
[        ] executing: /home/user/dev/Android/sdk/platform-tools/adb
-s emulator-5554 shell -x logcat -v time -t 1
[  +52 ms] --------- beginning of main
           10-30 18:25:24.076 D/CarrierSvcBindHelper(  891): No carrier
           app for: 0
[  +15 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb
-s emulator-5554 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.FlutterAct
ivity
[  +33 ms] Starting: Intent { act=android.intent.action.RUN
flg=0x20000000
cmp=io.flutter.plugins.cameraexample/io.flutter.embedding.android.Flutte
rActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +336 ms] Observatory URL on device:
http://127.0.0.1:35705/1OLmqTg1gvY=/
[   +1 ms] executing: /home/user/dev/Android/sdk/platform-tools/adb
-s emulator-5554 forward tcp:0 tcp:35705
[  +11 ms] 39861
[        ] Forwarded host port 39861 to device port 35705 for
Observatory
[  +12 ms] Caching compiled dill
[ +114 ms] Connecting to service protocol:
http://127.0.0.1:39861/1OLmqTg1gvY=/
[ +204 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:39861/1OLmqTg1gvY=/.
[ +155 ms] DDS is listening at http://127.0.0.1:39163/upuyDm2JFFA=/.
[  +62 ms] Successfully connected to service protocol:
http://127.0.0.1:39861/1OLmqTg1gvY=/
[  +69 ms] DevFS: Creating new filesystem on the device (null)
[  +20 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/io.flutter.plugins.cameraexample/code_cache/example
HKGOJA/example/)
[   +4 ms] Updating assets
[ +108 ms] Syncing files to device sdk gphone64 x86 64...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:camera_example/main.dart
c7f93da5-9a90-4a9e-b4cf-c2ea77d49a62
[        ] <- c7f93da5-9a90-4a9e-b4cf-c2ea77d49a62
[  +61 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device sdk gphone64 x86 64... (completed in
67ms)
[   +1 ms] Synced 0.0MB.
[   +2 ms] <- accept
[   +9 ms] Connected to _flutterView/0x704383b59150.
[   +3 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 🔥🔥🔥
[   +1 ms] 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 sdk gphone64 x86 64
is available
           at: http://127.0.0.1:39163/upuyDm2JFFA=/
[ +306 ms] D/skia    ( 7120): Shader compilation error
[        ] D/skia    ( 7120): ------------------------
[        ] D/skia    ( 7120): Errors:
[        ] D/skia    ( 7120): 
[   +2 ms] D/skia    ( 7120): Shader compilation error
[        ] D/skia    ( 7120): ------------------------
[        ] D/skia    ( 7120): Errors:
[        ] D/skia    ( 7120): 
[   +5 ms] D/skia    ( 7120): Shader compilation error
[        ] D/skia    ( 7120): ------------------------
[        ] D/skia    ( 7120): Errors:
[        ] D/skia    ( 7120): 
[   +7 ms] D/skia    ( 7120): Shader compilation error
[        ] D/skia    ( 7120): ------------------------
[        ] D/skia    ( 7120): Errors:
[        ] D/skia    ( 7120): 
[ +100 ms] Activating Dart DevTools...
[+2464 ms] I/Camera  ( 7120): startPreview
[   +6 ms] I/Camera  ( 7120): Updating builder settings
[        ] D/Camera  ( 7120): Updating builder with feature:
ExposureLockFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
ExposurePointFeature
[   +2 ms] D/Camera  ( 7120): Updating builder with feature:
ZoomLevelFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
AutoFocusFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
NoiseReductionFeature
[        ] I/Camera  ( 7120): updateNoiseReduction | currentSetting:
fast
[        ] D/Camera  ( 7120): Updating builder with feature:
FocusPointFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
ResolutionFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
SensorOrientationFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
FlashFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
ExposureOffsetFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
FpsRangeFeature
[ +419 ms] D/EGL_emulation( 7120): app_time_stats: avg=1475.85ms
min=3.27ms max=2948.44ms count=2
[  +67 ms] D/skia    ( 7120): Shader compilation error
[        ] D/skia    ( 7120): ------------------------
[        ] D/skia    ( 7120): Errors:
[        ] D/skia    ( 7120): 
[   +2 ms] D/skia    ( 7120): Shader compilation error
[        ] D/skia    ( 7120): ------------------------
[        ] D/skia    ( 7120): Errors:
[        ] D/skia    ( 7120): 
[ +928 ms] D/EGL_emulation( 7120): app_time_stats: avg=33.34ms
min=9.52ms max=93.26ms count=30
[ +197 ms] Activating Dart DevTools... (completed in 4,1s)
[ +386 ms] I/Camera  ( 7120): runPrecaptureSequence
[  +20 ms] D/CameraCaptureCallback( 7120): CameraCaptureCallback |
state: STATE_WAITING_PRECAPTURE_START | afState: 0 | aeState: 2
[  +26 ms] D/CameraCaptureCallback( 7120): CameraCaptureCallback |
state: STATE_WAITING_PRECAPTURE_DONE | afState: 0 | aeState: 2
[        ] I/Camera  ( 7120): captureStillPicture
[  +29 ms] D/Camera  ( 7120): Updating builder with feature:
ExposureLockFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
ExposurePointFeature
[   +3 ms] D/Camera  ( 7120): Updating builder with feature:
ZoomLevelFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
AutoFocusFeature
[   +2 ms] D/Camera  ( 7120): Updating builder with feature:
NoiseReductionFeature
[        ] I/Camera  ( 7120): updateNoiseReduction | currentSetting:
fast
[        ] D/Camera  ( 7120): Updating builder with feature:
FocusPointFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
ResolutionFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
SensorOrientationFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
FlashFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
ExposureOffsetFeature
[        ] D/Camera  ( 7120): Updating builder with feature:
FpsRangeFeature
[   +1 ms] I/Camera  ( 7120): sending capture request
[  +28 ms] D/CameraCaptureCallback( 7120): CameraCaptureCallback |
state: STATE_CAPTURING | afState: 0 | aeState: 2
[        ] D/CameraCaptureCallback( 7120): CameraCaptureCallback |
state: STATE_CAPTURING | afState: 0 | aeState: 2
[  +30 ms] D/CameraCaptureCallback( 7120): CameraCaptureCallback |
state: STATE_CAPTURING | afState: 0 | aeState: 5
[  +30 ms] D/CameraCaptureCallback( 7120): CameraCaptureCallback |
state: STATE_CAPTURING | afState: 0 | aeState: 5
[  +26 ms] I/Camera  ( 7120): unlockAutoFocus
[  +21 ms] The Flutter DevTools debugger and profiler on sdk gphone64
x86 64 is
           available at:

http://127.0.0.1:9102?uri=http://127.0.0.1:39163/upuyDm2JFFA=/
[  +73 ms] I/Camera  ( 7120): open | onError
[        ] I/Camera  ( 7120): close
[        ] I/Camera  ( 7120): closeCaptureSession
[  +11 ms] E/CameraCaptureSession( 7120): Session 0: Exception while
stopping repeating: 
[        ] E/CameraCaptureSession( 7120):
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): The
camera device has encountered a serious error
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.checkIfCameraClosedOrInEr
ror(CameraDeviceImpl.java:2340)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.stopRepeating(CameraDevic
eImpl.java:1267)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraCaptureSessionImpl.close(CameraCaptu
reSessionImpl.java:579)
[        ] E/CameraCaptureSession( 7120):       at
io.flutter.plugins.camera.Camera.closeCaptureSession(Camera.java:1085)
[        ] E/CameraCaptureSession( 7120):       at
io.flutter.plugins.camera.Camera.close(Camera.java:1092)
[        ] E/CameraCaptureSession( 7120):       at
io.flutter.plugins.camera.Camera$1.onError(Camera.java:291)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.notifyError(CameraDeviceI
mpl.java:1738)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl.$r8$lambda$KBQCqQRdhVVn7u
HI9Xdha6OqnsU(Unknown Source:0)
[        ] E/CameraCaptureSession( 7120):       at
android.hardware.camera2.impl.CameraDeviceImpl$$ExternalSyntheticLambda0
.accept(Unknown Source:8)
[        ] E/CameraCaptureSession( 7120):       at
com.android.internal.util.function.pooled.PooledLambdaImpl.doInvoke(Pool
edLambdaImpl.java:278)
[        ] E/CameraCaptureSession( 7120):       at
com.android.internal.util.function.pooled.PooledLambdaImpl.invoke(Pooled
LambdaImpl.java:201)
[        ] E/CameraCaptureSession( 7120):       at
com.android.internal.util.function.pooled.OmniFunction.run(OmniFunction.
java:97)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Handler.handleCallback(Handler.java:938)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Handler.dispatchMessage(Handler.java:99)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Looper.loopOnce(Looper.java:201)
[        ] E/CameraCaptureSession( 7120):       at
android.os.Looper.loop(Looper.java:288)
[        ] E/CameraCaptureSession( 7120):       at
android.os.HandlerThread.run(HandlerThread.java:67)

```

<!--
     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 6.5s)
```

<!-- 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.
-->