GooglePlayServicesLibでジオフェンスを使用したら
Google Play Services Rev24で開発していたSDKをGoogle Play Services Rev27で開発しているアプリに組み込んだらExceptionが発生して落ちてしまった。
調べたらGoogle Play Servicesのバグらしい。
FATAL EXCEPTION: main_thread Process: jp.test.android.app, PID: 5819 java.lang.IncompatibleClassChangeError: The method 'boolean com.google.android.gms.common.api.GoogleApiClient.isConnected()' was expected to be of type interface but instead was found to be of type virtual (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
ちなみにGradleに記述したGoogle Play Servicesのcompileバージョンは、
Google Play Services Rev24の場合、v7.3.0
Google Play Services Rev27の場合、v8.1.0
でビルドしたら落ちなかった。
最近、Deplicatedも多いし対応が大変だ。