fluttercommunity / plus_plugins

Flutter Community Plus Plugins
BSD 3-Clause "New" or "Revised" License
1.61k stars 976 forks source link

[android_alarm_manager_plus] Crashes when used with other background services #266

Closed MagnusJohansson closed 3 years ago

MagnusJohansson commented 3 years ago

Background: In my app, I need both the audio_service and the Android alarm manager plugin. (So this is Android only) I need the ability to schedule an alarm at a specific time. This alarm should trigger even though the app has been closed. (I.e. Android will wake up the app and execute the relevant code in an isolate). In my app I am using the audio_service (the "one-isolate" branch) https://github.com/ryanheise/audio_service/tree/one-isolate

Minimal reproduction project The minimal reproduction code is based on the example project. A new button is added the schedules an alarm after 10 seconds. (Just like the android_alarm_manager_plus example)

Reproduction example base on the one-isolate branch is here: https://github.com/MagnusJohansson/audio_service/tree/one-isolate-alarm-manager/audio_service/example

NOTE: I originally posted this crash/bug with the author of the audio_service: https://github.com/ryanheise/audio_service/issues/704 Since then, I have upgraded to the android_alarm_manager_plus plugin, with the same behavior as the original android_alarm_manager. The author suggested the following:

It sounds like the app is then crashing when android_alarm_manager is trying to create its own FlutterEngine. Have you also posted a bug on that plugin's page?

It looks like android_alarm_manager is using the legacy class FlutterMain. Maybe that's the problem. Or maybe audio_service should do something with the legacy API to ensure this sort of thing is less likely to happen.

System info

Issue occurs on: Android Plugin name: android_alarm_manager_plus Plugin version: 1.0.1 Flutter doctor output:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.19043.1023], locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Android Studio (version 4.1.0)
[✓] IntelliJ IDEA Community Edition (version 2021.1)
[✓] VS Code (version 1.56.2)
[✓] Connected device (1 available)

• No issues found!

Steps to Reproduce

Launch the example app.

  1. Click on the "Schedule OneShot Alarm" button.
  2. Observe the text "Alarm fired!" in the logcat output after 10 seconds (I.e. expected behavior).
  3. Click again on the "Schedule OneShot Alarm" button.
  4. Quickly kill the app using the Android task switcher.
  5. Observe the crash/exception in the LogCat output below.

Logs

Logcat Exception:

2021-05-29 15:04:54.611 13334-13334/com.ryanheise.audioserviceexample E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.ryanheise.audioserviceexample, PID: 13334
    java.lang.RuntimeException: Unable to create service dev.fluttercommunity.plus.androidalarmmanager.AlarmService: java.lang.NullPointerException: Attempt to read from field 'java.lang.String io.flutter.embedding.engine.loader.FlutterApplicationInfo.flutterAssetsDir' on a null object reference
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:4204)
        at android.app.ActivityThread.access$1500(ActivityThread.java:237)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
        at android.os.Handler.dispatchMessage(Handler.java:106)
        at android.os.Looper.loop(Looper.java:223)
        at android.app.ActivityThread.main(ActivityThread.java:7656)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
     Caused by: java.lang.NullPointerException: Attempt to read from field 'java.lang.String io.flutter.embedding.engine.loader.FlutterApplicationInfo.flutterAssetsDir' on a null object reference
        at io.flutter.embedding.engine.loader.FlutterLoader.findAppBundlePath(FlutterLoader.java:364)
        at io.flutter.view.FlutterMain.findAppBundlePath(FlutterMain.java:104)
        at dev.fluttercommunity.plus.androidalarmmanager.FlutterBackgroundExecutor.startBackgroundIsolate(FlutterBackgroundExecutor.java:155)
        at dev.fluttercommunity.plus.androidalarmmanager.FlutterBackgroundExecutor.startBackgroundIsolate(FlutterBackgroundExecutor.java:124)
        at dev.fluttercommunity.plus.androidalarmmanager.AlarmService.onCreate(AlarmService.java:345)
        at android.app.ActivityThread.handleCreateService(ActivityThread.java:4192)
        at android.app.ActivityThread.access$1500(ActivityThread.java:237) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932) 
        at android.os.Handler.dispatchMessage(Handler.java:106) 
        at android.os.Looper.loop(Looper.java:223) 
        at android.app.ActivityThread.main(ActivityThread.java:7656) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) 

flutter run -v output:

