Attribute application#label value=(tst) from (unknown) in flutter - flutter

getting this error Attribute application#label value=(tst) from (unknown) in flutter
Attribute application#label value=(tst) from (unknown)
is also present at [com.wuhenzhizao:titlebar:1.2.0] AndroidManifest.xml:13:9-41 value=
(#string/app_name).
Suggestion: add 'tools:replace="android:label"' to <application> element at
AndroidManifest.xml:9:5-41:19 to override.

Related

I used Carousel_Slider package in my flutter app and faced an issue?

I used Carousel_Slider package to build an image slider for my flutter app and I copied the parts of the code that I needed .SO after runnig the app I faced an issue that says ...
: Error: The value 'null' can't be assigned to a variable of type 'List' because 'List' is not nullable.
carousel_slider.dart:59
'List' is from 'dart:core'.
'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/framework.dart').
framework.dart:1
: items = null,
This is the whole DEBUG CONSOLE..
I used Carousel_Slider package to build an image slider for my flutter app and I copied the parts of the code that I needed .SO after runnig the app I faced an issue that says ...
: Error: The value 'null' can't be assigned to a variable of type 'List' because 'List' is not nullable.
carousel_slider.dart:59
'List' is from 'dart:core'.
'Widget' is from 'package:flutter/src/widgets/framework.dart' ('../../Documents/flutter/packages/flutter/lib/src/widgets/framework.dart').
framework.dart:1
: items = null,
Target kernel_snapshot failed: Exception
2
FAILURE: Build failed with an exception.
Where:
Script 'C:\Users\Islam\Documents\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151
What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\Users\Islam\Documents\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 3s
Exception: Gradle task assembleDebug failed with exit code 1
based on error logs ,
the List that you are giving in CarouselSlider Widget is null,
print your list in build to check what is the value of List that used in CarouselSlider.

error: The named parameter 'child' isn't defined in Dart Flutter

For some reason it's throwing me this error for line 19 (highlighted)
The named parameter 'child' isn't defined.
Is there anything I'm not seeing?
Thanks!
-T

Error when trying to build flutter app for ios

When I run flutter for my physical iOS device it fails to build. I have tried to resolve the problem using flutter clean.
Failed to build iOS app Error output from Xcode build: ↳
** BUILD FAILED **
Xcode's output: ↳
/Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:88:37:
warning: incompatible pointer types sending 'FlutterEngine ' to
parameter of type
'NSObject * _Nonnull' [-Wincompatible-pointer-types]
binaryMessenger:_headlessEngine];
^~~~~~~~~~~~~~~
In module 'Flutter' imported from /Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.h:2:
/Users/arhanbusam/flutter/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-armv7_arm64/Flutter.framework/Headers/FlutterChannels.h:178:74:
note: passing argument to parameter 'messenger' here
binaryMessenger:(NSObject)messenger;
^
/Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:417:74:
warning: 'initWithImage:' is deprecated: first deprecated in iOS 10.0
Use
-initWithBoundsSize:requestHandler: [-Wdeprecated-declarations]
MPMediaItemArtwork *albumArt = [[MPMediaItemArtwork alloc] initWithImage: artworkImage];
^
In module 'MediaPlayer' imported from /Users/arhanbusam/.pub-cache/hosted/pub.dartlang.org/audioplayers-0.15.1/darwin/Classes/AudioplayersPlugin.m:7:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h:240:1:
note: 'initWithImage:'
has been explicitly marked deprecated here
(instancetype)initWithImage:(UIImage *)image MP_DEPRECATED("Use -initWithBoundsSize:requestHandler:", ios(5.0, 10.0));
^
2 warnings generated.
warning: MinimumOSVersion of '9.0' is less than the value of IPHONEOS_DEPLOYMENT_TARGET '13.0' - setting to '13.0'. (in target
'Runner' from project 'Runner')
building file list ... done
App.framework/
App.framework/App
App.framework/Info.plist
App.framework/flutter_assets/
App.framework/flutter_assets/AssetManifest.json
App.framework/flutter_assets/FontManifest.json
App.framework/flutter_assets/NOTICES
App.framework/flutter_assets/isolate_snapshot_data
App.framework/flutter_assets/kernel_blob.bin
App.framework/flutter_assets/vm_snapshot_data
App.framework/flutter_assets/assets/
App.framework/flutter_assets/assets/sound1.mp3
App.framework/flutter_assets/assets/sound2.mp3
App.framework/flutter_assets/fonts/
App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf
App.framework/flutter_assets/fonts/NotoSans-Bold.ttf
App.framework/flutter_assets/packages/
App.framework/flutter_assets/packages/cupertino_icons/
App.framework/flutter_assets/packages/cupertino_icons/assets/
App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf
sent 40468200 bytes received 348 bytes 26979032.00 bytes/sec
total size is 40462062 speedup is 1.00
building file list ... done
Flutter.framework/
Flutter.framework/Flutter
Flutter.framework/Info.plist
Flutter.framework/icudtl.dat
sent 64435719 bytes received 92 bytes 42957207.33 bytes/sec
total size is 64427549 speedup is 1.00
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Frameworks/App.framework/App: signed bundle with Mach-O thin
(arm64)
[io.flutter.flutter.app]
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Frameworks/Flutter.framework/Flutter: signed bundle with
Mach-O universal (armv7 arm64)
[io.flutter.flutter]
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Info.plist: Could not extract value, error: No value at that
key path or invalid key
path: NSBonjourServices
/Users/arhanbusam/Dropbox/Documents/Arhan-Flutter/simple_exercise_timer/build/ios/Debug-iphoneos/Exercise
Timer.app/Info.plist: Could not extract value, error: No value at that
key path or invalid key
path: NSLocalNetworkUsageDescription
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/cp", line 5, in
from run.cp_run import cp_start
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/run/cp_run.py",
line 1, in
from settings.first_load import check_if_first_time
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 114, in
check_if_first_time()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 108, in check_if_first_time
first_time()
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/settings/first_load.py",
line 70, in first_time
confirm = input()
EOFError: EOF when reading a line
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the precompiled application for the device.

