My pubspec.yaml:
cupertino_icons: "^0.1.2"
firebase_auth: "^0.15.5+3"
firebase_core: any
firebase_database: "^3.1.3"
Here is the error:
/Users/sunny/flutter/bin/flutter --no-color packages get Error
detected in pubspec.yaml: Error on line 26, column 7: Expected a key
while parsing a block mapping. ╷ 26 │ cupertino_icons:
"^0.1.2" │ ^ ╵ Please correct the pubspec.yaml file at
/Users/sunny/AndroidStudioProjects/flutter_app1/connect_world/firebase_setup/pubspec.yaml
Process finished with exit code 1:
pubspec.yaml file require a correct usage of identation (using space and no tabs), see here for more info : https://learn.getgrav.org/16/advanced/yaml#yaml-basic-rules
Edit your file with this :
dependencies:
flutter:
sdk: flutter
cupertino_icons: "^0.1.2"
firebase_auth: "^0.15.5+3"
firebase_core: any
firebase_database: "^3.1.3"
Related
Error while dart run build_runner build
Log: https://pastebin.com/k0gpWuun
Verbose Log: https://pastebin.com/BNgVh6pV
pubspec.yaml:
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
webview_flutter: ^2.0.9
flutter_inappwebview: ^5.3.2
url_launcher: ^6.0.8
flutter_svg: ^0.22.0
uni_links: ^0.5.1
flutter_webview_plugin: ^0.4.0
flutter_share: ^2.0.0
package_info_plus: ^1.0.6
dio: ^4.0.0
sign_in_with_apple: ^3.0.0
google_sign_in: ^5.1.0
json_serializable: ^4.1.4
build: ^2.1.0
get_it: ^7.2.0
dev_dependencies:
flutter_test:
sdk: flutter
build_runner:
flutter clean and other cmd's not working for me
Reinstall Flutter, migrate to Linux (heh), reinstall sdk's
Please update your pubspec.yaml file to
dependencies:
analyzer: ^5.4.0 <- add this
dev_dependencies:
build_runner: ^2.3.3 <- add into dev_dependecies
I'm trying to build the apk of my project but I got:
* What went wrong:
Execution failed for task ':audioplayers:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:C:\Users\pc\.gradle\caches\transforms-3\1c118aff0ddf4faaf93ec03867fed550\transformed\core-1.9.0-rc01\res\values\values.xml:104:5-113:25: AAPT: error: resource android:attr/lStar not found.
I don't know what this means, nor how to solve it, I saw online that I should have this line
implementation "androidx.core:core-ktx:1.6.0"
in mine app/build.grande but I tried and nothing changes.
Plugins I'm currently using:
cupertino_icons: ^1.0.5
path_provider: ^2.0.11
encrypt: ^5.0.1
flutter_speed_dial: ^6.0.0
telephony: ^0.2.0
audioplayers: any
flutter_audio_recorder2: ^0.0.2
flutter_local_notifications: ^9.7.0
flutter_launcher_icons: ^0.9.0
camera: ^0.10.0+1
image_picker: any
imgur: any
permission_handler: ^10.0.0
flutter_sms: ^2.3.3
audio_session: ^0.1.10
flutter_sound: ^9.2.13
flutter_sound_platform_interface: ^9.2.13
lottie: ^1.4.1
file_picker: ^5.0.1
environment: ^0.0.2
argon_buttons_flutter: ^1.1.0
flutter_native_splash: ^2.2.7
background_sms: ^0.0.4
animations: ^2.0.3
Override the http package to the latest one by including dependency_overrides in the pubspec.yaml. It's going to be like the following:
dependency_overrides:
http:
version: ">=0.13.5"
Also, set audioplayers version to ^1.0.1.
dependencies:
audioplayers: ^1.0.1
# ...
when I try to build apk in my flutter project
the terminal show me a lot of lines problems in Gradle I tried to use flutter build apk no sound null safety and also the project is related to firebase
Could not determine the dependencies of task ':app:lintVitalRelease'.
Could not resolve all dependencies for configuration ':app:lintClassPath'.
Could not create task ':app:minifyReleaseWithR8'.
> javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Fin pr�matur�e du fichier.]
my dependencies
version: 1.0.0+1
environment:
sdk: ">=2.16.2 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
firebase: ^9.0.3
firebase_core: ^1.15.0
firebase_auth: ^3.3.16
cloud_firestore: ^3.1.13
dev_dependencies:
flutter_test:
sdk: flutter
I'm a newbie in flutter, what should I do in this case?
Thank you all.
This is the Error message
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Error on line 14, column 6 of pubspec.yaml: Expected ':'.
dds: 2.0.4
^
and in the line 14, it's a comment out like this
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
I can't figure it out what cause this error
This is my pubspec.yaml file
version: 1.0.0+1
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
firebase_auth: ^3.1.4
cloud_firestore: ^2.5.3
firebase_core: ^1.8.0
firebase_storage: ^10.0.6
provider: ^6.0.1
image_picker: ^0.8.4+3
file_picker: ^4.1.6
transparent_image: ^2.0.0
shared_preferences: ^2.0.8
qr_code_scanner: ^0.5.2
cupertino_listview: ^2.0.0
zefyr: ^0.12.0
cupertino_icons: ^1.0.2
image_picker_for_web: ^2.1.4
firebase_storage_web: ^3.0.4
shared_preferences_web: ^2.0.2
url_launcher_web: ^2.0.4
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^1.0.0
flutter:
uses-material-design: true
assets:
- assets/images/
When I use flutter command, it always jump out
This is the Error message
Error: Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Error on line 14, column 6 of pubspec.yaml: Expected ':'.
dds: 2.0.4
^
I was trying to add audioplayers: ^0.13.2 to the pubsec.yaml file.
At first it was working then after a while when I run the app there's an error in the Build:
Could not determine the dependencies of task ':audioplayers:compileDebugAidl'.
Failed to find target with hash string 'android-28' in: C:\Users\myRepo\AppData\Local\Android\sdk
My pubsec:
flutter:
sdk: flutter
http: ^0.12.2
firebase_database: ^6.0.0
audioplayers: ^0.7.8
firebase_messaging: ^7.0.3