Can't use specific Icons in imported flutter project - android-studio

this might be a quick one.
I've imported a Flutter project which a colleague created via VS Code into Android Studio (via Git - Bitbucket).
(I've worked on another new Flutter project just this day.)
The problem is: some icons he used aren't found by the compiler for me.
Examples of working icons:
Icons.pregnant_woman
Icons.person
Icons.calendar_today
Not working:
Icons.qr_code
Icons.biotech
Also, no matter in which file I'm in, there's a hint window above stating: 'Pub get' has not been run and I get the option to run get dependencies (pub get) or upgrade dependencies (pub upgrade).
When I first imported the project, the compiler didn't even know what Flutter is. After I executed pub get the first time, most of the errors were gone. The only ones missing are the few icons. But the hint saying I didn't do pub get is still there which was never like this in my other projects.
What can I do?
Btw, pub outdated says dev_dependencies: all up-to-date and
Dependencies are all on the latest resolvable versions.
Newer versions, while available, are not mutually compatible.

I run into this problem a while ago. The way I managed to solve it is:
go to Vs code setting and search flutter create and disable Flutter Create Offline
I hope this is helpful!

Got it! Turns out I changed some internal flutter file some while back and it wouldn't upgrade the flutter version automatically until I did "flutter upgrade -force".

Related

How to use HttpClient in android studio app?

unfortunately this question was closed however it is spot on. Let me go through the steps as I am reproducing a legacy app issue that uses httpclient so switching is not an option YET (6 months out maybe).
create android studio app
try to use Httpclient and as he shows in the post above it is in red
I try to add this line in build.gradle to bring it in as a work around(even though core android also brings it in)
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
Then I get this error in android studio
`httpclient` defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for `httpclient` use `HttpUrlConnection` or `okhttp` instead), or repackaging the library using something like `jarjar`.
Ok, so I am using the wrong version so I run build scan and I see this so I bring this one in instead of the other version (android studio now sees HttpClient and can import it at this point)
I still get the same error though about conflicting android libs.
QUESTION: How do I fix the red in my legacy project and not have this error either?
My best bet seems to ignore the error. Will I have issues that I am not seeing though in the future?

Pubspec.yaml 1.22.1

So I am creating my application and decided to go to pubspec.yaml to see my fonts. And when I look at my pubspec.yaml, I only see this code. 1.22.1 . I don't know what happened. Last time I know, I re install my android studio because it got an error that I needed to fix and since the, this happened. What should I do? It doesn't have errors or bug my app works fine but how can I edit my pubspec if this happen

What is the difference between `flutter packages get` and `flutter pub get`?

I just upgraded Android Studio and saw flutter packages get changed to flutter pub get in "Tools > Flutter".
Does this have any change in the functionality? Or are they completely the same?
They both do the same thing. To prove this I created two exact same new projects and added exact dependencies
dependencies:
image_picker: ^0.6.4
Now in one of the project I ran the command flutter pub get and in another one flutter packages get , both of them in verbose mode to check what is happening behind the scenes.
I could see logically no difference at all except those time taken to execute(which doesn't matter). The rest of the contents in the file as exactly the same.
So yes, they are doing the same thing
They are the same.
flutter packages used to support only two subcommands including flutter packages get, but more commands were added later on.
And then, flutter packages was renamed to flutter pub. The former is now just an alias for the latter.
flutter packages get was not affected by the first change as it had already existed at that point, and its functionality has not been affected by the second change either as it was just a rename.
The pub command is specific to dart and is a set of tools for managing dart packages. You can get an explanation about it and its usage here.
pub get is shorthand for the pub get packages which is how packages are downloaded in dart projects. Adding the flutter keyword before it makes it so that the command is run by the flutter SDK, which will map it to the sdk's packages get command. Reference
As for using the two, they can be used interchangeably as the Flutter SDK will automatically change flutter pub get to flutter packages get inside flutter projects, and I imagine the change in Android studio is semantic in nature to make it more inline with typical dart style as dart developers will be used to running pub get.
When "flutter packages get" is executed, you will see
Running "flutter pub get" in xxx...
The two commands achieve the same results.
these both commands act as same, when we run flutter packages get it actually run the command flutter pub get
We can say flutter packages get is just syntactic sugar over flutter pub get

How can I uninstall a package that was installed by Nuxeo Studio?

I used Nuxeo Studio for research purposes and created a Schema and added it to my local server using the Nuxeo Chrome Extension is hot deploy.
Now, what if I need to uninstall the package?
I tried to use the ./nuxeoctl mp-uninstall <package-name-installer-by-studio> to achieve that. Apparently, it worked. However, my local server fails to start again and, when the hot reload is called again, it hangs up saying:
data/myWorkflow.zip not found in <path>/nuxeo-server-10.10-tomcat/nxserver/bundles/<package>.jar
also:
org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] org.nuxeo.ecm.core.api.NuxeoException: Failed to invoke operation: Service.HotReloadStudioSnapshot
I am led to think that this is badly done/programmed: there should be an error proof way to uninstall the packages installed by Studio, since Studio won't be the only tool to be used in a big project.
I managed to install/uninstall the package with another strategy: I didn't hot reload it with Nuxeo Chrome Extension. I just downloaded the package and installed it using Nuxeo-CLI. Then, I was able to uninstall it without any issues.
I noticed that this gives me more control since I can keep the package that was generated, I can inspect what changes were made (and understand what happened in a more open way), and then install/uninstall it manually.
Since I didn't figure out the problem that is with Nuxeo Chrome Extension, I chose not to use it for a while.

The parameter is incorrect

When I try to add a service reference to my project in Visual Studio I keep getting the error " The parameter is incorrect" I know it's not the code because it doesn't happen on my coworkers computer. I have uninstalled and reinstalled Visual Studio to see if the problem is with my installation. But that doesnt seem to fix it.
I am using visual Studio 2012.
Did anyone come across this issue before? Please help!
I had this problem with a project that was copied out of ClearCase. the .csproj file still had the reference telling visual studio that its still under CC. I removed the following references and it worked.
<SccProjectName>Rational ClearCase</SccProjectName>
<SccLocalPath>Rational ClearCase</SccLocalPath>
<SccAuxPath>Rational ClearCase</SccAuxPath>
<SccProvider>Rational ClearCase</SccProvider>
I had the same issue after updating SQLite plugin for windows phone.
It seems like the sqlite-net-wp8 project (which is a wrapper to work with the plugin) had some import method from that plugin and when the version changed the wrapper didn't work anymore.
The solution was to downgrade the sqlite plugin to a version that is compatible with the wp8 wrapper.
Edit: The wrapper had an update so I've upgraded both the plugin and wrapper and now the issue is fixed.
If it shows any project in your solution with "(failed)" next to it's name try to remove it and re-add it to your solution and it will tell you what the issue exactly is.
In addition to Frisons answer - the issue works aswell the other way round:
If you are using ClearCase, make sure that the entries mentioned by Frison are available in your project file. I just had this case that one of the projects in my solution did not (however) had these entries and i got the very same error. Adding these lines fixed this issue for me.
I got the same error for WindowsPhone project, after make a clear manifest the error disappeared.

Resources