GTK warning when running python

When running a python program in the alacritty terminal, I get the following warning:
Gtk-WARNING **: 16:48:40.877: Theme parsing error: gtk.css:6321:10: 'height' is not a valid property name
I have had a look in ~/.config/gtk-3.0/settings.ini and this is what I get.
[Settings]
gtk-application-prefer-dark-theme=0
gtk-button-images=1
gtk-cursor-theme-name=Pop
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=1
gtk-font-name=Noto Sans, 10
gtk-icon-theme-name=candy-icons
gtk-menu-images=1
gtk-primary-button-warps-slider=0
gtk-theme-name=Sweet-mars
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
The gtk.css file just has import 'colors.css';. I can't find a 'height' parameter, so I'm not sure how to resolve the warning. However, I notice that some of the parameters in settings.ini are not up-to-date (e.g. I'm currently using 'sweet-dark' theme, not 'sweet-mars').

CachedNetworkImage throwing error after upgrading to latest Flutter Stable version

I upgraded Flutter today to version v1.12.13 but when I run the app, I get the following error -
Compiler message:
../../../../.pub-cache/hosted/pub.dartlang.org/cached_network_image-1.1.3/lib/src/cached_network_image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompleter load(CachedNetworkImageProvider key) {
^
../../flutter_src/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
../../../../.pub-cache/hosted/pub.dartlang.org/multi_image_picker-4.5.9/lib/src/asset_thumb_provider.dart:31:24: Error: The method 'AssetThumbImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompleter load(AssetThumbImageProvider key) {
^
../../flutter_src/flutter/packages/flutter/lib/src/painting/image_provider.dart:403:24: Context: This is the overridden method ('load').
ImageStreamCompleter load(T key, DecoderCallback decode);
^
Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
build failed.
FAILURE: Build failed with an exception.
I am using the latest version of CachedNetworkImageProvider.
This currently looks like an active issue. Changing the version to 2.0.0-rc fixes the error for time being.
As mentioned in the official page
Breaking change with ImageProvider.load in Flutter 1.10
The Flutter team made a breaking change with the ImageProvider in Flutter 1.10.15 (currently Master channel only).
If you are experiencing one of the following errors upgrade to 2.0.0-rc.
switch to cached_network_image: ^2.0.0-rc
If the issue still persists then try flutter clean and run.