なえ箱

メモを植えます

【Unity】Unable to cache file google_api_resources_lib.jar ...の解決方法

この記事をシェアする

Firebaseを使用してGetTokenAsyncを叩くときに以下のエラーが出て動かなかった。

その時の対処方法をメモ。

Unable to cache file google_api_resources_lib.jar, embedded Java class loading will fail. It is likely the device is out of space for application data storage, free some space and try again. Firebase.AppUtilPINVOKE:PollCallbacks() Firebase.AppUtil:PollCallbacks() Firebase.Platform.FirebaseHandler:Update()

現象

エラーは上記の通り発生する。

ログ自体は「デバイスにアプリケーション データ保存用のスペースがない可能性があります」って言ってるけど、

端末のストレージに空きは十分あるのにこのエラーが出るのはおかしい...。

解決方法

アプリのキャッシュを削除すると解決した。