Hi, I am having an issue with my app since I am us...
# community-support
a
Hi, I am having an issue with my app since I am using VS code to develop it. Basically I am including firebase into my app to avoid pasting documents such as "quotes" directly on my code. When I launch my app with VS Code it says that some firebase dependencies aded on the build.gradle.app folder couldn't be found even though I have all the dependencies, integrations right. I am using Chat GPT for help but the issue still remains. Does anyone have a solution ? (I am beginner btw)
v
As a beginner, let me give you two personal recommendations first: • VSC is mainly a fancy text editor not a fully-fledged IDE. For any serious work, better use a proper IDE like IntelliJ IDEA to save you many headaches • ChatGPT (and similar tools) are great in giving answers that look correct, but very bad in giving answers that are correct. They are great to do work for you that you could have done yourself but are to lazy to (the good kind of lazy). But you always have to understand what it gave to you, be able to evaluate what it gave to you, and be able to see where it made non-sense and to fix that. Often code those tools give you does not even compile and even if it compiles it does not necessarily do what it is supposed to do and even if it does on the happy path it might not properly handle edge cases. Also they learn from the sources they were given to guess words that appear next, which means it also likes to produce bad practice code it might have seen before. Regarding your actual question, as far as I understood, you said your Gradle setup is correct, just VSC is misbehaving. If that is the case, you should probably ask in a VSC community eventually.
If I got you wrong and you think your Gradle setup is incorrect, you need to share more information. What do you actually have? What happens when you build from commandline? ...?
a
Thank you very much for all the information, I will take in consideration the fact that VS code might not be the best platform for a more serious or even advanced project when it comes to coding. About my issue, the thing is I tried to integrate firebase in my project (which is an app) and again, with the help of chat gpt I followed the steps to assure a proper setup. I now have an error message stating that some dependencies in the build.gradle.kts app couldn't be found. I cleaned and redownloaded several times with changes but I can't get it right. I also learned that I could integrate a backend program myself but it may be a bit of a headache. I also'd like to know your thoughts on this. Thank you.
v
Where do you get an error? What error do you get? What did you do? If you need help, you really need to share more substantial and concrete information like for example exact error message. My thoughts on what?
a
This is what I get when I run my app : * What went wrong: Execution failed for task 'appcheckDebugAarMetadata'.
Could not resolve all files for configuration 'appdebugRuntimeClasspath'.
> Could not find com.google.firebasefirebase core. Required by: project :app > Could not find com.google.firebasefirebase analytics ktx. Required by: project :app > Could not find com.google.firebasefirebase auth ktx. project :app > Could not find com.google.firebasefirebase firestore ktx. Required by: project :app * Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org. What I did is pretty much integrate the firebase system into my code so I don't hardcode everything. I want to know your thoughts on whether I should harcode or run firebase instead.
v
I don't know, I neither use firebase nor do any Android development. Looks like you did not specify a version for those dependencies and thus it doesn't find them. Can you share a build
--scan
URL of the failure?
a
Sorry for the delay, when I try to run --scan (gradlew.bat) or (gradlew build --scan), it tells me that the term "gradlew" is not being reconized ? Do you know why ?
v
Because you don't know how to use your command line. :-) In Powershell you have to use
.\gradlew
or
./gradlew
to call a script in the current directory by default.