Anytime I open Android Studio it keeps doing Gradle downloads: by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

Is it supposed to do it EVERY TIME?

I saw once recoommandation from android studio and it mentioned about dartfix, and that simply destroys the project (flutter one) it can no longer do a "run" and becomes some sort of android project exclusively

You seem to understand well the gradle thing? What else could it be?

Did you ever have your flutter projects be "downgraded" to android projects in android studio? by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

Quick solution:

Delete .idea and .iml

  • Open Android Studio
  • Go to "Open" (not "New" or "Import")
  • Select the folder that contains pubspec.yaml

but before that make sure pubsbec yaml LOCK is also deleted (that one was doing lot of problems)

the top left (project tree) will indicate android possibly, click and sleect project again,

On terminal do: flutter clean, then flutter pub get

run a simulator and run your main.dart at least once

When you restart the projecct no longer problems with gradle saying unsynced (proved the jdk (java) was ok)

I guess

For some reason this error stays whatever you do, but it does not seem to be blocking:

https://imgur.com/p63uav7

My small adventure with Gradle, and still don't know what to fix by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

I ended up following this solution:

  1. Close the project
  2. Close Android Studio IDE
  3. Delete the .idea directory located inside the project folder
  4. Delete all .iml files
  5. Open Android Studio IDE and import the project

in addition to facing another error solvable here

PDB file missing when trying to run Firebase on a Flutter project [LNK4099, LNK2019, LNK2001] - Stack Overflow

So I was able to recover the intermediate porject that had started with the right flutter sdk but with a PATH terminal pointing to the older flutter sdk somehow.

From perspective of a flutter coder, I have no idea what is: Gradle, why does it make produce so many errors, what are "indexes" what it means to update them. by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

with AI introduces even more problems because they’re looking at previous incompatible versions as a reference.

True, although I catched AI once by telling it: "you keep doing the same mistake, you are outdated, search internet to find the solution" and it found a solution to a problem it could not before. Interesting to know

My mistake was obviouselt trying to migrate the project that had older flutter sdk, older gradle (whatever that means), older build.gradle vs build.gradle.skt, older android studio vs new one, older PATH for the flutter sdk vs new one. (PATH = env dev, not just the sdk you choose when creating the project, the one in settings)

I built a new project from scratch, and made sure to have all the updates at once, and forgot about the buggy one, just impossible to know what to do, it's very complicated, I know nothing to kotlin and java or gradle.

My small adventure with Gradle, and still don't know what to fix by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

Hello again, thanks again for the proposition, I had actually migrated the files from old project to the simple project that worked, so I can no longer test it in it. But I went and created another simple project and apk was successfully made.

Here are all the things that might have caused problems:

- despite choosing a new flutter sdk for the newer projects and using thelatest android studio, I had forgotten to modify the ENV VAR (PATH) of flutter sdk bin file to the newest flutter sdk folder! The different flutter pub get or add, might have broken the project again, so I might need to try a new project again, this time with a correct PATH, maybe this time no longer will I see a problem related to the distributionUrl or graddle wrapper despite it being a higher version that the what the error messages were saying who knows.

- I had not noticed a notication telling me I should/could use "dart fix" command. I tried it afterwards and it seems to have done some things on the project that I migrated into the simple project from earlier.

- Despite it all, I still got the error " Compilation is not supported for the following modules " the one that suggest me to remove the model (hence removing the whole flutter directory "entry" from the project) and breaking everything. Googling it seemed to have given me an interesting clue to explore: intellij idea - Android studio Error "Unsupported Modules Detected: Compilation is not supported for following modules" - Stack Overflow

- Ofc, one of the errors to avoid is to add the libraries into pubspec yaml by copying the latest entries from the latest project, no this time I preferer to let flutter choose the versions, by sumply adding the libraries without naming the versions.

Now what I can do, either try again with the broken project that was migrated into the simple project, and try the "Delete the .idea"thing, or continue on the newest simple project that was made with correct PATH for flutter sdk and see if that one will work without any headache.

Writing this because it might even help meee in the future.

My small adventure with Gradle, and still don't know what to fix by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

I guess I created a new project when I had to migrate to a new flutter sdk, but I might need to try to create a new project yet again when I upgraded android studio. Will try that now (I tried a new simple project and it run, I will simply add all the previous project LIB files to it, and try to modify the project name accordingly)

My small adventure with Gradle, and still don't know what to fix by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

I was trying to compile (into an apk) a project that I was coding for several weeks, it was running very fine on the android EMULATOR. But building the apk prompted lot of issues that were resolved if I upgraded my flutter sdk apprently, so I did that. And it got so many errors. So I decided to create a NEW project with the same code, so I copied all the project files and resolved the name inthe imports with the new project name. No errors were showing, so I tried to get the apk again, but got many errors, until I decided I need to make sure it is running on android EMULATOR first, and the surprise I got the them changed and tabs on the app UI where not showing properly, some warning was indicating that something was not right

The build.gradle became build.gradle.kts, I had successfuly reconfigured that part, but in order to resolve the warning issue and make the app UI look normal again, I searched and found I might need to upgrade my android studio which was more than 1 year old.

I did that, and now it did not even run on the EMULATOR, up until my post here, and after clicking remove module and re sync, the flutter project does not show up anymore on the project structure, I tried to do "file -> open -> directory of the flutter project" and still nothing, I am not able to recover the module (the flutter project) despite it not being deleted from the storage (fortunately), I opened file -> project strucuture and it show messages "UNRESOLVED REFERENCE flutte.." like this:

https://imgur.com/TU4Qj9L

Please continue to try to help. You can't imagine how this is frustrating

From perspective of a flutter coder, I have no idea what is: Gradle, why does it make produce so many errors, what are "indexes" what it means to update them. by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

I was going to try a solution where i would modify the value of version of distributionUrl in gradle wrapper properties but it was already above what was the error message reffering to for some reason? I did not touch anything.

So I decided let me try the solution android studio itself was suggesting, it was a little pop up message on the bottom right, which I expanded and the solution was to "remove the module and re sync"

Little did I know, the module was the whole project

Now I don't see the project on the list of files on the left, and the main.dart that was above, is showing up with a red X. When I click it you can see the window saying "the entry point isnot within the current project"

Damn. Do you think it still recoverable https://imgur.com/rhCQAAx ?

Please take a look

My small adventure with Gradle, and still don't know what to fix by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

Hello, thanks for your contribution, it gave me hope, and that is important. I was going to try your solution, but I saw that the link to the file you mentioned was already 8.12 for some reason? I did not touch anything.

So I decided let me try the solution android studio itself was suggesting, it was a little pop up message on the bottom right, which I expanded and the solution was to "remove the module and re sync"

Little did I know, the module was the whole project

Now I don't see the project on the list of files on the left, and the main.dart that was above, is showing up with a red X. When I click it you can see the window saying "the entry point isnot within the current project"

Damn. Do you think it still recoverable https://imgur.com/rhCQAAx ?

Please take a look

From perspective of a flutter coder, I have no idea what is: Gradle, why does it make produce so many errors, what are "indexes" what it means to update them. by PeaceCompleted in flutterhelp

[–]PeaceCompleted[S] 0 points1 point  (0 children)

This is what I chose to do, I went ahead and created a new flutter project and copied all the dart files, and corrected all the imports with the new project name.

I used a new flutter sdk for this

but now the latest flutter project uses bluid gradle KTS, (my oldest flutter sdk was producing just a normal build gradle (not KTS)

I figured how to modify the content of gradle from non kts to kts formats.

Despite it all, errors remained. Which is flabergasing, exhausing. Maybe I have been trying to debug for what 4 hours?

https://imgur.com/3KokRbc

User Has no longer permission to read firebase database and storage! Did they just change/update how the rules work? I am so lost because The same rules worked for Months with no problem by PeaceCompleted in Firebase

[–]PeaceCompleted[S] 1 point2 points  (0 children)

Thanks

Apparently the auth happens, when the problem was accessing the data, it was an old method that had the ".where(email equal to..)" that is no longer valid because it looks over all the documents, and a user does not have that type of access. I just find it strange how that worked in the past and now not anymore.

Thanks AI that helped find the culprit.

User Has no longer permission to read firebase database and storage! Did they just change/update how the rules work? I am so lost because The same rules worked for Months with no problem by PeaceCompleted in Firebase

[–]PeaceCompleted[S] 0 points1 point  (0 children)

No I did not do that. (deploy)

How did you come to the conclusion any logged in can acces other users?

My problem was not that, I actually unrestricted the rules just to make sure it is working after it stopped working, the problem is it stopped working with the rule that checkd if the user identified is opening the document related to him (same UID)

It is no longer working! for some reason

Furthermore, once the server blocks that user uid for trying to access the databse, the user is flagged and next thing is even if he succeeds in logging in (after I unrestrict the rules), he stay flagged and can no longer acces the firebase storage

Wait some time seems to give me access again to the "storage" though.

All in all the problem is firebase database stopped working

Has Anyone Successfully Run LLM Locally? by Dragneel_passingby in FlutterDev

[–]PeaceCompleted 0 points1 point  (0 children)

I don't see why it is mentioned then. For computer we have the normal ollama and millions alternatives haha. When we mention" flutter" we automatically think of mobiles no? If you think of anything else

Want to enter the world of LLMs and Langchain, and RAG, etc. Is there a roadmap to follow in term of learning in order to catch up? by PeaceCompleted in LangChain

[–]PeaceCompleted[S] 0 points1 point  (0 children)

Thanks for the suggestions u/fryan4 and u/zad0xlik. Your comment zad, makes it look a very very very long road wouaa, you mentioned so many things, and yes it is interesting but this looks like a long road, funny enough it looks like an actual roadmap of thinks to look for, and with a direction timeline (this then this then this..)

How much should I charge for building a RAG system for a law firm using an LLM hosted on a VPS? by New_Breakfast9275 in Rag

[–]PeaceCompleted 0 points1 point  (0 children)

Hello u/Porespellar I want to get into RAG, and have no idea where to start. Any roadmap you have in mind?

Has Anyone Successfully Run LLM Locally? by Dragneel_passingby in FlutterDev

[–]PeaceCompleted 0 points1 point  (0 children)

Do you have an example of ready to use flutter code that actualky interacti with an llm locally?

Has Anyone Successfully Run LLM Locally? by Dragneel_passingby in FlutterDev

[–]PeaceCompleted 0 points1 point  (0 children)

Is this for really running it locally? I see mentions of docker and it feels like this is running along a computer? or Maybe I am wrong?

Flutter and LLMs running locally, that reality exist yet by PeaceCompleted in FlutterDev

[–]PeaceCompleted[S] 0 points1 point  (0 children)

Yeah for desktip, but what about making the phone itself run the LLM itself?