Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework 如何调用Google Auth的电容器插件_Ionic Framework_Capacitor - Fatal编程技术网

Ionic framework 如何调用Google Auth的电容器插件

Ionic framework 如何调用Google Auth的电容器插件,ionic-framework,capacitor,Ionic Framework,Capacitor,嗨,我正在尝试使用离子5中的社区电容器插件:- 我的html看起来像 </head> <ion-header> <ion-toolbar color="secondary"> <ion-title> Capacitor testy </ion-title> </ion-toolbar> </ion-header> <ion-content>

嗨,我正在尝试使用离子5中的社区电容器插件:-

我的html看起来像

</head>

<ion-header>
  <ion-toolbar color="secondary">
    <ion-title>
      Capacitor testy
    </ion-title>
  </ion-toolbar>
</ion-header>

<ion-content>
  <img [src]="image" *ngIf="image">
  <ion-button (click)="openBrowser()">Open Browser</ion-button>
  <ion-button (click)="takePicture()">Take Picture</ion-button>
  <ion-button (click)="glogin()">glogin</ion-button>
</ion-content>
但是古格洛斯。签名();在VS代码中获取红色下划线-此处传递的是什么


感谢您在Android studio中找到文件Android/app/src/main/java///MainActivity.java,并将插件添加到初始化列表中:

import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
...
add(GoogleAuth.class);
...
}});
import com.codetrixstudio.capactor.GoogleAuth.GoogleAuth

在Android studio中,找到文件Android/app/src/main/java///MainActivity.java,并将插件添加到初始化列表中:

import com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth
this.init(savedInstanceState, new ArrayList<Class<? extends Plugin>>() {{
...
add(GoogleAuth.class);
...
}});
import com.codetrixstudio.capactor.GoogleAuth.GoogleAuth
this.init(savedInstanceState,新ArrayList