You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I am seeing that it is working fine in iOS, and android api 28 and 29, but it returns an error with 30.
It fails when execute:
final Event event = Event(
title: 'Event title',
description: 'Event description',
location: 'Event location',
startDate: DateTime.now(),
endDate: DateTime.now(),
iosParams: const IOSParams(
reminder: Duration( hours:1), // on iOS, you can set alarm notification after your event.
),
androidParams: const AndroidParams(
emailInvites: [], // on Android, you can add invite emails to your event.
),
);
Add2Calendar.addEvent2Cal(event);
Error:
E/AndroidRuntime(24474): FATAL EXCEPTION: main
E/AndroidRuntime(24474): Process: com.android.calendar, PID: 24474
E/AndroidRuntime(24474): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.android.calendar/com.android.calendar.event.EditEventActivity}: java.lang.ClassNotFoundException: Didn't find class "com.android.calendar.event.EditEventActivity" on path: DexPathList[[zip file "/product/app/Calendar/Calendar.apk"],nativeLibraryDirectories=[/product/app/Calendar/lib/x86, /system/lib, /system_ext/lib]]
E/AndroidRuntime(24474): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3365)
E/AndroidRuntime(24474): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3601)
E/AndroidRuntime(24474): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
E/AndroidRuntime(24474): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/AndroidRuntime(24474): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/AndroidRuntime(24474): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066)
E/AndroidRuntime(24474): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(24474): at android.os.Looper.loop(Looper.java:223)
E/AndroidRuntime(24474): at android.app.ActivityThread.main(ActivityThread.java:7656)
E/AndroidRuntime(24474): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(24474): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
E/AndroidRuntime(24474): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
E/AndroidRuntime(24474): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.calendar.event.EditEventActivity" on path: DexPathList[[zip file "/product/app/Calendar/Calendar.apk"],nativeLibraryDirectories=[/product/app/Calendar/lib/x86, /system/lib, /system_ext/lib]]
E/AndroidRuntime(24474): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207)
E/AndroidRuntime(24474): at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
E/AndroidRuntime(24474): at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
E/AndroidRuntime(24474): at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
E/AndroidRuntime(24474): at android.app.Instrumentation.newActivity(Instrumentation.java:1253)
E/AndroidRuntime(24474): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3353)
E/AndroidRuntime(24474): ... 11 more
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.labap.calendar_0">
<queries>
<intent>
<action android:name="android.intent.action.INSERT" />
<data android:mimeType="vnd.android.cursor.item/event" />
</intent>
</queries>
<uses-permission android:name="android.permission.WRITE_CALENDAR" />
<uses-permission android:name="android.permission.READ_CALENDAR" />
<application
android:label="calendar_0"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:exported="true"
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"
/>
<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" />
</application>
</manifest>
Am I forgetting something?
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hi! I am seeing that it is working fine in iOS, and android api 28 and 29, but it returns an error with 30.
It fails when execute:
Error:
AndroidManifest.xml
Am I forgetting something?
Thanks a lot.
The text was updated successfully, but these errors were encountered: