#Please help me with the error importing my API
1 messages ยท Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Here is an AI assisted attempt to answer your question ๐ค. Maybe it helps! In any case, a human is on the way ๐. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
u likely didnt add the dependency to ur code
u cant just write import and expect it to magically work
u have to either download the external code (jar file) and tell ur intellij where it is
or u have to use sth like maven/gradle and put the dependency into ur settings file (pom/build)
Delete your image and go reset your api key right now please
So I imported the jar files into dependencies, but something seems to be missing. I searched Chatgpt and it tells me that to fix it I have to create an xml file, is that right?
putting the jar into ur dependencies would be enough, if uve done it right
hard to guess without seeing pictures and details though
@topaz parrot note that u just leaked ur api key. we have deleted ur image so that no one can steal it anymore, but its possible that people already stole it in the short time
if ur concerned about that, u might want to invalidate that api key and create a new one instead
Can I call you privately to send you the file so you can get wet?
GPT: I understand your frustration with the problems you are facing. However, the error related to GoogleNetHttpTransport, JsonFactory, JsonObjectParser, JacksonFactory and YouTube is not an error that can be resolved by simply adding a file to the project, as these classes are part of the Google libraries and need to be managed correctly with Maven or another dependency management tool.
what i said still holds
if u either put all the correct jars into ur project, or use maven/gradle and setup the dependency there correctly, it will work
if u say u did that but it still doesnt work, u have to share with us what exactly u did (with pictures and detailed explanation) and show any remaining errors
closing in favor of duplicate #1154088840647159901
Closed the thread.
The problem is that I don't know how to use maven/gradle, I haven't learned that yet, and the last jar file that ChatGpt answered me doesn't exist.