[  +58 ms] executing: [D:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[  +50 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] executing: [D:\src\flutter/] git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[  +36 ms] Exit code 0 from: git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] 2.2.1
[   +5 ms] executing: [D:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[  +25 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] origin/stable
[        ] executing: [D:\src\flutter/] git ls-remote --get-url origin
[  +24 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] https://github.com/flutter/flutter.git
[  +98 ms] executing: [D:\src\flutter/] git rev-parse --abbrev-ref HEAD
[  +26 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] stable
[  +77 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 '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.
[  +42 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l
[  +27 ms] List of devices attached
           emulator-5554          device product:sdk_gphone_x86 model:sdk_gphone_x86 device:generic_x86_arm transport_id:1      
[   +5 ms] C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell getprop
[  +29 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.
[   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[  +59 ms] Skipping pub get: version match.
[  +11 ms] Found plugin audio_service at C:\Users\magnu\Documents\GitHub\audio_service\audio_service\
[   +5 ms] Found plugin audio_service_web at
D:\src\flutter\.pub-cache\git\audio_service-8e38e0898a28fed8c794eb3d414ecc782e8ce50d\audio_service_web\
[   +3 ms] Found plugin android_alarm_manager_plus at
D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\android_alarm_manager_plus-1.0.1\
[   +4 ms] Found plugin audio_session at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\audio_session-0.1.0\
[   +9 ms] Found plugin flutter_tts at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_tts-3.1.0\
[   +4 ms] Found plugin just_audio at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio-0.7.4+1\
[   +1 ms] Found plugin just_audio_web at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio_web-0.3.1\
[   +2 ms] Found plugin path_provider at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.2\
[   +1 ms] Found plugin path_provider_linux at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.0.0\     
[   +1 ms] Found plugin path_provider_macos at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.0\     
[   +1 ms] Found plugin path_provider_windows at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.1\ 
[   +5 ms] Found plugin sqflite at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\sqflite-2.0.0+3\
[  +68 ms] Found plugin audio_service at C:\Users\magnu\Documents\GitHub\audio_service\audio_service\
[   +2 ms] Found plugin audio_service_web at
D:\src\flutter\.pub-cache\git\audio_service-8e38e0898a28fed8c794eb3d414ecc782e8ce50d\audio_service_web\
[   +1 ms] Found plugin android_alarm_manager_plus at
D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\android_alarm_manager_plus-1.0.1\
[   +2 ms] Found plugin audio_session at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\audio_session-0.1.0\
[   +5 ms] Found plugin flutter_tts at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_tts-3.1.0\
[   +2 ms] Found plugin just_audio at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio-0.7.4+1\
[   +1 ms] Found plugin just_audio_web at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\just_audio_web-0.3.1\
[   +2 ms] Found plugin path_provider at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-2.0.2\
[        ] Found plugin path_provider_linux at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_linux-2.0.0\     
[        ] Found plugin path_provider_macos at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_macos-2.0.0\     
[   +1 ms] Found plugin path_provider_windows at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider_windows-2.0.1\ 
[   +4 ms] Found plugin sqflite at D:\src\flutter\.pub-cache\hosted\pub.dartlang.org\sqflite-2.0.0+3\
[  +13 ms] Generating
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java
[  +46 ms] ro.hardware = ranchu
[  +13 ms] Using hardware rendering with device sdk gphone x86. If you notice graphics artifacts, consider enabling software
rendering with
           "--enable-software-rendering".
[  +22 ms] Initializing file store
[   +8 ms] Skipping target: gen_localizations
[   +3 ms] complete
[   +3 ms] Launching lib\main.dart on sdk gphone x86 in debug mode...
[   +4 ms] D:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
D:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
D:\src\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
C:\Users\magnu\AppData\Local\Temp\flutter_tools.6e18dd8b\flutter_tool.b7ce8401\app.dill --packages
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\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\3c113a45063dc6628e68a4111abcacad.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy
[   +9 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml   
[  +13 ms] Exit code 0 from: C:\Users\magnu\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\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)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.ryanheise.audioserviceexample" (Raw: "com.ryanheise.audioserviceexample")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.RECEIVE_BOOT_COMPLETED" (Raw:
                 "android.permission.RECEIVE_BOOT_COMPLETED")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.FOREGROUND_SERVICE" (Raw:
                 "android.permission.FOREGROUND_SERVICE")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw:
                 "android.permission.ACCESS_NETWORK_STATE")
               E: application (line=26)
                 A: android:label(0x01010001)="Audio Service Demo" (Raw: "Audio Service Demo")
                 A: android:icon(0x01010002)=@0x7f0a0000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=31)
                   A: android:theme(0x01010000)=@0x7f0d00a0
                   A: android:name(0x01010003)="com.ryanheise.audioservice.AudioServiceActivity" (Raw:
                   "com.ryanheise.audioservice.AudioServiceActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=38)
                     E: action (line=39)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=41)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") 
                 E: service (line=45)
                   A: android:name(0x01010003)="com.ryanheise.audioservice.AudioService" (Raw:
                   "com.ryanheise.audioservice.AudioService")
                   E: intent-filter (line=46)
                     E: action (line=47)
                       A: android:name(0x01010003)="android.media.browse.MediaBrowserService" (Raw:
                       "android.media.browse.MediaBrowserService")
                 E: receiver (line=51)
                   A: android:name(0x01010003)="com.ryanheise.audioservice.MediaButtonReceiver" (Raw:
                   "com.ryanheise.audioservice.MediaButtonReceiver")
                   E: intent-filter (line=52)
                     E: action (line=53)
                       A: android:name(0x01010003)="android.intent.action.MEDIA_BUTTON" (Raw:
                       "android.intent.action.MEDIA_BUTTON")
                 E: service (line=57)
                   A: android:name(0x01010003)="dev.fluttercommunity.plus.androidalarmmanager.AlarmService" (Raw:
                   "dev.fluttercommunity.plus.androidalarmmanager.AlarmService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw:
                   "android.permission.BIND_JOB_SERVICE")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=62)
                   A: android:name(0x01010003)="dev.fluttercommunity.plus.androidalarmmanager.AlarmBroadcastReceiver" (Raw:     
                   "dev.fluttercommunity.plus.androidalarmmanager.AlarmBroadcastReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=65)
                   A: android:name(0x01010003)="dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver" (Raw:    
                   "dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   E: intent-filter (line=68)
                     E: action (line=69)
                       A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw:
                       "android.intent.action.BOOT_COMPLETED")
                 E: meta-data (line=73)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[  +14 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time
-t 1
[  +11 ms] <- compile package:audio_service_example/main.dart
[  +28 ms] --------- beginning of main
           05-29 15:16:43.112 W/Binder:205_2(  205): type=1400 audit(0.0:1463): avc: denied { read } for name="wakeup35"        
           dev="sysfs" ino=19019 scontext=u:r:system_suspend:s0 tcontext=u:object_r:sysfs:s0 tclass=dir permissive=0
[   +8 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe version
[  +14 ms] Android Debug Bridge version 1.0.41
           Version 31.0.2-7242960
           Installed as C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe
[   +2 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe start-server
[  +21 ms] Building APK
[  +10 ms] Running Gradle task 'assembleDebug'...
[   +3 ms] Using gradle from C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\android\gradlew.bat.
[  +11 ms] executing: C:\Program Files\Android\Android Studio\jre\bin\java -version
[ +124 ms] Exit code 0 from: C:\Program Files\Android\Android Studio\jre\bin\java -version
[        ] openjdk version "11.0.8" 2020-07-14
           OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
           OpenJDK 64-Bit Server VM (build 11.0.8+10-b944.6842174, mixed mode)
[   +2 ms] executing: [C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\android/]
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\android\gradlew.bat -Pverbose=true
-Ptarget-platform=android-x86 -Ptarget=C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\lib\main.dart        
-Pdart-defines=RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true
-Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug
[+1653 ms] > Task :android_alarm_manager_plus:preBuild UP-TO-DATE
[   +1 ms] > Task :android_alarm_manager_plus:preDebugBuild UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:checkDebugManifest UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:generateDebugResValues UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:processDebugManifest UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:mergeDebugShaders UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:compileDebugShaders UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:compileDebugAidl NO-SOURCE
[        ] > Task :android_alarm_manager_plus:compileDebugRenderscript NO-SOURCE
[        ] > Task :android_alarm_manager_plus:generateDebugResources UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:packageDebugResources UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:generateDebugRFile UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:javaPreCompileDebug UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:compileDebugJavaWithJavac UP-TO-DATE
[  +88 ms] > Task :android_alarm_manager_plus:extractDebugAnnotations UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:generateDebugAssets UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:packageDebugAssets UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:packageDebugRenderscript NO-SOURCE
[        ] > Task :android_alarm_manager_plus:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:processDebugJavaRes NO-SOURCE
[        ] > Task :android_alarm_manager_plus:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:bundleDebugAar UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:compileDebugSources UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:assembleDebug UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:bundleLibCompileDebug UP-TO-DATE
[+1980 ms] > Task :app:compileFlutterBuildDebug
[   +1 ms] [  +60 ms] executing: [D:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [  +57 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[        ] [        ] 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] [        ] executing: [D:\src\flutter/] git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] [  +40 ms] Exit code 0 from: git tag --points-at 02c026b03cd31dd3f867e5faeb7e104cce174c5f
[        ] [        ] 2.2.1
[        ] [   +4 ms] executing: [D:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[        ] [  +28 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[        ] [        ] origin/stable
[        ] [        ] executing: [D:\src\flutter/] git ls-remote --get-url origin
[        ] [  +23 ms] Exit code 0 from: git ls-remote --get-url origin
[        ] [        ] https://github.com/flutter/flutter.git
[        ] [  +50 ms] executing: [D:\src\flutter/] git rev-parse --abbrev-ref HEAD
[        ] [  +27 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[        ] [        ] stable
[        ] [  +50 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.
[        ] [   +1 ms] Artifact Instance of 'WindowsEngineArtifacts' 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.
[        ] [  +73 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 '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.
[        ] [  +27 ms] Initializing file store
[        ] [  +17 ms] Skipping target: gen_localizations
[        ] [   +5 ms] kernel_snapshot: Starting due to {}
[        ] [  +11 ms] D:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev
D:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root
D:\src\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 C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\.dart_tool\package_config.json--output-dill
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\.dart_tool\flutter_build\8737c1517cde26b1d433efbbeafd2c8b\app.dill --depfile
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\.dart_tool\flutter_build\8737c1517cde26b1d433efbbeafd2c8b\kernel_snapshot.d package:audio_service_example/main.dart
[+8679 ms] [+9599 ms] kernel_snapshot: Complete
[ +507 ms] [ +492 ms] debug_android_application: Starting due to {}
[ +205 ms] [ +177 ms] debug_android_application: Complete
[ +486 ms] [ +471 ms] Persisting file store
[        ] [  +11 ms] Done persisting file store
[        ] [   +7 ms] build succeeded.
[        ] [  +15 ms] "flutter assemble" took 10,924ms.
[ +202 ms] [ +147 ms] ensureAnalyticsSent: 142ms
[        ] [   +2 ms] Running shutdown hooks
[        ] [        ] Shutdown hooks complete
[        ] [        ] exiting with code 0
[ +106 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE
[   +1 ms] > Task :app:preBuild UP-TO-DATE
[        ] > Task :app:preDebugBuild UP-TO-DATE
[        ] > Task :audio_service:preBuild UP-TO-DATE
[        ] > Task :audio_service:preDebugBuild UP-TO-DATE
[        ] > Task :audio_session:preBuild UP-TO-DATE
[        ] > Task :audio_session:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_tts:preBuild UP-TO-DATE
[        ] > Task :flutter_tts:preDebugBuild UP-TO-DATE
[        ] > Task :flutter_tts:compileDebugAidl NO-SOURCE
[        ] > Task :just_audio:preBuild UP-TO-DATE
[        ] > Task :just_audio:preDebugBuild UP-TO-DATE
[        ] > Task :path_provider:preBuild UP-TO-DATE
[        ] > Task :path_provider:preDebugBuild UP-TO-DATE
[        ] > Task :path_provider:compileDebugAidl NO-SOURCE
[        ] > Task :sqflite:preBuild UP-TO-DATE
[        ] > Task :sqflite:preDebugBuild UP-TO-DATE
[        ] > Task :audio_service:packageDebugRenderscript NO-SOURCE
[        ] > Task :sqflite:compileDebugAidl NO-SOURCE
[        ] > Task :audio_session:packageDebugRenderscript NO-SOURCE
[        ] > Task :flutter_tts:packageDebugRenderscript NO-SOURCE
[        ] > Task :just_audio:packageDebugRenderscript NO-SOURCE
[        ] > Task :audio_session:compileDebugAidl NO-SOURCE
[        ] > Task :audio_service:compileDebugAidl NO-SOURCE
[        ] > Task :just_audio:compileDebugAidl NO-SOURCE
[        ] > Task :app:compileDebugAidl NO-SOURCE
[        ] > Task :path_provider:packageDebugRenderscript NO-SOURCE
[        ] > Task :sqflite:packageDebugRenderscript NO-SOURCE
[        ] > Task :app:compileDebugRenderscript NO-SOURCE
[        ] > Task :app:checkDebugManifest UP-TO-DATE
[        ] > Task :app:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :audio_service:checkDebugManifest UP-TO-DATE
[  +79 ms] > Task :audio_service:compileDebugRenderscript NO-SOURCE
[        ] > Task :audio_service:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :audio_service:generateDebugResValues UP-TO-DATE
[        ] > Task :audio_service:generateDebugResources UP-TO-DATE
[        ] > Task :audio_service:packageDebugResources UP-TO-DATE
[        ] > Task :audio_service:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :audio_service:processDebugManifest UP-TO-DATE
[        ] > Task :audio_session:generateDebugResValues UP-TO-DATE
[        ] > Task :audio_session:compileDebugRenderscript NO-SOURCE
[        ] > Task :audio_session:generateDebugResources UP-TO-DATE
[        ] > Task :audio_session:packageDebugResources UP-TO-DATE
[        ] > Task :audio_session:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :audio_session:checkDebugManifest UP-TO-DATE
[        ] > Task :audio_session:processDebugManifest UP-TO-DATE
[        ] > Task :audio_session:generateDebugRFile UP-TO-DATE
[        ] > Task :audio_service:generateDebugRFile UP-TO-DATE
[        ] > Task :audio_session:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_tts:checkDebugManifest UP-TO-DATE
[        ] > Task :audio_session:javaPreCompileDebug UP-TO-DATE
[        ] > Task :audio_session:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :audio_session:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :audio_service:javaPreCompileDebug UP-TO-DATE
[        ] > Task :audio_service:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :audio_service:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :flutter_tts:compileDebugRenderscript NO-SOURCE
[        ] > Task :flutter_tts:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :flutter_tts:generateDebugResValues UP-TO-DATE
[        ] > Task :flutter_tts:generateDebugResources UP-TO-DATE
[        ] > Task :flutter_tts:packageDebugResources UP-TO-DATE
[        ] > Task :flutter_tts:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :flutter_tts:processDebugManifest UP-TO-DATE
[        ] > Task :flutter_tts:generateDebugRFile UP-TO-DATE
[        ] > Task :flutter_tts:javaPreCompileDebug UP-TO-DATE
[        ] > Task :flutter_tts:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :flutter_tts:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :just_audio:checkDebugManifest UP-TO-DATE
[        ] > Task :just_audio:compileDebugRenderscript NO-SOURCE
[        ] > Task :just_audio:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :just_audio:generateDebugResValues UP-TO-DATE
[        ] > Task :just_audio:generateDebugResources UP-TO-DATE
[        ] > Task :just_audio:packageDebugResources UP-TO-DATE
[        ] > Task :just_audio:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :just_audio:processDebugManifest UP-TO-DATE
[        ] > Task :path_provider:generateDebugResValues UP-TO-DATE
[  +75 ms] > Task :path_provider:compileDebugRenderscript NO-SOURCE
[        ] > Task :path_provider:generateDebugResources UP-TO-DATE
[        ] > Task :path_provider:packageDebugResources UP-TO-DATE
[        ] > Task :path_provider:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :path_provider:checkDebugManifest UP-TO-DATE
[        ] > Task :path_provider:processDebugManifest UP-TO-DATE
[        ] > Task :path_provider:generateDebugRFile UP-TO-DATE
[        ] > Task :just_audio:generateDebugRFile UP-TO-DATE
[        ] > Task :path_provider:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :sqflite:checkDebugManifest 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 :just_audio:javaPreCompileDebug UP-TO-DATE
[        ] > Task :just_audio:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :just_audio:bundleLibCompileDebug UP-TO-DATE
[        ] > Task :sqflite:compileDebugRenderscript NO-SOURCE
[        ] > Task :sqflite:generateDebugBuildConfig UP-TO-DATE
[        ] > Task :sqflite:generateDebugResValues UP-TO-DATE
[        ] > Task :sqflite:generateDebugResources UP-TO-DATE
[        ] > Task :sqflite:packageDebugResources UP-TO-DATE
[        ] > Task :sqflite:parseDebugLibraryResources UP-TO-DATE
[        ] > Task :sqflite:processDebugManifest UP-TO-DATE
[        ] > Task :sqflite:generateDebugRFile UP-TO-DATE
[        ] > Task :sqflite:javaPreCompileDebug UP-TO-DATE
[        ] > Task :sqflite:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :sqflite: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 :audio_service:mergeDebugShaders UP-TO-DATE
[        ] > Task :audio_service:compileDebugShaders UP-TO-DATE
[        ] > Task :audio_service:generateDebugAssets UP-TO-DATE
[        ] > Task :audio_service:packageDebugAssets UP-TO-DATE
[        ] > Task :audio_session:mergeDebugShaders UP-TO-DATE
[        ] > Task :audio_session:compileDebugShaders UP-TO-DATE
[        ] > Task :audio_session:generateDebugAssets UP-TO-DATE
[        ] > Task :audio_session:packageDebugAssets UP-TO-DATE
[        ] > Task :flutter_tts:mergeDebugShaders UP-TO-DATE
[        ] > Task :flutter_tts:compileDebugShaders UP-TO-DATE
[        ] > Task :flutter_tts:generateDebugAssets UP-TO-DATE
[        ] > Task :flutter_tts:packageDebugAssets UP-TO-DATE
[        ] > Task :just_audio:mergeDebugShaders UP-TO-DATE
[        ] > Task :just_audio:compileDebugShaders UP-TO-DATE
[        ] > Task :just_audio:generateDebugAssets UP-TO-DATE
[  +91 ms] > Task :just_audio: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 :sqflite:mergeDebugShaders UP-TO-DATE
[        ] > Task :sqflite:compileDebugShaders UP-TO-DATE
[        ] > Task :sqflite:generateDebugAssets UP-TO-DATE
[        ] > Task :sqflite:packageDebugAssets UP-TO-DATE
[        ] > Task :app:mergeDebugAssets
[ +200 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
[  +94 ms] > Task :app:processDebugManifest UP-TO-DATE
[   +1 ms] > Task :app:processDebugResources UP-TO-DATE
[        ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE
[        ] > Task :app:compileDebugSources UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:bundleLibResDebug UP-TO-DATE
[        ] > Task :app:processDebugJavaRes NO-SOURCE
[        ] > Task :audio_service:processDebugJavaRes NO-SOURCE
[        ] > Task :audio_service:bundleLibResDebug UP-TO-DATE
[        ] > Task :audio_session:processDebugJavaRes NO-SOURCE
[        ] > Task :audio_session:bundleLibResDebug UP-TO-DATE
[        ] > Task :flutter_tts:processDebugJavaRes NO-SOURCE
[        ] > Task :flutter_tts:bundleLibResDebug UP-TO-DATE
[        ] > Task :just_audio:processDebugJavaRes NO-SOURCE
[        ] > Task :just_audio:bundleLibResDebug UP-TO-DATE
[        ] > Task :path_provider:processDebugJavaRes NO-SOURCE
[        ] > Task :path_provider:bundleLibResDebug UP-TO-DATE
[        ] > Task :sqflite:processDebugJavaRes NO-SOURCE
[        ] > Task :sqflite: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 :audio_session:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :audio_session:createFullJarDebug UP-TO-DATE
[        ] > Task :flutter_tts:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :flutter_tts:createFullJarDebug UP-TO-DATE
[        ] > Task :path_provider:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :path_provider:createFullJarDebug UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:createFullJarDebug UP-TO-DATE
[        ] > Task :sqflite:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :sqflite:createFullJarDebug UP-TO-DATE
[        ] > Task :audio_service:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :audio_service:createFullJarDebug UP-TO-DATE
[        ] > Task :just_audio:bundleLibRuntimeDebug UP-TO-DATE
[        ] > Task :just_audio:createFullJarDebug UP-TO-DATE
[        ] > Task :app:transformClassesWithDexBuilderForDebug UP-TO-DATE
[  +79 ms] > Task :app:mergeProjectDexDebug UP-TO-DATE
[        ] > Task :app:mergeLibDexDebug UP-TO-DATE
[        ] > Task :app:validateSigningDebug UP-TO-DATE
[        ] > Task :app:signingConfigWriterDebug UP-TO-DATE
[        ] > Task :android_alarm_manager_plus:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :audio_service:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :audio_service:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :audio_service:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :audio_service:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :audio_session:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :audio_session:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :audio_session:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :audio_session:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :flutter_tts:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :flutter_tts:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :flutter_tts:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :flutter_tts:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :just_audio:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :just_audio:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :just_audio:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :just_audio: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 :sqflite:mergeDebugJniLibFolders UP-TO-DATE
[        ] > Task :sqflite:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :sqflite:stripDebugDebugSymbols UP-TO-DATE
[        ] > Task :sqflite:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
[        ] > Task :app:mergeDebugNativeLibs UP-TO-DATE
[        ] > Task :app:stripDebugDebugSymbols UP-TO-DATE
[        ] Compatible side by side NDK version was not found.
[        ] > Task :app:packageDebug UP-TO-DATE
[  +97 ms] > Task :app:assembleDebug
[   +1 ms] > Task :audio_service:extractDebugAnnotations UP-TO-DATE
[        ] > Task :audio_service:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :audio_service:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :audio_service:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :audio_service:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :audio_service:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :audio_service:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :audio_service:bundleDebugAar UP-TO-DATE
[        ] > Task :audio_service:compileDebugSources UP-TO-DATE
[        ] > Task :audio_service:assembleDebug UP-TO-DATE
[        ] > Task :audio_session:extractDebugAnnotations UP-TO-DATE
[        ] > Task :audio_session:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :audio_session:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :audio_session:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :audio_session:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :audio_session:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :audio_session:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :audio_session:bundleDebugAar UP-TO-DATE
[        ] > Task :audio_session:compileDebugSources UP-TO-DATE
[        ] > Task :audio_session:assembleDebug UP-TO-DATE
[        ] > Task :flutter_tts:extractDebugAnnotations UP-TO-DATE
[        ] > Task :flutter_tts:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :flutter_tts:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :flutter_tts:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :flutter_tts:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :flutter_tts:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[  +73 ms] > Task :flutter_tts:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :flutter_tts:bundleDebugAar UP-TO-DATE
[        ] > Task :flutter_tts:compileDebugSources UP-TO-DATE
[        ] > Task :flutter_tts:assembleDebug UP-TO-DATE
[        ] > Task :just_audio:extractDebugAnnotations UP-TO-DATE
[        ] > Task :just_audio:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :just_audio:mergeDebugConsumerProguardFiles UP-TO-DATE
[        ] > Task :just_audio:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :just_audio:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :just_audio:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :just_audio:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :just_audio:bundleDebugAar UP-TO-DATE
[        ] > Task :just_audio:compileDebugSources UP-TO-DATE
[        ] > Task :just_audio: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 :path_provider:compileDebugSources UP-TO-DATE
[        ] > Task :path_provider:assembleDebug UP-TO-DATE
[        ] > Task :sqflite:extractDebugAnnotations UP-TO-DATE
[        ] > Task :sqflite:mergeDebugGeneratedProguardFiles UP-TO-DATE
[        ] > Task :sqflite:mergeDebugConsumerProguardFiles UP-TO-DATE
[   +1 ms] > Task :sqflite:prepareLintJarForPublish UP-TO-DATE
[        ] > Task :sqflite:mergeDebugJavaResource UP-TO-DATE
[        ] > Task :sqflite:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
[        ] > Task :sqflite:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
[        ] > Task :sqflite:bundleDebugAar UP-TO-DATE
[        ] > Task :sqflite:compileDebugSources UP-TO-DATE
[        ] > Task :sqflite:assembleDebug UP-TO-DATE
[        ] BUILD SUCCESSFUL in 14s
[        ] 227 actionable tasks: 5 executed, 222 up-to-date
[ +527 ms] Running Gradle task 'assembleDebug'... (completed in 15.5s)
[  +37 ms] calculateSha: LocalDirectory:
'C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\build\app\outputs\flutter-apk'/app.apk
[ +396 ms] √  Built build\app\outputs\flutter-apk\app-debug.apk.
[   +2 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\example\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml   
[  +16 ms] Exit code 0 from: C:\Users\magnu\AppData\Local\Android\sdk\build-tools\30.0.2\aapt dump xmltree
C:\Users\magnu\Documents\GitHub\audio_service\audio_service\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)0x1c
               A: android:compileSdkVersionCodename(0x01010573)="9" (Raw: "9")
               A: package="com.ryanheise.audioserviceexample" (Raw: "com.ryanheise.audioserviceexample")
               A: platformBuildVersionCode=(type 0x10)0x1c
               A: platformBuildVersionName=(type 0x10)0x9
               E: uses-sdk (line=7)
                 A: android:minSdkVersion(0x0101020c)=(type 0x10)0x15
                 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1c
               E: uses-permission (line=14)
                 A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
               E: uses-permission (line=15)
                 A: android:name(0x01010003)="android.permission.RECEIVE_BOOT_COMPLETED" (Raw:
                 "android.permission.RECEIVE_BOOT_COMPLETED")
               E: uses-permission (line=16)
                 A: android:name(0x01010003)="android.permission.WAKE_LOCK" (Raw: "android.permission.WAKE_LOCK")
               E: uses-permission (line=17)
                 A: android:name(0x01010003)="android.permission.FOREGROUND_SERVICE" (Raw:
                 "android.permission.FOREGROUND_SERVICE")
               E: uses-permission (line=18)
                 A: android:name(0x01010003)="android.permission.ACCESS_NETWORK_STATE" (Raw:
                 "android.permission.ACCESS_NETWORK_STATE")
               E: application (line=26)
                 A: android:label(0x01010001)="Audio Service Demo" (Raw: "Audio Service Demo")
                 A: android:icon(0x01010002)=@0x7f0a0000
                 A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
                 A: android:appComponentFactory(0x0101057a)="androidx.core.app.CoreComponentFactory" (Raw:
                 "androidx.core.app.CoreComponentFactory")
                 E: activity (line=31)
                   A: android:theme(0x01010000)=@0x7f0d00a0
                   A: android:name(0x01010003)="com.ryanheise.audioservice.AudioServiceActivity" (Raw:
                   "com.ryanheise.audioservice.AudioServiceActivity")
                   A: android:launchMode(0x0101001d)=(type 0x10)0x1
                   A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
                   A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
                   A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
                   E: intent-filter (line=38)
                     E: action (line=39)
                       A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
                     E: category (line=41)
                       A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") 
                 E: service (line=45)
                   A: android:name(0x01010003)="com.ryanheise.audioservice.AudioService" (Raw:
                   "com.ryanheise.audioservice.AudioService")
                   E: intent-filter (line=46)
                     E: action (line=47)
                       A: android:name(0x01010003)="android.media.browse.MediaBrowserService" (Raw:
                       "android.media.browse.MediaBrowserService")
                 E: receiver (line=51)
                   A: android:name(0x01010003)="com.ryanheise.audioservice.MediaButtonReceiver" (Raw:
                   "com.ryanheise.audioservice.MediaButtonReceiver")
                   E: intent-filter (line=52)
                     E: action (line=53)
                       A: android:name(0x01010003)="android.intent.action.MEDIA_BUTTON" (Raw:
                       "android.intent.action.MEDIA_BUTTON")
                 E: service (line=57)
                   A: android:name(0x01010003)="dev.fluttercommunity.plus.androidalarmmanager.AlarmService" (Raw:
                   "dev.fluttercommunity.plus.androidalarmmanager.AlarmService")
                   A: android:permission(0x01010006)="android.permission.BIND_JOB_SERVICE" (Raw:
                   "android.permission.BIND_JOB_SERVICE")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=62)
                   A: android:name(0x01010003)="dev.fluttercommunity.plus.androidalarmmanager.AlarmBroadcastReceiver" (Raw:     
                   "dev.fluttercommunity.plus.androidalarmmanager.AlarmBroadcastReceiver")
                   A: android:exported(0x01010010)=(type 0x12)0x0
                 E: receiver (line=65)
                   A: android:name(0x01010003)="dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver" (Raw:    
                   "dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver")
                   A: android:enabled(0x0101000e)=(type 0x12)0x0
                   E: intent-filter (line=68)
                     E: action (line=69)
                       A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw:
                       "android.intent.action.BOOT_COMPLETED")
                 E: meta-data (line=73)
                   A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding")
                   A: android:value(0x01010024)=(type 0x10)0x2
[   +8 ms] Stopping app 'app.apk' on sdk gphone x86.
[        ] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell am force-stop      
com.ryanheise.audioserviceexample
[  +38 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages
com.ryanheise.audioserviceexample
[  +36 ms] package:com.ryanheise.audioserviceexample
[   +1 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell cat
/data/local/tmp/sky.com.ryanheise.audioserviceexample.sha1
[  +33 ms] 44fb6e71cc57a0d9472308b3ff70587e7c02fbce
[   +1 ms] Latest build already installed.
[        ] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time  
-t 1
[  +24 ms] --------- beginning of main
           05-29 15:17:08.153 I/cmd     (13408): oneway function results will be dropped but finished with status OK and parcel 
           size 4
[   +4 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -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
com.ryanheise.audioserviceexample/com.ryanheise.audioservice.AudioServiceActivity
[  +41 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000
cmp=com.ryanheise.audioserviceexample/com.ryanheise.audioservice.AudioServiceActivity (has extras) }
[        ] Waiting for observatory port to be available...
[ +460 ms] W/FlutterEngineCxnRegstry(13425): Attempted to register plugin
(dev.fluttercommunity.plus.androidalarmmanager.AndroidAlarmManagerPlugin@514402a) but it was already registered with this       
FlutterEngine (io.flutter.embedding.engine.FlutterEngine@fa84e1b).
[   +1 ms] W/FlutterEngineCxnRegstry(13425): Attempted to register plugin
(com.ryanheise.audioservice.AudioServicePlugin@657abb8) but it was already registered with this FlutterEngine
(io.flutter.embedding.engine.FlutterEngine@fa84e1b).
[   +2 ms] W/FlutterEngineCxnRegstry(13425): Attempted to register plugin
(com.ryanheise.audio_session.AudioSessionPlugin@1f65d91) but it was already registered with this FlutterEngine
(io.flutter.embedding.engine.FlutterEngine@fa84e1b).
[        ] W/FlutterEngineCxnRegstry(13425): Attempted to register plugin (com.tundralabs.fluttertts.FlutterTtsPlugin@58e34f6)  
but it was already registered with this FlutterEngine (io.flutter.embedding.engine.FlutterEngine@fa84e1b).
[        ] W/FlutterEngineCxnRegstry(13425): Attempted to register plugin (com.ryanheise.just_audio.JustAudioPlugin@df3b0f7) butit was already registered with this FlutterEngine (io.flutter.embedding.engine.FlutterEngine@fa84e1b).
[   +1 ms] W/FlutterEngineCxnRegstry(13425): Attempted to register plugin
(io.flutter.plugins.pathprovider.PathProviderPlugin@6b7cb64) but it was already registered with this FlutterEngine
(io.flutter.embedding.engine.FlutterEngine@fa84e1b).
[        ] W/FlutterEngineCxnRegstry(13425): Attempted to register plugin (com.tekartik.sqflite.SqflitePlugin@f9241cd) but it   
was already registered with this FlutterEngine (io.flutter.embedding.engine.FlutterEngine@fa84e1b).
[  +22 ms] Observatory URL on device: http://127.0.0.1:44307/jbMpNNN-WmA=/
[   +1 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:0 tcp:44307
[  +16 ms] 54377
[        ] Forwarded host port 54377 to device port 44307 for Observatory
[   +4 ms] Caching compiled dill
[  +32 ms] Connecting to service protocol: http://127.0.0.1:54377/jbMpNNN-WmA=/
[ +301 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:54377/jbMpNNN-WmA=/.
[ +101 ms] DDS is listening at http://127.0.0.1:54398/2t8AfXysQRk=/.
[  +43 ms] Successfully connected to service protocol: http://127.0.0.1:54377/jbMpNNN-WmA=/
[  +18 ms] DevFS: Creating new filesystem on the device (null)
[  +54 ms] DevFS: Created new filesystem on the device
(file:///data/user/0/com.ryanheise.audioserviceexample/code_cache/exampleDPEGXI/example/)
[   +2 ms] Updating assets
[  +71 ms] Syncing files to device sdk gphone x86...
[   +1 ms] <- reset
[        ] Compiling dart to kernel with 0 updated files
[   +2 ms] <- recompile package:audio_service_example/main.dart eefa82fe-c9a5-45ca-b977-6f947a6690a9
[        ] <- eefa82fe-c9a5-45ca-b977-6f947a6690a9
[ +108 ms] Updating files.
[        ] DevFS: Sync finished
[   +1 ms] Syncing files to device sdk gphone x86... (completed in 114ms)
[        ] Synced 0.0MB.
[        ] <- accept
[   +9 ms] Connected to _flutterView/0xeed48420.
[   +2 ms] Flutter run key commands.
[   +1 ms] r Hot reload. 
[        ] R Hot restart.
[        ] h Repeat this help message.
[        ] 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 gphone x86 is available at: http://127.0.0.1:54398/2t8AfXysQRk=/
[   +4 ms] Activating Dart DevTools...
[  +28 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[  +15 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[  +14 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +4 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +9 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +7 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +5 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +8 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +5 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +4 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +8 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +4 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +8 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +5 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[  +35 ms] I/flutter (13425): ### _player.load
[  +55 ms] I/flutter (13425): ----- LOG: customState changed: Instance of 'CustomEvent'
[  +19 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 0, playing: false, controls: [{androidIcon:
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294229751, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[  +10 ms] I/flutter (13425): ----- LOG: queue changed: [{id:
https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3, album: Science Friday, title: A Salute To Head-Scratching  
Science, artist: Science Friday and WNYC Studios, genre: null, duration: 5739820, artUri:
https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg, playable: true, displayTitle: null,
displaySubtitle: null, displayDescription: null, rating: null, extras: null}, {id:
https://s3.amazonaws.com/scifri-segments/scifri201711241.mp3, album: Science Friday, title: From Cat Rheology To Operatic       
Incompetence, artist: Science Friday and WNYC Studios, genre: null, duration: 2856950, artUri:
https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg, playable: true, displayTitle: null,
displaySubtitle: null, displayDescription: null, rating: null, extras: null}]
[   +4 ms] I/flutter (13425): ----- LOG: queueTitle changed: 
[   +3 ms] I/flutter (13425): ----- LOG: mediaItem changed: {id:
https://s3.amazonaws.com/scifri-episodes/scifri20181123-episode.mp3, album: Science Friday, title: A Salute To Head-Scratching  
Science, artist: Science Friday and WNYC Studios, genre: null, duration: 5739820, artUri:
https://media.wnyc.org/i/1400/1400/l/80/1/ScienceFriday_WNYCStudios_1400.jpg, playable: true, displayTitle: null,
displaySubtitle: null, displayDescription: null, rating: null, extras: null}
[  +52 ms] I/FlutterBackgroundExecutor(13425): Starting AlarmService...
[  +59 ms] D/EGL_emulation(13425): eglCreateContext: 0xeee3a8c0: maj 3 min 0 rcv 3
[   +1 ms] D/EGL_emulation(13425): eglCreateContext: 0xeee3b260: maj 3 min 0 rcv 3
[        ] D/HostConnection(13425): HostConnection::get() New Host Connection established 0xeee3b7a0, tid 13482
[   +3 ms] D/HostConnection(13425): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2
ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 
ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_stringsANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer
ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8
ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_sync_buffer_data GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object   
GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands
ANDROID_EMU_gles_max_version_3_0
[   +2 ms] D/EGL_emulation(13425): eglMakeCurrent: 0xeee3b260: ver 3 0 (tinfo 0xbd0968b0) (first time)
[  +12 ms] I/AndroidAlarmManagerPlugin(13425): onAttachedToEngine
[   +1 ms] I/TextToSpeech(13425): Sucessfully bound to com.google.android.tts
[   +2 ms] I/TextToSpeech(13425): Connected to
ComponentInfo{com.google.android.tts/com.google.android.apps.speech.tts.googletts.service.GoogleTTSService}
[  +17 ms] I/TextToSpeech(13425): Set up connection to
ComponentInfo{com.google.android.tts/com.google.android.apps.speech.tts.googletts.service.GoogleTTSService}
[ +459 ms] I/AlarmService(13425): AlarmService started!
[ +273 ms] I/TetheringManager(13425): registerTetheringEventCallback:com.ryanheise.audioserviceexample
[  +42 ms] W/oserviceexampl(13425): Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (greylist, reflection,
allowed)
[  +14 ms] I/ExoPlayerImpl(13425): Init d89e9cf [ExoPlayerLib/2.13.1] [generic_x86_arm, sdk_gphone_x86, Google, 30]
[ +112 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +5 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +9 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[  +13 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +8 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[  +26 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 0, playing: false, controls: [{androidIcon:
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294230940, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[  +62 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 0, playing: false, controls: [{androidIcon:
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294231013, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[ +110 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 1, playing: false, controls: [{androidIcon:
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294231123, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[   +2 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 1, playing: false, controls: [{androidIcon:
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294231124, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[   +1 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 1, playing: false, controls: [{androidIcon:   
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294231126, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[ +744 ms] I/VideoCapabilities(13425): Unsupported profile 4 for video/mp4v-es
[  +27 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 1, playing: false, controls: [{androidIcon:
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294231902, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[   +1 ms] D/CCodec  (13425): allocate(c2.android.mp3.decoder)
[        ] I/Codec2Client(13425): Available Codec2 services: "software"
[   +2 ms] I/CCodec  (13425): Created component [c2.android.mp3.decoder]
[   +1 ms] D/CCodecConfig(13425): read media type: audio/mpeg
[   +5 ms] D/ReflectedParamUpdater(13425): extent() != 1 for single value type: algo.buffers.max-count.values
[        ] D/ReflectedParamUpdater(13425): extent() != 1 for single value type: output.subscribed-indices.values
[        ] D/ReflectedParamUpdater(13425): extent() != 1 for single value type: input.buffers.allocator-ids.values
[        ] D/ReflectedParamUpdater(13425): extent() != 1 for single value type: output.buffers.allocator-ids.values
[        ] D/ReflectedParamUpdater(13425): extent() != 1 for single value type: algo.buffers.allocator-ids.values
[        ] D/ReflectedParamUpdater(13425): extent() != 1 for single value type: output.buffers.pool-ids.values
[        ] D/ReflectedParamUpdater(13425): extent() != 1 for single value type: algo.buffers.pool-ids.values
[   +1 ms] I/CCodecConfig(13425): query failed after returning 7 values (BAD_INDEX)
[        ] D/CCodecConfig(13425): c2 config diff is Dict {
[        ] D/CCodecConfig(13425):   c2::u32 coded.bitrate.value = 64000
[        ] D/CCodecConfig(13425):   c2::u32 input.buffers.max-size.value = 8192
[        ] D/CCodecConfig(13425):   c2::u32 input.delay.value = 0
[        ] D/CCodecConfig(13425):   string input.media-type.value = "audio/mpeg"
[        ] D/CCodecConfig(13425):   string output.media-type.value = "audio/raw"
[        ] D/CCodecConfig(13425):   c2::u32 raw.channel-count.value = 2
[        ] D/CCodecConfig(13425):   c2::u32 raw.sample-rate.value = 44100
[        ] D/CCodecConfig(13425): }
[        ] D/CCodec  (13425): [c2.android.mp3.decoder] buffers are bound to CCodec for this session
[        ] D/CCodecConfig(13425): no c2 equivalents for flags
[        ] D/CCodecConfig(13425): config failed => CORRUPTED
[   +1 ms] W/Codec2Client(13425): query -- param skipped: index = 1107298332.
[        ] D/CCodec  (13425): client requested max input size 4096, which is smaller than what component recommended (8192);    
overriding with component recommendation.
[        ] W/CCodec  (13425): This behavior is subject to change. It is recommended that app developers double check whether therequested max input size is in reasonable range.
[        ] D/CCodec  (13425): setup formats input: AMessage(what = 0x00000000) = {
[        ] D/CCodec  (13425):   int32_t channel-count = 2
[        ] D/CCodec  (13425):   int32_t max-input-size = 8192
[        ] D/CCodec  (13425):   string mime = "audio/mpeg"
[        ] D/CCodec  (13425):   int32_t sample-rate = 44100
[        ] D/CCodec  (13425): } and output: AMessage(what = 0x00000000) = {
[        ] D/CCodec  (13425):   int32_t channel-count = 2
[        ] D/CCodec  (13425):   string mime = "audio/raw"
[        ] D/CCodec  (13425):   int32_t sample-rate = 44100
[        ] D/CCodec  (13425): }
[        ] W/Codec2Client(13425): query -- param skipped: index = 1342179345.
[        ] W/Codec2Client(13425): query -- param skipped: index = 2415921170.
[        ] E/FMQ     (13425): grantorIdx must be less than 3
[        ] E/FMQ     (13425): grantorIdx must be less than 3
[        ] D/CCodecBufferChannel(13425): [c2.android.mp3.decoder#937] Created input block pool with allocatorID 16 => poolID 17 
- OK (0)
[        ] I/CCodecBufferChannel(13425): [c2.android.mp3.decoder#937] Created output block pool with allocatorID 16 => poolID 35- OK
[   +1 ms] D/CCodecBufferChannel(13425): [c2.android.mp3.decoder#937] Configured output block pool ids 35 => OK
[        ] E/ion     (13425): ioctl c0044901 failed with code -1: Inappropriate ioctl for device
[   +5 ms] E/FMQ     (13425): grantorIdx must be less than 3
[   +7 ms] E/FMQ     (13425): grantorIdx must be less than 3
[  +23 ms] I/flutter (13425): ----- LOG: playbackState changed: {processingState: 3, playing: false, controls: [{androidIcon:
drawable/audio_service_skip_previous, label: Previous, action: 4}, {androidIcon: drawable/audio_service_play_arrow, label: Play,action: 2}, {androidIcon: drawable/audio_service_stop, label: Stop, action: 0}, {androidIcon: drawable/audio_service_skip_next, 
label: Next, action: 5}], androidCompactActionIndices: [0, 1, 3], systemActions: [8, 23, 22], updatePosition: 0,
bufferedPosition: 0, speed: 1.0, updateTime: 1622294231975, errorCode: null, errorMessage: null, repeatMode: 0, shuffleMode: 0, 
captioningEnabled: false, queueIndex: 0}
[   +1 ms] I/flutter (13425): ### loaded
[+3579 ms] Activating Dart DevTools... (completed in 6.0s)
[ +496 ms] The Flutter DevTools debugger and profiler on sdk gphone x86 is available at:
                    http://127.0.0.1:9101?uri=http%3A%2F%2F127.0.0.1%3A54398%2F2t8AfXysQRk%3D%2F
[ +883 ms] D/BufferPoolAccessor2.0(13425): bufferpool2 0xeeb8c298 : 5(40960 size) total buffers - 4(32768 size) used buffers -
0/5 (recycle/alloc) - 4/34 (fetch/transfer)
[        ] D/BufferPoolAccessor2.0(13425): evictor expired: 1, evicted: 1
[+2813 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[   +9 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[  +58 ms] D/skia    (13425):    1      Shader compilation error
[        ] D/skia    (13425):    2      ------------------------
[        ] D/skia    (13425):    3      Errors:
[        ] D/skia    (13425):    4
[+1908 ms] Service protocol connection closed.
[   +1 ms] Lost connection to device.
[   +1 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward --list
[  +17 ms] Exit code 0 from: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward --list
[        ] emulator-5554 tcp:54377 tcp:44307
[   +1 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward --remove
tcp:54377
[  +17 ms] DevFS: Deleting filesystem on the device
(file:///data/user/0/com.ryanheise.audioserviceexample/code_cache/exampleDPEGXI/example/)
[ +261 ms] Ignored error while cleaning up DevFS: TimeoutException after 0:00:00.250000: Future not completed
[   +1 ms] executing: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward --list
[  +15 ms] Exit code 0 from: C:\Users\magnu\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward --list
[   +1 ms] "flutter run" took 30,549ms.
[ +153 ms] ensureAnalyticsSent: 151ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hooks complete
[        ] exiting with code 0

flutter analyze output:

Analyzing example...                                                    
No issues found! (ran in 2.7s)
[√] Flutter (Channel stable, 2.2.1, on Microsoft Windows [Version 10.0.19043.1023], locale en-GB)
    • Flutter version 2.2.1 at D:\src\flutter
    • Framework revision 02c026b03c (2 days ago), 2021-05-27 12:24:44 -0700
    • Engine revision 0fdb562ac8
    • Dart version 2.13.1

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Users\magnu\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.2
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[√] Android Studio (version 4.1.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.1.1
    • 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

[√] VS Code (version 1.56.2)
    • VS Code at C:\Users\magnu\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

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

• No issues found!
fahidsarker commented 3 years ago

I face the same issue you can try watching this https://youtu.be/0TOEV3fIGPY . You can try adding io.flutter.app.FlutterApplication in android menifest. That worked for me!

MagnusJohansson commented 3 years ago

Yes, this did the trick. Thank you! I did play around with the android:name attribute, but only on the main activity, never on the application element.