Flutter pubspec.yaml errors [closed] - flutter

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
So i discovered that i get some errors from the pubspec.yaml actually 740 or something like that, i don't know what i did wrong. it seems that everything inside is wrong event though i haven't added anything.
I tried removing some code but it makes no difference. I think i added something in the code that's wrong. What could be wrong with this?
Here is a screenshot: https://gyazo.com/376d866b1b4e334df0481a79d45231cf

flutter upgrade
flutter clean
flutter pub get
It would work fine.

From what I see there's nothing really wrong with your code all you need to do is try flutter clean && flutter pub get or killall -9 dart (if you're on macOS) or a combination both. You might also want to run flutter upgrade to make sure you're on the latest version. Lastly, think you should share the full code so others can copy and look at it in case there are other issues.

Related

Firebase for iOS app is not working as expected [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I have been having this issue where I follow all steps to install and run firebase on my app but when I attempt to use it, there is no sign of Firebase working. I create a new profile and even if all the parameters are right, it displays an error. at first I though it was me until I downloaded a working project and tried to create an account on that and it did not connect to firebase. Does anyone here have an idea of what i should do?
note: I followed all steps on firebase's site and I even linked a project but it seems the feature to test connection is no long there.
Completed**** After some struggle i took everyones advice and i instead re-did the project following the same steps. it seems as if i had deleted the pod file at the beginning creating connection issue and it seems to have solved everything. I apologize for the vagueness of everything but being new i wasnt sure how else to explain myself. thank you to everyone who had helped!
As #jnpdx mentioned in the comments, it is very difficult for others to know what the exact issue is without more information.
However, I'll take a stab in the dark. Since you tried with a working project and it still didn't work, I'd say it's not related to your code. You are probably missing a step that was described in the Firebase Docs. I would re-read them, paying close attention to the authentication section, and hopefully you will find the step you are missing. It could be something as simple as not enabling a certain authentication provider, or forgetting to add the GoogleService-Info.plist file into your project (if you're using Google Sign-in).
Best of luck.

Flutter fix not givving suggestions for quick fix deprecated methods/parameters

According to the documentation on the new Flutter 2
(https://flutter.dev/docs/development/tools/flutter-fix), whenever a deprecated function is detected it should present an error and a quick fix.
I got the errors, but the quick fix isn't show, only the option to ignore hint.
I'm using vscode, already tryed to use vscode insiders, switch to flutter channel dev (Flutter 2.1), android studio is the same...
Also, when I run "dart fix --dry-run" no warnings are shown:
Computing fixes in project_test (dry run)...
Nothing to fix!
flutter fix is still an early experiment, and can only "fix" things for which it has a before/after mapping for analyzer-reported issues. It will very likely get better over time. Be sure you search the issues list and star any similar issues, or write one of your own so the team knows it's important.
It looks like its a weird issue with dart analyser.
In this particular case only happens if overflow is the only argument and there is a trailing comma.
https://github.com/dart-lang/sdk/issues/45242
I couldn't make it work with other deprecated objects like FlatButton and RaisedButton,
but as Randal Schwartz said flutter fix is still an early experiment

How to keep AdColony with Proguard in Unity? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I'm using Proguard and R8 minify on my Unity Game in order to handle Admob Mediation. I integrated AdColony into the game, but during runtime on device it seems that AdColony is removed in the cleanup before the APK is made.
I am unsure what keep line I need to add to my proguard-user file in order to make AdColony work.
Does anyone know?
For example, the following example is from a line which is supposed to set GDPR settings for AdColony:
2020/12/17 17:05:02.861 9593 9661 Error Unity AndroidJavaException: java.lang.NoSuchMethodError: no non-static method with name='setGDPRRequired' signature='(Z)Ljava/lang/Object;' in class Ljava.lang.Object;
Thanks in advance!
I managed to find the answer myself, so first I'll say what needed to be added, and then how I figured out what to add.
The fix for me was to add the following line to my proguard-user.txt file:
-keep class com.adcolony.sdk.** { *; }
From what I saw, in my Unity project under Assets/Plugins/Android, I had a bunch of packages, one of them named com.adcolony.sdk-4.3.0. Because the naming convention seemed to match the files which usually appear in the proguard file, I tried adding the aforementioned keep line to my file, and it worked!
I will say that I know almost nothing when it comes to proguard. If this was a mere coincidence and the file I kept using that command for not coming from the package I found in the Android directory, please comment down below so I and whoever discovers this in the future will be better informed.

Live SASS Compiler in VSCode is not working? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
Anyone have an idea why live sass compiler extension on vs code is not working?
I did try to reinstall extension and to edit path saving settings and even to reinstall vs code but nothing.
The problem is that it worked for a short period of time and just stopped, like it is some bug or something because it is constantly showing 'working on it..' but nothing is happening. Is there some issue with extension or it could be up to myself?
Please if someone have an idea what could cause this problem, I will appreciate answer.
thank you.
You more than likely have invalid syntax somewhere in your scss.
I once had the same issue that was caused by an empty property.
Empty properties such as background-image: linear-gradient(), url(); will hault the compiler which will therefore not continue watching your scss, thus the eternal "working on it..".
I had the same issue so I went through my SASS code and realized I had added a media query that was empty. I recommend you go through the whole source making sure you have all ';' and values added. If you think it could be a line, try deleting or commenting out and running it again!
You probably have installed some other extension that is disabling SASS from running as it should. Trying uninstalling other text/styling extensions.

UIDocument/Xcode configuration

I am trying to follow this tutorial...
https://www.raywenderlich.com/131668/document-provider-tutorial
I got to this part ...
But I cannot figure out where I find this in Xcode 8.0 which means I get this error message ...
Sorry I am sure this is an easy question? Looking at the finished project, it reconised Note as type, yet I cannot seem to see the class in the starter project!! driving me mad!!!
Bon, you learn something everyday... went thru this six or more times but at last noticed Note.swift missing here from Starter Project Instructions, obvious isn't it, not.