fluttercommunity / plus_plugins

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

android_alarm_manager_plus is only working in foreground. But when the app is killed the callback is not working and the app stops working system error is thrown. #317

Closed SaratChandraV closed 3 years ago

SaratChandraV commented 3 years ago

System info

Issue occurs on: Android Plugin name: android_alarm_manager_plus Plugin version: 1.0.2

Note I have android studio already installed. But the same is not reflecting with flutter.

Flutter doctor output:


c:\src\flutter\bin>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.2.2, on Microsoft Windows [Version 10.0.19043.1055], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[!] Android Studio (not installed)
[√] Connected device (3 available)

Steps to Reproduce

  1. I have followed the android_alarm_manager_plus readme and changed the AndroidManifest.xml as below
    
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.arcstudios.medicine_remainder">
    <application
        android:label="medicine_remainder"
        android:icon="@mipmap/ic_launcher">
        <activity
            android:name="io.flutter.embedding.android.FlutterActivity"
            android:launchMode="singleTop"
            android:theme="@style/LaunchTheme"
            android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
            android:hardwareAccelerated="true"
            android:windowSoftInputMode="adjustResize">
            <!-- Specifies an Android theme to apply to this Activity as soon as
                 the Android process has started. This theme is visible to the user
                 while the Flutter UI initializes. After that, this theme continues
                 to determine the Window background behind the Flutter UI. -->
            <meta-data
              android:name="io.flutter.embedding.android.NormalTheme"
              android:resource="@style/NormalTheme"
              />
            <!-- Displays an Android View that continues showing the launch screen
                 Drawable until Flutter paints its first frame, then this splash
                 screen fades out. A splash screen is useful to avoid any visual
                 gap between the end of Android's launch screen and the painting of
                 Flutter's first frame. -->
            <meta-data
              android:name="io.flutter.embedding.android.SplashScreenDrawable"
              android:resource="@drawable/launch_background"
              />
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <!-- Don't delete the meta-data below.
             This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
        <meta-data
            android:name="flutterEmbedding"
            android:value="2" />
       <service
           android:name="dev.fluttercommunity.plus.androidalarmmanager.AlarmService"
           android:permission="android.permission.BIND_JOB_SERVICE"
           android:exported="false"/>
       <receiver
           android:name="dev.fluttercommunity.plus.androidalarmmanager.AlarmBroadcastReceiver"
           android:exported="false"/>
       <receiver
           android:name="dev.fluttercommunity.plus.androidalarmmanager.RebootBroadcastReceiver"
           android:enabled="false">
           <intent-filter>
               <action android:name="android.intent.action.BOOT_COMPLETED"></action>
           </intent-filter>
       </receiver>
    </application>
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    </manifest>

2. The main.dart file is as follows

import 'dart:isolate';

import 'package:android_alarm_manager_plus/android_alarm_manager_plus.dart'; import 'package:flutter/material.dart'; import 'package:flutter/services.dart';

void main() { testAlarm(); runApp(MyApp()); }

