android x google signin issue

最近升級到android x,
一堆問題,首先你必須先run migrate to anroidx
 
 
然後沒事還好,當然有發生當機問題: 
 
java.lang.IncompatibleClassChangeError: 
Class 'com.google.android.gms.auth.api.signin.internal.SignInHubActivity' 
does not implement interface 'androidx.lifecycle.LifecycleOwner' 
in call to 'androidx.lifecycle.Lifecycle androidx.lifecycle.LifecycleOwner.getLifecycle()' 
(declaration of 'androidx.lifecycle.LiveData' 
appears in /data/app/.../base.apk!classes2.dex)
 
找了老半天才找到解法: 
solution:
add two line to app\build.gradle into dependencies {}
 
implementation 'androidx.core:core:1.+' 
implementation 'androidx.appcompat:appcompat:1.+'

這個網誌中的熱門文章

最爛的銀行服務-玉山銀行

Mark App Design Apps - Terms and Privacy Policy (服務條款,隱私權政策)

SMR疊瓦式hdd致命缺陷被解決????!!!

ios app 上架時app icon要注意事項

更改google drive預設存放目錄位置Change Google Drive Default Folder Location in Windows

舊有app在Android 12 閃退問題& app Splash screens

google play 正式發布前測試報告...非常好用.

app bundle and bundletool. 關於aab安裝問題

關於google play console app應用程式簽署

Google Play badge徽章產生器