有時候,我可以找到崩潰報告服務日誌像下面的VerifyError上GoogleAuthUtil類
Caused by: java.lang.VerifyError: com/google/android/gms/auth/GoogleAuthUtil
at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential.getToken(ProGuard:255)
at com.google.api.client.googleapis.extensions.android.gms.auth.GoogleAccountCredential$RequestHandler.intercept(ProGuard:279)
at com.google.api.client.http.HttpRequest.execute(ProGuard:859)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(ProGuard:410)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(ProGuard:343)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(ProGuard:460)
從技術文檔
當VM注意到試圖加載類 它確實拋出該異常未通過班級驗證階段。
這種情況很少發生,主要發生在根植設備上。這個類被封裝在應用程序中,所以它很奇怪,它不適用於某些設備。
我認爲這是因爲有人試圖修改應用程序(例如通過odex或dalvik-cache修補)。目前我讓應用程序崩潰,因爲它是LinkageError
,不應該在我看來處理。我是對的,還是可能有這個問題的其他原因?