Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

VISION API setup

Hi,

I am a bit lost on the how to integrate the vision api into my android (java) projects.

1. I have add the : 

implementation 'com.google.cloud:google-cloud-vision:3.40.0'

to my project.

2. I have created the new project in the google cloud platform.
3. I have enabled the VISON APIin the google cloud platform.
4. I have created in the credentials tab a Service Account.

from this point I am a bit lost, I get error:

2024-04-30 07:50:59.045 4388-4388 System.out com.example.zukitscan I line 234: java.io.IOException: Your default credentials were not found. To set up Application Default Credentials for your environment, see https://cloud.google.com/docs/authentication/external/set-up-adc

5. I followed that link of guidance and I got the: 

application_default_credentials.json

From here what's next ? how do I link this file into my android project ?

Please help.

Thanks.

1 1 1,899
1 REPLY 1