How to use pjsip in flutter? - visual-studio

Hai I created flutter_module with the command flutter create -t flutter_module.
Now I want to use pjsip in my flutter project.I provided flutter_pjsip and url in dependencies.But When I run flutter pub get in terminal it says ,
Because flutter_module depends on flutter_pjsip from unknown source "url", version solving failed
Can anyone please help me to integrate pjsip into vs code flutter project.Thanks in advance.

Related

Azure pipeline is using cached version of Flutter webview package

Local specs:
MacOS v13.0.1
xCode 14.1
I've a flutter project that uses Flutter InAppWebview package
flutter_inappwebview: ^5.7.1
, and its working as expected, but when I'm trying to build the project using Azure pipeline, I get this error:
Swift Compiler Error (Xcode): Cannot call value of non-function type 'String?'
/Users/runner/hostedtoolcache/Flutter/3.3.8/macos/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.7.1+2/ios/Classes/MyCookieManager.swift:293:43
As you can see, the pipeline is using another version from flutter_inappwebview package which is 5.7.1+2 !
Any idea why or how I can reset this .pub-cache on the azure pipeline?
In a similar question on how to clear the .pub-cache folder for flutter #CopsOnRoad's answer explains flutter has the following command for clearing the cache.
flutter pub cache clean
Run this command in a task before starting the actual build.

flutter 3.3 ShaderCompilerException ink_sparkle.frag failed with exit code -1073740791

Since updating my flutter to 3.3+ everytime I try to build my project there is this error on the console:
Target web_release_bundle failed: ShaderCompilerException: Shader compilation of
"C:\flutter\packages\flutter\lib\src\material\shaders\ink_sparkle.frag" to "build\web\assets\shaders/ink_sparkle.frag"
failed with exit code -1073740791.
Compiling lib\main.dart for the Web... 52,1s
Exception: Failed to compile application for the Web.
I've tried running flutter clean, deleting the project and downloading it again from github, clearing pub-cache from c:\flutter folder and also deleting flutter and installing it again but nothing worked
If you are using a mac try to open 'Security & Privacy' and give permission to the app that requests it.
It may seem out of context. But it worked for me!
This error is present since 3.3.0 and until today (3.3.2), it wasn't fixed... but there are some workarounds:
1- Downgrade flutter to 3.0.5 (some updates to the libs you use won't be avaliable as they are migrating to 3.3+)
2- They are currently tracking the issue on github and the 'temp fix' is checking if your project is in a folder with a utf8 character (like 'â', 'Á' and maybe some chinese or japanese characters) and moving it to a folder only with ASCII characters.
Ex:
from -> C:\Users\user\Área de Trabalho\
to -> C:\Users\user\

Cloud Firestore not working only on iOS | Flutter

I tried to add to my flutter app services like firebase and Firestore.
I've already done this on windows, now I am on Mac.
I followed the official guide at this link
When I build the android app it works fine, but on iOS I keep getting errors like this
How can I fix this?
Already tried to disable 'Use map Header' option, and to boot on legacy emulator.
I have the following configuration for Firestore in iOS:
pubspec.yaml
firebase_core: ^0.4.1+3
cloud_firestore: ^0.12.10
# other dependencies
execute the following command:
flutter pub get
Download the GoogleService-Info.plist file, and copy it to the path nameApp/ios/Runner
Update Firebase with the command: pod update Firebase
NOTE: at some point in a project I had problems with firestore and what I had to do was the following, execute command flutter clean
in the following link it can be a video on youtube where they make an explanation of the firebase configuration for iOS link

how to solve × Build failed. Standalone build failed! in android expo?

I am a beginner to expo. I would like to generate APK,
using expo build: android but I get this error (× Build failed.
Standalone build failed).
Please, how to solve this problem.?
thank you
first of all, you change your icon in the app.json icon extension .png required then delete .expo file in your project then
expo build:android -c

Error: No pubspec.yaml file found. in MAC

I am new in flutter. After installation on MAC , while running "flutter run" in terminal , I got error as :
Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.
Anyone please can help me to fix this error ??
Assuming you did not create the project: Open Android Studio or your IDE and create a new flutter project. Also make sure that you set up your environment correctly like in the docs.
This command you are trying to run flutter run is meant to compile the project in the current directory and then run it on an emulator or device.

Resources