CodetrixStudio / CapacitorGoogleAuth

Capacitor plugin for Google Auth. Lightweight & no dependencies.
MIT License
281 stars 153 forks source link

'error: cannot find symbol class GoogleAuth' #65

Open trigonometric-act opened 4 years ago

trigonometric-act commented 4 years ago

Android studio can't find symbol class for Google Auth import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth; fails as it doesn't recognise 'codetrixstudio'

darkziah commented 4 years ago

you have to Sync Project with Gradle Files.

that should work 👍

julian- commented 3 years ago

Unfortunately, I have the same issue.

/.../android/app/src/main/java/io/ionic/starter/MainActivity.java:9: error: package com.codestrixstudio.capacitor.GoogleAuth does not exist
import com.codestrixstudio.capacitor.GoogleAuth.GoogleAuth;

I've tried to

several times but it didn't help so far. Maybe you have another idea what I could try to make it run?

Thanks in advance

mwmw7 commented 3 years ago

@julian- me too do you find a solution?

julian- commented 3 years ago

@mwmw7 unfortunately not, I did not continue since then

@trigonometric-act Did you find a solution, that could help us?

dominic-ks commented 3 years ago

If anyone still needs this it's because you either need to import the class or reference it by it's full path, i.e. either add

import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;

at the top of your MainActivity.java file or add the class like this:

add(com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth);

IgorGamella commented 3 years ago

you have to Sync Project with Gradle Files.

that should work

This solved my issue with unresolved classes. Thank you very much!

acosme commented 3 years ago

Clean and build doesn't solve for me. I solved this just ignoring and run the error and running(play button); Android studio will not break when run.

ale30p commented 3 years ago

you have to Sync Project with Gradle Files.

that should work 👍

image