CJCrafter/ChatGPT-Java-API

Error “Could not find /.env on the classpath”.

Closed this issue · 2 comments

I have put ".env" file in the root directory(C:\Users\Administrator\AndroidStudioProjects[Project name]),but i still get the error “Could not find /.env on the classpath”.

dotenv is just the tool I use for API key, it is completely optional (you can switch out for another tool, if you'd like).

Since you're working with android studio, I recommend looking at how projects typically store API credentials.

But without more information, I don't know how to help.

Ok,got it