enter image description here
this error I experienced after upgrading flutter 3.7.0, before that there was no error like this, in the env section it was also correct C:src\flutter\bin, who knows if anyone is having problems like this
Related
I'm trying to set up Admob Native ads on Flutter following the official documentation, however for my surprise, nothing seems to work because I keep getting the same error:
Copy (12-error)\android\app\src\main\java\com\app\appname\adFactoryExample.java:47: error: cannot find symbol
adView.setIconView(adView.findViewById(R.id.ad_app_icon));
This issue seems common so obviously, I tried the popular solutions including "flutter clean", changing the "android/app/build.gradle" file to 31 and add: android.useAndroidX=true android.enableJetifier=true to the "gradle.properties" file.
But nothing worked and I'm still having the same frustrating problem!
Seems that this error is related with the NativeAdFactory file (eg: ListTileNativeAdFactory.java) and the layout at app/src/main/res/layout/list_title_native_ad.xml
This is how I fix it: I went to the Google Codelabs example at https://github.com/googlecodelabs/admob-inline-ads-in-flutter/tree/main/complete and copied those files exactly like the example. That solved the issue.
This error is showing all of a sudden when I opened a Flutter project. When I tap the editor, this message is showing,
Also, the editor is not suggesting anything, not even error messages.
The last thing I did was installed the GitLens extension and initialize a repo for the first time.
Reinstalled VS Code and disabled all the extensions still no result. Can someone help me with the issue?
VS code version: 1.59.1
Flutter: 2.2.2
Dart: 2.13.3
I just updated my flutter with the flutter upgrade command. Now my version is 2.2.3 and it has solved the issue.
I get an error message while running a Flutter project. I tried using webview_flutter(1.0.7) plugin with Flutter 1.22.5(stable) and Flutter 1.26.0-2.0.pre.167.
This is a fresh new project with only webview_flutter plugin dependency.
I am getting the above error that package webviewflutter does not exists.
Please help to solve this issue.
You may want to check if you made the correct entry for the package in your pubspec.yaml and after that does get run successfully.
Just a tip:
It is better to paste the error text, rather than a screenshot.
I'm new to flutter and trying to install it by following a video on youtube.
But I'm getting error and cannot proceed.
I'm getting this error,
"Because flutter_tools depends on pubspec_parse 0.1.5 which doesn't
match any versions, version solving failed. Error: Unable to 'pub
upgrade' flutter tool. Retrying in five seconds... (9 tries left)"
Here's what I have done.
vim .bash_profile
changed the path to "export PATH="$PATH:[PATH_TO_FLUTTER_GIT_DIRECTORY]/flutter/bin" (I changed the[PATH_TO_FLUTTER_GIT_DIRECTORY] to my path, something like "user/name/ ... developer/. Also I press I key to insert them. If you know how to fix it, please let me know. I searched on Google but couldn't figure out the solution.
I did an update SDK build tools and now I am getting the following error:
[2015-12-09 10:22:01 - MainActivity-CordovaLib] Could not find MainActivity-CordovaLib.apk!
Any ideas ?
I ended up importing my project into android studios and running it from there. I would still like to know how to solve this issue for eclipse though.