class MyApp extends StatelessWidget { // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, title: 'My Meds', home: SafeArea( child: Container( child: Text("hello world"), ); } }

Future testAlarm() async { WidgetsFlutterBinding.ensureInitialized(); await AndroidAlarmManager.initialize(); await AndroidAlarmManager.oneShot(Duration(seconds: 20), 0, printHello); }

void printHello() { final DateTime now = DateTime.now(); final int isolateId = Isolate.current.hashCode; print("[$now] Hello, world! isolate=${isolateId} function='$printHello'"); }

3. Stop the app after the app has loaded and alarm service has started. Wait for the 20 seconds and the following error show on the screen.

The log of run in android studio

Launching lib\main.dart on sdk gphone x86 arm in debug mode... Running Gradle task 'assembleDebug'... √ Built build\app\outputs\flutter-apk\app-debug.apk. Installing build\app\outputs\flutter-apk\app.apk... Debug service listening on ws://127.0.0.1:56505/6PpsF28avfE=/ws Syncing files to device sdk gphone x86 arm... I/FlutterBackgroundExecutor( 4680): Starting AlarmService... D/EGL_emulation( 4680): eglCreateContext: 0xf3b19b50: maj 2 min 0 rcv 2 D/EGL_emulation( 4680): eglCreateContext: 0xf3b18810: maj 2 min 0 rcv 2 D/HostConnection( 4680): HostConnection::get() New Host Connection established 0xf3b19530, tid 4749 D/HostConnection( 4680): 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_strings ANDROID_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_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 4680): eglMakeCurrent: 0xf3b18810: ver 2 0 (tinfo 0xc0bc8830) (first time) I/AndroidAlarmManagerPlugin( 4680): onAttachedToEngine I/AlarmService( 4680): AlarmService started!

At this stage stop the app and wait for 20 seconds

The following error occurs: The screenshot is attached here:

![Screenshot_1624083931](https://user-images.githubusercontent.com/77152872/122633312-9593fa00-d0f5-11eb-9572-96ab3f5b60c2.png)

## Logs

<!--
      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.
-->

[ +107 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +89 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] d79295af24c3ed621c33713ecda14ad196fd9c31 [ ] executing: [C:\src\flutter/] git tag --points-at d79295af24c3ed621c33713ecda14ad196fd9c31 [ +58 ms] Exit code 0 from: git tag --points-at d79295af24c3ed621c33713ecda14ad196fd9c31 [ ] 2.2.2 [ +8 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +52 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/stable [ ] executing: [C:\src\flutter/] git ls-remote --get-url origin [ +52 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +142 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD [ +92 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] stable [ +113 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. [ +5 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. [ +79 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe devices -l [ +97 ms] List of devices attached emulator-5554 device product:sdk_gphone_x86_arm model:sdk_gphone_x86_arm device:generic_x86_arm transport_id:2 [ +9 ms] C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell getprop [ +180 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. [ +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. [ +261 ms] Skipping pub get: version match. [ +21 ms] Found plugin android_alarm_manager_plus at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\android_alarm_manager_plus-1.0.1\ [ +31 ms] Found plugin flutter_local_notifications at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-6.0.0\ [ +23 ms] Found plugin sqflite at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\sqflite-1.3.2+4\ [ +228 ms] Found plugin android_alarm_manager_plus at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\android_alarm_manager_plus-1.0.1\ [ +19 ms] Found plugin flutter_local_notifications at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-6.0.0\ [ +15 ms] Found plugin sqflite at C:\src\flutter.pub-cache\hosted\pub.dartlang.org\sqflite-1.3.2+4\ [ +38 ms] Generating D:\Personal\Coding\Flutter\medicine_remainder\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java [ +111 ms] ro.hardware = ranchu [{"event":"daemon.connected","params":{"version":"0.6.0","pid":19160}}] [{"event":"app.start","params":{"appId":"96fc91e6-4b16-4cdd-9121-0e7fb7a0adb1","deviceId":"emulator-5554","directory":"D:\Personal\Coding\Flutter\medicine_remainder","supportsRestart":true,"launchMode":"run"}}] [ +105 ms] Initializing file store [ +22 ms] Skipping target: gen_localizations [ +9 ms] complete [ +8 ms] Launching lib\main.dart on sdk gphone x86 arm in debug mode... [ +7 ms] C:\src\flutter\bin\cache\dart-sdk\bin\dart.exe --disable-dart-dev C:\src\flutter\bin\cache\artifacts\engine\windows-x64\frontend_server.dart.snapshot --sdk-root C:\src\flutter\bin\cache\artifacts\engine\common\flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names --experimental-emit-debug-metadata -Dflutter.inspector.structuredErrors=true -DFLUTTER_WEB_AUTO_DETECT=true --output-dill C:\Users\admin\AppData\Local\Temp\flutter_tools.d948d31b\flutter_tool.263bfd99\app.dill --packages D:\Personal\Coding\Flutter\medicine_remainder.dart_tool\package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --initialize-from-dill build\ec97fc97316ce73f47c62e6f5be0e204.cache.dill.track.dill --enable-experiment=alternative-invalidation-strategy [ +16 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree D:\Personal\Coding\Flutter\medicine_remainder\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml [ +58 ms] Exit code 0 from: C:\Users\admin\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree D:\Personal\Coding\Flutter\medicine_remainder\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.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11") A: package="com.arcstudios.medicine_remainder" (Raw: "com.arcstudios.medicine_remainder") A: platformBuildVersionCode=(type 0x10)0x1e A: platformBuildVersionName=(type 0x10)0xb E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e 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.VIBRATE" (Raw: "android.permission.VIBRATE") E: uses-permission (line=18) A: android:name(0x01010003)="android.permission.USE_FULL_SCREEN_INTENT" (Raw: "android.permission.USE_FULL_SCREEN_INTENT") E: application (line=20) A: android:label(0x01010001)="medicine_remainder" (Raw: "medicine_remainder") 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=25) A: android:theme(0x01010000)=@0x7f0c00a0 A: android:name(0x01010003)="io.flutter.embedding.android.FlutterActivity" (Raw: "io.flutter.embedding.android.FlutterActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=39) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0c00a1 E: meta-data (line=49) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f060055 E: intent-filter (line=53) E: action (line=54) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=56) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=63) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: service (line=67) 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=72) 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=75) 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=78) E: action (line=79) A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED") E: receiver (line=82) A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" (Raw: "com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver") E: receiver (line=83) A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver" (Raw: "com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver") E: intent-filter (line=84) E: action (line=85) A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED") E: action (line=86) A: android:name(0x01010003)="android.intent.action.MY_PACKAGE_REPLACED" (Raw: "android.intent.action.MY_PACKAGE_REPLACED") E: action (line=87) A: android:name(0x01010003)="android.intent.action.QUICKBOOT_POWERON" (Raw: "android.intent.action.QUICKBOOT_POWERON") E: action (line=88) A: android:name(0x01010003)="com.htc.intent.action.QUICKBOOT_POWERON" (Raw: "com.htc.intent.action.QUICKBOOT_POWERON") [ +10 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1 [ +8 ms] <- compile package:medicine_remainder/main.dart [ +265 ms] --------- beginning of kernel 06-19 12:06:28.837 W/healthd ( 0): battery l=100 v=5000 t=25.0 h=2 st=4 c=900000 fc=300000 cc=10 chg= [ +23 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe version [ +51 ms] Android Debug Bridge version 1.0.41 Version 31.0.2-7242960 Installed as C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe [ +2 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe start-server [ +99 ms] Building APK Running Gradle task 'assembleDebug'... [{"event":"app.progress","params":{"appId":"96fc91e6-4b16-4cdd-9121-0e7fb7a0adb1","id":"0","progressId":null,"message":"Running Gradle task 'assembleDebug'...","finished":false}}] [ +58 ms] Using gradle from D:\Personal\Coding\Flutter\medicine_remainder\android\gradlew.bat. [ +20 ms] executing: [D:\Personal\Coding\Flutter\medicine_remainder\android/] D:\Personal\Coding\Flutter\medicine_remainder\android\gradlew.bat -Pverbose=true -Ptarget-platform=android-x86 -Ptarget=D:\Personal\Coding\Flutter\medicine_remainder\lib\main.dart -Pdart-defines=Zmx1dHRlci5pbnNwZWN0b3Iuc3RydWN0dXJlZEVycm9ycz10cnVl,RkxVVFRFUl9XRUJfQVVUT19ERVRFQ1Q9dHJ1ZQ== -Pdart-obfuscation=false -Ptrack-widget-creation=true -Ptree-shake-icons=false -Pfilesystem-scheme=org-dartlang-root assembleDebug [+2616 ms] Welcome to Gradle 6.7! [ +1 ms] Here are the highlights of this release: [ ] - File system watching is ready for production use [ +2 ms] - Declare the version of Java your build requires [ +13 ms] - Java 15 support [ +2 ms] For more details see https://docs.gradle.org/6.7/release-notes.html [+5713 ms] > Configure project :android_alarm_manager_plus [ ] WARNING: The option setting 'android.enableR8=true' is deprecated. [ ] It will be removed in version 5.0 of the Android Gradle plugin. [ ] You will no longer be able to disable R8 [+1309 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:compileDebugAidl NO-SOURCE [ ] > Task :android_alarm_manager_plus:mergeDebugJniLibFolders UP-TO-DATE [ ] > Task :android_alarm_manager_plus:mergeDebugNativeLibs NO-SOURCE [ +1 ms] > Task :android_alarm_manager_plus:stripDebugDebugSymbols NO-SOURCE [ +2 ms] > Task :android_alarm_manager_plus:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE [ +2 ms] > Task :android_alarm_manager_plus:compileDebugRenderscript NO-SOURCE [ +1 ms] > Task :android_alarm_manager_plus:generateDebugBuildConfig UP-TO-DATE [ ] > Task :android_alarm_manager_plus:generateDebugResValues UP-TO-DATE [ +1 ms] > Task :android_alarm_manager_plus:generateDebugResources UP-TO-DATE [ +74 ms] > Task :android_alarm_manager_plus:packageDebugResources UP-TO-DATE [ ] > Task :android_alarm_manager_plus:parseDebugLocalResources UP-TO-DATE [ +1 ms] > Task :android_alarm_manager_plus:processDebugManifest UP-TO-DATE [ +799 ms] > Task :android_alarm_manager_plus:generateDebugRFile UP-TO-DATE [ +1 ms] > Task :android_alarm_manager_plus:javaPreCompileDebug UP-TO-DATE [ +101 ms] > Task :android_alarm_manager_plus:compileDebugJavaWithJavac UP-TO-DATE [ +90 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:mergeDebugShaders UP-TO-DATE [ ] > Task :android_alarm_manager_plus:compileDebugShaders NO-SOURCE [ ] > 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:syncDebugLibJars UP-TO-DATE [ ] > Task :android_alarm_manager_plus:writeDebugAarMetadata 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:bundleLibCompileToJarDebug UP-TO-DATE [+2404 ms] > Task :app:compileFlutterBuildDebug [ ] [ +190 ms] executing: [C:\src\flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +93 ms] [ +158 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ +1 ms] [ ] d79295af24c3ed621c33713ecda14ad196fd9c31 [ +1 ms] [ +1 ms] executing: [C:\src\flutter/] git tag --points-at d79295af24c3ed621c33713ecda14ad196fd9c31 [ +197 ms] [ +184 ms] Exit code 0 from: git tag --points-at d79295af24c3ed621c33713ecda14ad196fd9c31 [ ] [ ] 2.2.2 [ ] [ +11 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +108 ms] [ +124 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] [ ] origin/stable [ ] [ ] executing: [C:\src\flutter/] git ls-remote --get-url origin [ +90 ms] [ +75 ms] Exit code 0 from: git ls-remote --get-url origin [ ] [ ] https://github.com/flutter/flutter.git [ +200 ms] [ +219 ms] executing: [C:\src\flutter/] git rev-parse --abbrev-ref HEAD [ +107 ms] [ +67 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] [ ] stable [ +91 ms] [ +129 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. [ ] [ +8 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. [ +304 ms] [ +280 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ ] [ +9 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. [ +3 ms] [ ] 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. [ +81 ms] [ +69 ms] Initializing file store [ +109 ms] [ +139 ms] Done initializing file store [ +292 ms] [ +218 ms] Skipping target: gen_localizations [+2198 ms] [+2229 ms] Skipping target: kernel_snapshot [ +1 ms] [ +15 ms] invalidated build due to missing files: D:\Personal\Coding\Flutter\medicine_remainder\DOES_NOT_EXIST_RERUN_FOR_WILDCARD635555401 [+1097 ms] [+1118 ms] debug_android_application: Starting due to {InvalidatedReasonKind.inputMissing: The following inputs were missing: D:\Personal\Coding\Flutter\medicine_remainder\DOES_NOT_EXIST_RERUN_FOR_WILDCARD635555401} [ +402 ms] [ +379 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466. [ +118 ms] [ +62 ms] debug_android_application: Complete [ +888 ms] [ +958 ms] Persisting file store [ +92 ms] [ +28 ms] Done persisting file store [ ] [ +29 ms] build succeeded. [ ] [ +32 ms] "flutter assemble" took 5,612ms. [ +346 ms] [ +275 ms] ensureAnalyticsSent: 267ms [ ] [ +2 ms] Running shutdown hooks [ ] [ ] Shutdown hooks complete [ ] [ +1 ms] exiting with code 0 [ +648 ms] > Task :app:packLibsflutterBuildDebug UP-TO-DATE [ ] > Task :app:preBuild UP-TO-DATE [ ] > Task :app:preDebugBuild UP-TO-DATE [ ] > Task :flutter_local_notifications:preBuild UP-TO-DATE [ ] > Task :flutter_local_notifications:preDebugBuild UP-TO-DATE [ ] > Task :flutter_local_notifications:compileDebugAidl NO-SOURCE [ ] > Task :sqflite:preBuild UP-TO-DATE [ ] > Task :sqflite:preDebugBuild UP-TO-DATE [ ] > Task :sqflite:compileDebugAidl NO-SOURCE [ ] > Task :app:compileDebugAidl NO-SOURCE [ +121 ms] > Task :flutter_local_notifications:packageDebugRenderscript NO-SOURCE [ +1 ms] > Task :sqflite:packageDebugRenderscript NO-SOURCE [ ] > Task :app:compileDebugRenderscript NO-SOURCE [ +1 ms] > Task :app:generateDebugBuildConfig UP-TO-DATE [ ] > Task :android_alarm_manager_plus:compileDebugLibraryResources UP-TO-DATE [ ] > Task :flutter_local_notifications:writeDebugAarMetadata UP-TO-DATE [ ] > Task :sqflite:writeDebugAarMetadata UP-TO-DATE [ +202 ms] > Task :app:checkDebugAarMetadata UP-TO-DATE [ +113 ms] > Task :app:cleanMergeDebugAssets [ +101 ms] > Task :app:mergeDebugShaders UP-TO-DATE [ ] > Task :app:compileDebugShaders NO-SOURCE [ ] > Task :app:generateDebugAssets UP-TO-DATE [ ] > Task :flutter_local_notifications:mergeDebugShaders UP-TO-DATE [ ] > Task :flutter_local_notifications:compileDebugShaders NO-SOURCE [ ] > Task :flutter_local_notifications:generateDebugAssets UP-TO-DATE [ ] > Task :flutter_local_notifications:packageDebugAssets UP-TO-DATE [ +103 ms] > Task :sqflite:mergeDebugShaders UP-TO-DATE [ +2 ms] > Task :sqflite:compileDebugShaders NO-SOURCE [ ] > Task :sqflite:generateDebugAssets UP-TO-DATE [ +4 ms] > Task :sqflite:packageDebugAssets UP-TO-DATE [ +165 ms] > Task :app:mergeDebugAssets [ +786 ms] > Task :app:copyFlutterAssetsDebug [ +91 ms] > Task :app:generateDebugResValues UP-TO-DATE [ ] > Task :app:generateDebugResources UP-TO-DATE [ ] > Task :flutter_local_notifications:compileDebugRenderscript NO-SOURCE [ ] > Task :flutter_local_notifications:generateDebugResValues UP-TO-DATE [ ] > Task :flutter_local_notifications:generateDebugResources UP-TO-DATE [ ] > Task :flutter_local_notifications:packageDebugResources UP-TO-DATE [ ] > Task :sqflite:compileDebugRenderscript NO-SOURCE [ ] > Task :sqflite:generateDebugResValues UP-TO-DATE [ ] > Task :sqflite:generateDebugResources UP-TO-DATE [ ] > Task :sqflite:packageDebugResources UP-TO-DATE [ +108 ms] > Task :app:mergeDebugResources UP-TO-DATE [ +97 ms] > Task :app:createDebugCompatibleScreenManifests UP-TO-DATE [ ] > Task :android_alarm_manager_plus:extractDeepLinksDebug UP-TO-DATE [ ] > Task :app:extractDeepLinksDebug UP-TO-DATE [ ] > Task :flutter_local_notifications:extractDeepLinksDebug UP-TO-DATE [ ] > Task :flutter_local_notifications:processDebugManifest UP-TO-DATE [ ] > Task :sqflite:extractDeepLinksDebug UP-TO-DATE [ ] > Task :sqflite:processDebugManifest UP-TO-DATE [ +98 ms] > Task :app:processDebugMainManifest UP-TO-DATE [ ] > Task :app:processDebugManifest UP-TO-DATE [ ] > Task :app:processDebugManifestForPackage UP-TO-DATE [ ] > Task :flutter_local_notifications:compileDebugLibraryResources UP-TO-DATE [ ] > Task :flutter_local_notifications:parseDebugLocalResources UP-TO-DATE [ +398 ms] > Task :flutter_local_notifications:generateDebugRFile UP-TO-DATE [ ] > Task :sqflite:compileDebugLibraryResources UP-TO-DATE [ ] > Task :sqflite:parseDebugLocalResources UP-TO-DATE [ +92 ms] > Task :sqflite:generateDebugRFile UP-TO-DATE [ +204 ms] > Task :app:processDebugResources UP-TO-DATE [ ] > Task :flutter_local_notifications:generateDebugBuildConfig UP-TO-DATE [ ] > Task :flutter_local_notifications:javaPreCompileDebug UP-TO-DATE [ ] > Task :flutter_local_notifications:compileDebugJavaWithJavac UP-TO-DATE [ +108 ms] > Task :flutter_local_notifications:bundleLibCompileToJarDebug UP-TO-DATE [ +1 ms] > Task :sqflite:generateDebugBuildConfig UP-TO-DATE [ +1 ms] > Task :sqflite:javaPreCompileDebug UP-TO-DATE [ ] > Task :sqflite:compileDebugJavaWithJavac UP-TO-DATE [ ] > Task :sqflite:bundleLibCompileToJarDebug UP-TO-DATE [ +83 ms] > Task :app:compileDebugKotlin UP-TO-DATE [ ] > Task :app:javaPreCompileDebug UP-TO-DATE [ ] > Task :app:compileDebugJavaWithJavac UP-TO-DATE [ ] > Task :app:compileDebugSources UP-TO-DATE [ ] > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE [ ] > Task :app:compressDebugAssets UP-TO-DATE [ ] > Task :android_alarm_manager_plus:bundleLibResDebug NO-SOURCE [ ] > Task :app:processDebugJavaRes NO-SOURCE [ ] > Task :flutter_local_notifications:processDebugJavaRes NO-SOURCE [ ] > Task :flutter_local_notifications:bundleLibResDebug NO-SOURCE [ ] > Task :sqflite:processDebugJavaRes NO-SOURCE [ ] > Task :sqflite:bundleLibResDebug NO-SOURCE [ +120 ms] > Task :app:mergeDebugJavaResource UP-TO-DATE [ ] > Task :sqflite:bundleLibRuntimeToJarDebug UP-TO-DATE [ +98 ms] > Task :flutter_local_notifications:bundleLibRuntimeToJarDebug UP-TO-DATE [ ] > Task :android_alarm_manager_plus:bundleLibRuntimeToJarDebug UP-TO-DATE [ +84 ms] > Task :app:checkDebugDuplicateClasses UP-TO-DATE [ ] > Task :app:dexBuilderDebug UP-TO-DATE [ +98 ms] > Task :app:desugarDebugFileDependencies UP-TO-DATE [ +199 ms] > Task :app:mergeExtDexDebug UP-TO-DATE [ +1 ms] > Task :app:mergeDexDebug UP-TO-DATE [ +1 ms] > Task :android_alarm_manager_plus:copyDebugJniLibsProjectOnly UP-TO-DATE [ ] > Task :app:mergeDebugJniLibFolders UP-TO-DATE [ ] > Task :flutter_local_notifications:mergeDebugJniLibFolders UP-TO-DATE [ ] > Task :flutter_local_notifications:mergeDebugNativeLibs NO-SOURCE [ ] > Task :flutter_local_notifications:stripDebugDebugSymbols NO-SOURCE [ ] > Task :flutter_local_notifications:copyDebugJniLibsProjectOnly UP-TO-DATE [ ] > Task :sqflite:mergeDebugJniLibFolders UP-TO-DATE [ ] > Task :sqflite:mergeDebugNativeLibs NO-SOURCE [ ] > Task :sqflite:stripDebugDebugSymbols NO-SOURCE [ ] > Task :sqflite:copyDebugJniLibsProjectOnly UP-TO-DATE [ +97 ms] > Task :app:mergeDebugNativeLibs UP-TO-DATE [ ] > Task :app:stripDebugDebugSymbols UP-TO-DATE [ ] > Task :app:validateSigningDebug UP-TO-DATE [ ] > Task :app:packageDebug UP-TO-DATE [ +794 ms] > Task :app:assembleDebug [ ] > Task :flutter_local_notifications:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE [ +1 ms] > Task :flutter_local_notifications:extractDebugAnnotations UP-TO-DATE [ +93 ms] > Task :flutter_local_notifications:mergeDebugGeneratedProguardFiles UP-TO-DATE [ ] > Task :flutter_local_notifications:mergeDebugConsumerProguardFiles UP-TO-DATE [ ] > Task :flutter_local_notifications:prepareLintJarForPublish UP-TO-DATE [ ] > Task :flutter_local_notifications:mergeDebugJavaResource UP-TO-DATE [ ] > Task :flutter_local_notifications:syncDebugLibJars UP-TO-DATE [ +1 ms] > Task :flutter_local_notifications:bundleDebugAar UP-TO-DATE [ ] > Task :flutter_local_notifications:compileDebugSources UP-TO-DATE [ ] > Task :flutter_local_notifications:assembleDebug UP-TO-DATE [ ] > Task :sqflite:copyDebugJniLibsProjectAndLocalJars UP-TO-DATE [ +101 ms] > Task :sqflite:extractDebugAnnotations UP-TO-DATE [ +1 ms] > Task :sqflite:mergeDebugGeneratedProguardFiles UP-TO-DATE [ ] > Task :sqflite:mergeDebugConsumerProguardFiles UP-TO-DATE [ ] > Task :sqflite:prepareLintJarForPublish UP-TO-DATE [ ] > Task :sqflite:mergeDebugJavaResource UP-TO-DATE [ ] > Task :sqflite:syncDebugLibJars UP-TO-DATE [ ] > Task :sqflite:bundleDebugAar UP-TO-DATE [ ] > Task :sqflite:compileDebugSources UP-TO-DATE [ ] > Task :sqflite:assembleDebug UP-TO-DATE [ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. [ ] Use '--warning-mode all' to show the individual deprecation warnings. [ ] See https://docs.gradle.org/6.7/userguide/command_line_interface.html#sec:command_line_warnings [ ] BUILD SUCCESSFUL in 24s [ ] 107 actionable tasks: 5 executed, 102 up-to-date [{"event":"app.progress","params":{"appId":"96fc91e6-4b16-4cdd-9121-0e7fb7a0adb1","id":"0","progressId":null,"finished":true}}] [ +691 ms] calculateSha: LocalDirectory: 'D:\Personal\Coding\Flutter\medicine_remainder\build\app\outputs\flutter-apk'/app.apk [+1120 ms] √ Built build\app\outputs\flutter-apk\app-debug.apk. [ +23 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree D:\Personal\Coding\Flutter\medicine_remainder\build\app\outputs\flutter-apk\app.apk AndroidManifest.xml [ +67 ms] Exit code 0 from: C:\Users\admin\AppData\Local\Android\sdk\build-tools\30.0.3\aapt dump xmltree D:\Personal\Coding\Flutter\medicine_remainder\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.0" (Raw: "1.0.0") A: android:compileSdkVersion(0x01010572)=(type 0x10)0x1e A: android:compileSdkVersionCodename(0x01010573)="11" (Raw: "11") A: package="com.arcstudios.medicine_remainder" (Raw: "com.arcstudios.medicine_remainder") A: platformBuildVersionCode=(type 0x10)0x1e A: platformBuildVersionName=(type 0x10)0xb E: uses-sdk (line=7) A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10 A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1e 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.VIBRATE" (Raw: "android.permission.VIBRATE") E: uses-permission (line=18) A: android:name(0x01010003)="android.permission.USE_FULL_SCREEN_INTENT" (Raw: "android.permission.USE_FULL_SCREEN_INTENT") E: application (line=20) A: android:label(0x01010001)="medicine_remainder" (Raw: "medicine_remainder") 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=25) A: android:theme(0x01010000)=@0x7f0c00a0 A: android:name(0x01010003)="io.flutter.embedding.android.FlutterActivity" (Raw: "io.flutter.embedding.android.FlutterActivity") A: android:launchMode(0x0101001d)=(type 0x10)0x1 A: android:configChanges(0x0101001f)=(type 0x11)0x40003fb4 A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10 A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff E: meta-data (line=39) A: android:name(0x01010003)="io.flutter.embedding.android.NormalTheme" (Raw: "io.flutter.embedding.android.NormalTheme") A: android:resource(0x01010025)=@0x7f0c00a1 E: meta-data (line=49) A: android:name(0x01010003)="io.flutter.embedding.android.SplashScreenDrawable" (Raw: "io.flutter.embedding.android.SplashScreenDrawable") A: android:resource(0x01010025)=@0x7f060055 E: intent-filter (line=53) E: action (line=54) A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN") E: category (line=56) A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER") E: meta-data (line=63) A: android:name(0x01010003)="flutterEmbedding" (Raw: "flutterEmbedding") A: android:value(0x01010024)=(type 0x10)0x2 E: service (line=67) 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=72) 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=75) 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=78) E: action (line=79) A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED") E: receiver (line=82) A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver" (Raw: "com.dexterous.flutterlocalnotifications.ScheduledNotificationReceiver") E: receiver (line=83) A: android:name(0x01010003)="com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver" (Raw: "com.dexterous.flutterlocalnotifications.ScheduledNotificationBootReceiver") E: intent-filter (line=84) E: action (line=85) A: android:name(0x01010003)="android.intent.action.BOOT_COMPLETED" (Raw: "android.intent.action.BOOT_COMPLETED") E: action (line=86) A: android:name(0x01010003)="android.intent.action.MY_PACKAGE_REPLACED" (Raw: "android.intent.action.MY_PACKAGE_REPLACED") E: action (line=87) A: android:name(0x01010003)="android.intent.action.QUICKBOOT_POWERON" (Raw: "android.intent.action.QUICKBOOT_POWERON") E: action (line=88) A: android:name(0x01010003)="com.htc.intent.action.QUICKBOOT_POWERON" (Raw: "com.htc.intent.action.QUICKBOOT_POWERON") [ +4 ms] Stopping app 'app.apk' on sdk gphone x86 arm. [ +1 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell am force-stop com.arcstudios.medicine_remainder [ +200 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages com.arcstudios.medicine_remainder [ +213 ms] package:com.arcstudios.medicine_remainder [ +3 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell cat /data/local/tmp/sky.com.arcstudios.medicine_remainder.sha1 [ +142 ms] 73a798169ecba0107903d36e538424d623652ae5 [ +1 ms] Latest build already installed. [ ] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 shell -x logcat -v time -t 1 [ +77 ms] --------- beginning of main 06-19 12:07:08.807 I/cmd ( 4895): oneway function results will be dropped but finished with status OK and parcel size 4 [ +14 ms] executing: C:\Users\admin\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 --ez start-paused true com.arcstudios.medicine_remainder/io.flutter.embedding.android.FlutterActivity [ +234 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.arcstudios.medicine_remainder/io.flutter.embedding.android.FlutterActivity (has extras) } [ ] Waiting for observatory port to be available... [+1675 ms] Observatory URL on device: http://127.0.0.1:46169/ab1sFc5Kcwc=/ [ +1 ms] executing: C:\Users\admin\AppData\Local\Android\sdk\platform-tools\adb.exe -s emulator-5554 forward tcp:0 tcp:46169 [ +64 ms] 62989 [ ] Forwarded host port 62989 to device port 46169 for Observatory [ +8 ms] Caching compiled dill [ +58 ms] Connecting to service protocol: http://127.0.0.1:62989/ab1sFc5Kcwc=/ [ +976 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:62989/ab1sFc5Kcwc=/. [ +266 ms] DDS is listening at http://127.0.0.1:63144/hl151Kmp7JE=/. [ +96 ms] Successfully connected to service protocol: http://127.0.0.1:62989/ab1sFc5Kcwc=/ [ +43 ms] DevFS: Creating new filesystem on the device (null) [ +115 ms] DevFS: Created new filesystem on the device (file:///data/user/0/com.arcstudios.medicine_remainder/code_cache/medicine_remainderERFZMR/medicine_remainder/) [ +4 ms] Updating assets Debug service listening on ws://127.0.0.1:63144/hl151Kmp7JE=/ws [{"event":"app.debugPort","params":{"appId":"96fc91e6-4b16-4cdd-9121-0e7fb7a0adb1","port":63144,"wsUri":"ws://127.0.0.1:63144/hl151Kmp7JE=/ws","baseUri":"file:///data/user/0/com.arcstudios.medicine_remainder/code_cache/medicine_remainderERFZMR/medicine_remainder/"}}] [ +202 ms] Manifest contained wildcard assets. Inserting missing file into build graph to force rerun. for more information see #56466. Syncing files to device sdk gphone x86 arm... [{"event":"app.progress","params":{"appId":"96fc91e6-4b16-4cdd-9121-0e7fb7a0adb1","id":"1","progressId":null,"message":"Syncing files to device sdk gphone x86 arm...","finished":false}}] [ +12 ms] <- reset [ ] Compiling dart to kernel with 0 updated files [ +7 ms] <- recompile package:medicine_remainder/main.dart 960328ca-ed01-4ce7-a2e8-73e5071961f6 [ ] <- 960328ca-ed01-4ce7-a2e8-73e5071961f6 [ +154 ms] Updating files. [ ] DevFS: Sync finished [{"event":"app.progress","params":{"appId":"96fc91e6-4b16-4cdd-9121-0e7fb7a0adb1","id":"1","progressId":null,"finished":true}}] [ +1 ms] Synced 0.0MB. [ +1 ms] <- accept [ +25 ms] Connected to _flutterView/0xf3b48820. [{"event":"app.started","params":{"appId":"96fc91e6-4b16-4cdd-9121-0e7fb7a0adb1"}}] [+1762 ms] I/FlutterBackgroundExecutor( 4918): Starting AlarmService... [ +52 ms] D/EGL_emulation( 4918): eglCreateContext: 0xf3b0cdb0: maj 2 min 0 rcv 2 [ +50 ms] D/EGL_emulation( 4918): eglCreateContext: 0xf3b0ec50: maj 2 min 0 rcv 2 [ +11 ms] D/HostConnection( 4918): HostConnection::get() New Host Connection established 0xf3b0e470, tid 4964 [ +10 ms] D/HostConnection( 4918): 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_strings ANDROID_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_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_2 [ +5 ms] D/EGL_emulation( 4918): eglMakeCurrent: 0xf3b0ec50: ver 2 0 (tinfo 0xc0d48830) (first time) [ +142 ms] I/AndroidAlarmManagerPlugin( 4918): onAttachedToEngine [+1381 ms] I/AlarmService( 4918): AlarmService started! [{"id":0,"result":{"value":"android","type":"_extensionType","method":"ext.flutter.platformOverride"}}] [{"id":1,"result":{"timeDilation":"1.0","type":"_extensionType","method":"ext.flutter.timeDilation"}}] [{"id":2,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.debugPaint"}}] [{"id":3,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.debugPaintBaselinesEnabled"}}] [{"id":4,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.repaintRainbow"}}] [{"id":5,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.showPerformanceOverlay"}}] [{"id":6,"result":{"enabled":"true","type":"_extensionType","method":"ext.flutter.debugAllowBanner"}}] [{"id":7,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.structuredErrors"}}] [{"id":8,"result":{"enabled":"true","type":"_extensionType","method":"ext.flutter.inspector.structuredErrors"}}] [{"id":9,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.show"}}] [{"id":10,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.trackRebuildDirtyWidgets"}}] [{"id":11,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.trackRebuildDirtyWidgets"}}] [{"id":12,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.trackRepaintWidgets"}}] [{"id":13,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.trackRepaintWidgets"}}] [{"id":14,"result":{"value":"android","type":"_extensionType","method":"ext.flutter.platformOverride"}}] [{"id":15,"result":{"timeDilation":"1.0","type":"_extensionType","method":"ext.flutter.timeDilation"}}] [{"id":16,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.debugPaint"}}] [{"id":17,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.debugPaintBaselinesEnabled"}}] [{"id":18,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.repaintRainbow"}}] [{"id":19,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.showPerformanceOverlay"}}] [{"id":20,"result":{"enabled":"true","type":"_extensionType","method":"ext.flutter.debugAllowBanner"}}] [{"id":21,"result":{"enabled":"true","type":"_extensionType","method":"ext.flutter.inspector.structuredErrors"}}] [{"id":22,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.show"}}] [{"id":23,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.trackRebuildDirtyWidgets"}}] [{"id":24,"result":{"enabled":"false","type":"_extensionType","method":"ext.flutter.inspector.trackRepaintWidgets"}}] [+11263 ms] DevFS: Deleting filesystem on the device (file:///data/user/0/com.arcstudios.medicine_remainder/code_cache/medicine_remainderERFZMR/medicine_remainder/) [ +13 ms] DevFS: Deleted filesystem on the device (file:///data/user/0/com.arcstudios.medicine_remainder/code_cache/medicine_remainderERFZMR/medicine_remainder/)


The logcat corresponding to after the app is killed:

2021-06-19 21:08:23.666 5480-5480/com.arcstudios.medicine_remainder I/FlutterBackgroundExecutor: Starting AlarmService... 2021-06-19 21:08:23.678 5480-5480/com.arcstudios.medicine_remainder D/AndroidRuntime: Shutting down VM 2021-06-19 21:08:23.681 5480-5480/com.arcstudios.medicine_remainder E/AndroidRuntime: FATAL EXCEPTION: main Process: com.arcstudios.medicine_remainder, PID: 5480 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)


<!--
     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 bin... No issues found! (ran in 1.2s)


<!-- Finally, paste the output of running `flutter doctor -v` here. -->

c:\src\flutter\bin>flutter doctor -v [√] Flutter (Channel stable, 2.2.2, on Microsoft Windows [Version 10.0.19043.1055], locale en-IN) • Flutter version 2.2.2 at c:\src\flutter • Framework revision d79295af24 (8 days ago), 2021-06-11 08:56:01 -0700 • Engine revision 91c9fc8fe0 • Dart version 2.13.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at C:\Users\admin\AppData\Local\Android\sdk • Platform android-30, build-tools 30.0.3 • Java binary at: C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe • Java version Java(TM) SE Runtime Environment (build 1.8.0_291-b10) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[!] Android Studio (not installed) • Android Studio not found; download from https://developer.android.com/studio/index.html (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] Connected device (3 available) • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) • Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212 • Edge (web) • edge • web-javascript • Microsoft Edge 91.0.864.48

! Doctor found issues in 1 category.

fahidsarker commented 3 years ago

I was facing the same issue but after hours of research, I figured out the problem is not with the plugin itself. All we have to do is add this new line in the application tag of the manifest file: android:name = "io.flutter.app.FlutterApplication"

And the problem is solved. I also made a video in details if you want to check it out: https://youtu.be/0TOEV3fIGPY

Happy coding 😉

SaratChandraV commented 3 years ago

Thanks for replying. I am actually new to android development or flutter or for that matter coding itself is just a hobby that I work on weekends, So please can you guide me where the error is occurring.

But according to this page https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects the android name has to be deleted.

One more thing is that i have tried as u said but the app is building currently but it is getting stuck here:

Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
√  Built build\app\outputs\flutter-apk\app-debug.apk.
Installing build\app\outputs\flutter-apk\app.apk...

I have also gone through your youtube video and found that activity tag itself is missing. But when i am trying to replicate it, I am getting no activity found error.

Error running com.arcstudios.medicine_remainder. Default activity not found
Unable to read manifest info from D:\Personal\Coding\Flutter\medicine_remainder\build\app\outputs\flutter-apk\app.apk.
Exception: Problem building Android application: see above error(s).
fahidsarker commented 3 years ago

Yeah. It is kinda wired but this plugin is not working for some reason with out the android name property. So, keep that for now if you dont get any errors!

About the build process getting stuck, Use flutter clean and then re-build/re-run it. Also, try restarting your ide.

For the third issue, my project in the video is not a real project. Its just a dummy project I created to show the solution. (Also, my project does actually have the activity tag. It is just a bellow all those code) So, dont remove anything from yours. Follow the docs of each plugin. Set it us as usual and just add the android name property.

Hope that helps.

SaratChandraV commented 3 years ago

Ya just restarting the IDE resolved the issue. Thanks