The message "Cannot create a project with in the Flutter SDK" came out and it was resolved when I created a new project in a directory outside the flutter. What is the reason for this kind of problem?
The error message is given out when you try to create a flutter project inside the flutter SDK. Creating a project inside the SDK is not supported.
Error message is there so that people would not be able to create a project inside the SDK.
This would be the basic idea, I am not able to give any other reasons without more information.
Related
I want to add google machine language kit to my flutter project, when i do try adding the google ml kit this error appears, what could be the problem and how can i fix it?
i tried closing editor/ doing a flutter clean/ and closing my app
i have the latest firebase and firestore.
my initial problem was I used the image label kit at the start, when i tried to do so this appeared
MissingPluginException(No implementation found for method vision#startImageLabelDetector on channel google_mlkit_image_labeler)
so I tried closing the editor and doing a
flutter clean
it did nothing but bring up the other problem which is
FirebaseException ([cloud_firestore/unavailable] The service is currently unavailable. This is a most likely a transient condition and may be corrected by retrying with a backoff.)
The error that you have encountered initially from plugins used are usually caused by either outdated plugin versions or the downloaded plugin not building properly.
Try to run these steps serially then close your code editor and check again:
flutter clean
flutter pub get
flutter run
When flutter clean is executed and then flutter pub get it will help generate build files again. You can also try to update the plugin version and check.
Find the example app here and similar examples as below:
Missing Plugin exception issue
Missing Plugin exception on implementation
Flutter unhandled exception missing plugin
I have written a Flutter app which implements several deep links with package uni_links. The deep links work correctly with adb commands. Then I created actions.xml in this path:
D:\Android\AndroidStudioProjects\FlutterProjects\garage_controller\android\app\src\main\res\xml\actions.xml
I also added the following lines in AndroidManifest.xml:
<meta-data
android:name="com.google.android.actions"
android:resource="#xml/actions" />
Android Studio highlighted "#xml/actions" in red and complains that it cannot resolve the symbol. I have other parts of AndroidManifest highlighted red. I guess these errors are because of Flutter.
I uploaded the app to Google Play and started internal testing. When I ran App Action Test Tool (AATT), I got the following error:
No Android Module with actions file reference found. You need one Android Module with an actions file reference.
My questions are:
Does App Actions work in a Flutter App?
Does AATT work on a Flutter App?
Why do I get the "cannot resolve symbol" error for "#xml/actions"? I think I put everything in the right place. Thanks for your help.
I got it fixed. Basically everything was done correctly in my Flutter app. The path of actions.xml was also correct. The issue is with AATT which does not know where to find actions.xml in a Flutter app. I just had to open the Android portion of the app in Android Studio. Then AATT knew where to find the file. Google did not put a lot of AI in its tool. More details in here: https://issuetracker.google.com/issues/204233238
I've found this code for flutter home automation application.
but it was wrote in an older version of flutter, which i tried many times to start it but i couldn't make it,
last best thing that i have ever came to was that i could could mergrated the application to Android X and the application was starting but when i try to sign up a new mail inside it it says,
Error fetching data.
It dosen't use Firebase to store email it just uses a SQL package.
if any one can help to git the code and upgrade it for me to use it i will be very thankful :D.
Here is the link,
https://github.com/mlinarevicMateo/home-automation-flutter
The app is dependant on a webservice to run. Check lib/utils/network_util.dart. So you won't be able to get it run unless you write a new backend.
As the project was created in an older version of flutter you might be missing some latest flutter modules you can add those to your existing project by running this command within your project directory.
flutter create .
Not able to create a new flutter project in Android Studio, the related setting is added properly but still, the project is not getting created.
Added the flutter SDK in the path (C:\src\flutter\flutter) and dart plugin is also added to Android studio.
I have created the new project like this File -> New -> New Flutter Project -> Flutter Application, then Android studio opens a pop up "creating new project" and getting stuck there for more than 1hr but a new project is not created.
There was previously filed issue ticket related to this issue. If you'll try to check this thread, these 3 things could be the culprit:
There are 3 things that you have to check:
Make sure that the flutter SDK isn't in a location that requires some kind of privileges from admin.
Make sure the Flutter SDK is in a folder that doesn't contain any spacing in names. For ex. C://src/flutter is right and C://sr
c/flutter is wrong.
Android Studio must have a path of Flutter and Dart SDK. For that go to Setting--> Languages and Framework-->Dart/Flutter
I am a new cocos2d-x gaming developer for the iPhone. I want to share a screenshot of my game on Facebook and Gmail. I am using the Sharesdk.framework but when I drag and drop the Sharedsk folder and framework in my project, multiple erros generate in the project so I'm unable to use it. Is there any solution for resolving these errors? (I'm getting errors such as "jni.h file not found" and "sharesdkcoreservice.h" not found.)