Error whe run de app
Hi i have this error when try to run app.
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
lib/main.dart:31:21: Error: Member not found: 'shared'.
await OneSignal.shared.setAppId(getStringAsync(ONESINGLE, defaultValue: mOneSignalID));
^^^^^^
lib/main.dart:32:15: Error: Member not found: 'shared'.
OneSignal.shared.consentGranted(true);
^^^^^^
lib/main.dart:33:15: Error: Member not found: 'shared'.
OneSignal.shared.promptUserForPushNotificationPermission();
^^^^^^
lib/screen/DashboardScreen.dart:41:54: Error: 'OSNotificationOpenedResult' isn't a type.
OneSignal.shared.setNotificationOpenedHandler((OSNotificationOpenedResult notification) async {
^^^^^^^^^^^^^^^^^^^^^^^^^^
lib/screen/DashboardScreen.dart:41:17: Error: Member not found: 'shared'.
OneSignal.shared.setNotificationOpenedHandler((OSNotificationOpenedResult notification) async {
^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\imapa\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1350
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\imapa\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 12s
Exception: Gradle task assembleDebug failed with exit code 1
Asked 1 year ago on November 16, 2023 6:00 AM Comments 14 times
Abdullah Patel replied 1 year ago on November 21, 2023 4:56 AM
For now its all.
Thanks for your service i liked it.
Angela replied 1 year ago on November 21, 2023 4:52 AM
Your issue has been resolved via anydesk and thank you so much for giving review on codecanyon. Let us know if you fave any issues.
- Angela
Angela replied 1 year ago on November 20, 2023 3:39 AM
Hello Abdullah Patel,
Sorry for the inconvenience. We had a holiday so we could not reply on time. Please message the ticket when you are available. our working hours (Mon-Sat 9:00 am-6:00 pm (GMT +5:30)).
- Angela
Abdullah Patel replied 1 year ago on November 18, 2023 5:16 PM
Hi i send the Any Desk information.
any reply ?
Angela replied 1 year ago on November 16, 2023 8:05 AM
Can you please share anydesk or chrome remote access
- Angela
Abdullah Patel replied 1 year ago on November 16, 2023 7:24 AM
yes in pubspec.yaml
I changed it now...
when try to run app get this error
__________________________________
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
/C:/Users/imapa/AppData/Local/Pub/Cache/hosted/pub.dev/nb_utils-5.0.8/lib/src/widgets/blur_widget.dart:37:23: Error: The argument type 'BorderRadius?' can't be assigned to the parameter type 'BorderRadiusGeometry' because 'BorderRadius?' is nullable and 'BorderRadiusGeometry' isn't.
- 'BorderRadius' is from 'package:flutter/src/painting/border_radius.dart' ('/C:/Users/imapa/flutter/packages/flutter/lib/src/painting/border_radius.dart').
- 'BorderRadiusGeometry' is from 'package:flutter/src/painting/border_radius.dart' ('/C:/Users/imapa/flutter/packages/flutter/lib/src/painting/border_radius.dart').
borderRadius: borderRadius,
^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* Where:
Script 'C:\Users\imapa\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' line: 1350
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\Users\imapa\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 12s
Exception: Gradle task assembleDebug failed with exit code 1
Angela replied 1 year ago on November 16, 2023 7:14 AM
You can ignore it. It doesn't affect the code. and have you changed the library or any version?
- Angela
Abdullah Patel replied 1 year ago on November 16, 2023 7:13 AM
How can i update the one signal library?
Abdullah Patel replied 1 year ago on November 16, 2023 7:12 AM
other error show in AndroidManifest.xml
ATTACHED FILES
Angela replied 1 year ago on November 16, 2023 6:04 AM
Hello Abdullah Patel,
Have you updated the one signal library?
- Angela