簡體   English   中英

使用GooglePlus離子本機時出錯

[英]Error while using GooglePlus ionic-native

我正在嘗試使用Google Plus - Ionic-native 我已經做了所有類似添加插件+ ionic-native + reverseClientId的事情。

但是當我嘗試使用ionic cordova build android --prod來構建apk時,出現錯誤:

找不到play-services-auth.aar(com.google.android.gms:play-services-auth:11.8.0)

對於config.xml android平台:您需要添加反向客戶端ID和Web應用程序ID,如下所示:

<plugin name="cordova-plugin-googleplus" spec="^5.2.1">
    <variable name="REVERSED_CLIENT_ID" value="com.googleusercontent.apps.588101161325-dsfgdfgergregergergg4ha72kbfn1l0" />
    <variable name="WEB_APPLICATION_CLIENT_ID" value="588101161325-f3p5ufdgsdfgsdfgsdfgdfgsdfgdfgfgg.apps.googleusercontent.com" />
</plugin>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM