The error I’m facing is :
I have a fairly basic application built in java using android studio ( keep in mind i’m using the ’empty views activity’ template on android studio) The app has to do 3 things:
1.Help take a picture
2.Send data to vertex AI for processing
3.Store the json response of vertex AI into firebase.
The app opens on my phone after running on android studio but as soon as i click a photo it shows me the following error:
enter image description here
i have created a project on google cloud and enabled vertex API on it. I have also created a service account and downloaded the key in json format and placed it in my raw folder. I have tried setting the google cloud credentials in the terminal of android studio like this :
set GOOGLE_APPLICATION_CREDENTIALS=A:App DevelopmentSecondattemptappproductscanner-40446-bcc1ce5d23.json
nothing seems to work, i have also referred google documentation from the link in the picture, i have deployed a webapp based on java using a similar api and it was fairly easy(i used intellij and added the key to path variable) but i cant make it work on the android application, i have also considered making the key and credentials a part of the code but neither am i or chatgpt able to figure it out.
This does not seem to work, can anyone explain what this is and why this is happening ???
Arjun Pareek is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.