CapacitorGoogleAuth: Problem with new MainActivity.java file.

Hello. I updated to android studio 4.2.1 and Capacitor 3 plugins. This new updates give an empty MainActivity.java file with only this lines:

package com.aplicationname.app;

import com.getcapacitor.BridgeActivity;

public class MainActivity extends BridgeActivity {
}

then I have to change to:

package com.aplicationname.app;

import android.os.Bundle;
import com.getcapacitor.BridgeActivity;
import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth;

public class MainActivity extends BridgeActivity {

     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);

        registerPlugin(GoogleAuth.class);
     }

}

About this issue

Most upvoted comments

Hi @codemickey78 , I just have this image, image but before you have to settle some requirements, you can find them here: https://github.com/CodetrixStudio/CapacitorGoogleAuth https://devdactic.com/capacitor-google-sign-in/ https://www.youtube.com/watch?v=Rs1imvTbeN0

I tryed today, and itโ€™s working so you can do it ๐Ÿ˜ƒ

I had tried all of the above steps, and it was still getting stuck with a loading screen, after having selected an emailId. Then, I went to the OAuth Consent screen, and added my emailId to the list of Tester emails. and it worked.

Thanks for all the help.