flutter_local_notifications issue I'm facing when I run my partner app - flutter

flutter_local_notifications issue I'm facing, when I'm going to run my partner app.
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-9.9.1\android\src\main\java\com\dexterous\flutterlocalnotifications\FlutterLocalNotificationsPlugin.java:1554: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
^
symbol: variable TIRAMISU
location: class VERSION_CODES
C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_local_notifications-9.9.1\android\src\main\java\com\dexterous\flutterlocalnotifications\FlutterLocalNotificationsPlugin.java:1555: error: cannot find symbol
String permission = Manifest.permission.POST_NOTIFICATIONS;
^
symbol: variable POST_NOTIFICATIONS
location: class permission
2 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':flutter_local_notifications:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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 3m 20s
Exception: Gradle task assembleDebug failed with exit code 1

Related

Error: The method 'copyWith' isn't defined for the class 'RouteSettings'

I'm trying to run a sample of flutter , that thingsboard.io published in this starting guide.
sample code : https://github.com/thingsboard/flutter_thingsboard_app
when i run start debuging in VS Code, i get this error:
Launching lib\main.dart on Android SDK built for x86 in debug mode...
/C:/src/flutter/.pub-cache/hosted/pub.dev/fluro-2.0.3/lib/src/fluro_router.dart:134:37: Error: The method 'copyWith' isn't defined for the class 'RouteSettings'.
- 'RouteSettings' is from 'package:flutter/src/widgets/navigator.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/navigator.dart').
Try correcting the name to the name of an existing method, or defining a method named 'copyWith'.
settingsToUse = settingsToUse.copyWith(name: path);
^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
* 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 2m 8s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
i'm newborn in mobile application, please help me, what should i do?
i want run this sample by VS code.

Getting an error white running flutter application "FAILURE: build failed with an exception"

I am getting an error while running my flutter application through vscode the error "FAILURE: build failed with an exception"
I attach the full error below.
Since I am new to this environment I don't know about this, please help me, Thank you!
FAILURE: Build failed with an exception.
* Where:
Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1256
* What went wrong:
Could not determine the dependencies of task ':app:compileFlutterBuildDebug'.
> Index 1 out of bounds for length 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 18s
Exception: Gradle task assembleDebug failed with exit code 1

FAILURE: Build failed with an exception.I get this error

I went through all the threads but couldn't solve the problem. I keep getting this error every time I run the project.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':barcode_scan2:generateDebugProto'.
protoc: stdout: . stderr: D:\Yeni klasor\flutter.pub-cache\hosted\pub.dartlang.org\barcode_scan2-4.2.1\protos: warning: directory does not exist.
Could not make proto path relative: D:\Yeni klasor\flutter.pub-cache\hosted\pub.dartlang.org\barcode_scan2-4.2.1\protos\android_configuration.proto: No such file or directory
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 13s
Exception: Gradle task assembleDebug failed with exit code 1

Failed to build after upgrade to flutter 1.2

../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:28: Error: Type 'DiagnosticableMixin' not found.
class DatePickerTheme with DiagnosticableMixin {
^^^^^^^^^^^^^^^^^^^
../../flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.3.8/lib/src/datetime_picker_theme.dart:6:7: Error: The type 'DiagnosticableMixin' can't be mixed in.
class DatePickerTheme with DiagnosticableMixin {
^
FAILURE: Build failed with an exception.
* Where:
Script '/home/tfradebe/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 896
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/tfradebe/flutter/bin/flutter'' 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 28s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 29.1s
Exception: Gradle task assembleDebug failed with exit code 1
There is a fix in progress to solve this issue that affected many plugins. In the meantime, you can include the reference to flutter_datetime_picker like this
flutter_datetime_picker:
git:
url: https://github.com/ditheshthegreat/flutter_datetime_picker # Repo
ref: patch-1 # Branch name
This is the github related ticket

Could not run Flutter app after a long time

i have developed an application before two months, i need to add a new feature today so i opened the project to day. but i cannot compile the project , it throws errors only and i don't understand how to resolve it. i have cached_network_image , youtube_player_flutter packages.
i have pasted my error log below
Compiler message:
../../Developer/flutter/.pub-cache/hosted/pub.dartlang.org/youtube_player_flutter-
5.2.0/lib/src/player/raw_youtube_player.dart:55:30: Error: Getter not found: 'suspending'.
case AppLifecycleState.suspending:
^^^^^^^^^^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
* Where:
Script '/Users/flutter/Developer/flutter/packages/flutter_tools/gradle/flutter.gradle' line:
780
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/Users/flutter/Developer/flutter/bin/flutter'' 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 23s
FAILURE: Build failed with an exception.
* What went wrong:
Could not get unknown property 'ANDROIDX_WARNING' for project ':youtube_player' of type
org.gradle.api.Project.
* 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 23s
Finished with error: Gradle task assembleDebug failed with exit code 1