I created a new API key which has no restrictions but still getting this error.
I used the same key for maps_api_key and android_api_key . Are they different?
Crash log:
--------- beginning of crash 2020-05-03 03:11:46.660 7178-7178/com.app.screencontroladmin E/AndroidRuntime: FATAL EXCEPTION: main Process: com.app.screencontroladmin, PID: 7178 java.lang.BootstrapMethodError: Exception from call site #4 bootstrap method at okhttp3.internal.Util.<clinit>(Util.java:87) at okhttp3.internal.Util.immutableList(Util.java:234) at okhttp3.OkHttpClient.<clinit>(OkHttpClient.java:124) at okhttp3.OkHttpClient$Builder.<init>(OkHttpClient.java:449) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(RepositoryModule.kt:31) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(RepositoryModule.kt:55) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(ViewModelModule.kt:18) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.FactoryDefinitionInstance.get(FactoryDefinitionInstance.kt:37) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at org.koin.android.viewmodel.ViewModelResolutionKt$createViewModelProvider$1.create(ViewModelResolution.kt:63) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:187) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:150) at org.koin.android.viewmodel.ViewModelResolutionKt.getInstance(ViewModelResolution.kt:40) at org.koin.android.viewmodel.ViewModelResolutionKt.getViewModel(ViewModelResolution.kt:20) at org.koin.android.viewmodel.ext.android.LifecycleOwnerExtKt.getViewModel(LifecycleOwnerExt.kt:85) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(LifecycleOwnerExt.kt:95) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(Unknown Source:0) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getViewModel(Unknown Source:7) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.loadNearbyPlaces(PlacePickerActivity.kt:501) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.access$loadNearbyPlaces(PlacePickerActivity.kt:54) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:341) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:54) at com.google.android.gms.tasks.zzn.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6831) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927) Caused by: java.lang.ClassCastException: Bootstrap method returned null at okhttp3.internal.Util.<clinit>(Util.java:87) at okhttp3.internal.Util.immutableList(Util.java:234) at okhttp3.OkHttpClient.<clinit>(OkHttpClient.java:124) at okhttp3.OkHttpClient$Builder.<init>(OkHttpClient.java:449) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(RepositoryModule.kt:31) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(RepositoryModule.kt:55) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(ViewModelModule.kt:18) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.FactoryDefinitionInstance.get(FactoryDefinitionInstance.kt:37) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at org.koin.android.viewmodel.ViewModelResolutionKt$createViewModelProvider$1.create(ViewModelResolution.kt:63) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:187) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:150) at org.koin.android.viewmodel.ViewModelResolutionKt.getInstance(ViewModelResolution.kt:40) at org.koin.android.viewmodel.ViewModelResolutionKt.getViewModel(ViewModelResolution.kt:20) at org.koin.android.viewmodel.ext.android.LifecycleOwnerExtKt.getViewModel(LifecycleOwnerExt.kt:85) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(LifecycleOwnerExt.kt:95) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(Unknown Source:0) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getViewModel(Unknown Source:7) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.loadNearbyPlaces(PlacePickerActivity.kt:501) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.access$loadNearbyPlaces(PlacePickerActivity.kt:54) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:341) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:54) at com.google.android.gms.tasks.zzn.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6831) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)
I created a new API key which has no restrictions but still getting this error. I used the same key for maps_api_key and android_api_key . Are they different?
Crash log:
--------- beginning of crash 2020-05-03 03:11:46.660 7178-7178/com.app.screencontroladmin E/AndroidRuntime: FATAL EXCEPTION: main Process: com.app.screencontroladmin, PID: 7178 java.lang.BootstrapMethodError: Exception from call site #4 bootstrap method at okhttp3.internal.Util.<clinit>(Util.java:87) at okhttp3.internal.Util.immutableList(Util.java:234) at okhttp3.OkHttpClient.<clinit>(OkHttpClient.java:124) at okhttp3.OkHttpClient$Builder.<init>(OkHttpClient.java:449) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(RepositoryModule.kt:31) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(RepositoryModule.kt:55) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(ViewModelModule.kt:18) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.FactoryDefinitionInstance.get(FactoryDefinitionInstance.kt:37) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at org.koin.android.viewmodel.ViewModelResolutionKt$createViewModelProvider$1.create(ViewModelResolution.kt:63) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:187) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:150) at org.koin.android.viewmodel.ViewModelResolutionKt.getInstance(ViewModelResolution.kt:40) at org.koin.android.viewmodel.ViewModelResolutionKt.getViewModel(ViewModelResolution.kt:20) at org.koin.android.viewmodel.ext.android.LifecycleOwnerExtKt.getViewModel(LifecycleOwnerExt.kt:85) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(LifecycleOwnerExt.kt:95) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(Unknown Source:0) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getViewModel(Unknown Source:7) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.loadNearbyPlaces(PlacePickerActivity.kt:501) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.access$loadNearbyPlaces(PlacePickerActivity.kt:54) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:341) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:54) at com.google.android.gms.tasks.zzn.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6831) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927) Caused by: java.lang.ClassCastException: Bootstrap method returned null at okhttp3.internal.Util.<clinit>(Util.java:87) at okhttp3.internal.Util.immutableList(Util.java:234) at okhttp3.OkHttpClient.<clinit>(OkHttpClient.java:124) at okhttp3.OkHttpClient$Builder.<init>(OkHttpClient.java:449) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(RepositoryModule.kt:31) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$2.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(RepositoryModule.kt:55) at com.rtchagas.pingplacepicker.inject.RepositoryModuleKt$repositoryModule$1$3.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.SingleDefinitionInstance.get(SingleDefinitionInstance.kt:40) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(ViewModelModule.kt:18) at com.rtchagas.pingplacepicker.inject.ViewModelModuleKt$viewModelModule$1$1.invoke(Unknown Source:4) at org.koin.core.instance.DefinitionInstance.create(DefinitionInstance.kt:54) at org.koin.core.instance.FactoryDefinitionInstance.get(FactoryDefinitionInstance.kt:37) at org.koin.core.definition.BeanDefinition.resolveInstance(BeanDefinition.kt:70) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:165) at org.koin.core.scope.Scope.get(Scope.kt:128) at org.koin.android.viewmodel.ViewModelResolutionKt$createViewModelProvider$1.create(ViewModelResolution.kt:63) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:187) at androidx.lifecycle.ViewModelProvider.get(ViewModelProvider.java:150) at org.koin.android.viewmodel.ViewModelResolutionKt.getInstance(ViewModelResolution.kt:40) at org.koin.android.viewmodel.ViewModelResolutionKt.getViewModel(ViewModelResolution.kt:20) at org.koin.android.viewmodel.ext.android.LifecycleOwnerExtKt.getViewModel(LifecycleOwnerExt.kt:85) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(LifecycleOwnerExt.kt:95) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$$special$$inlined$viewModel$1.invoke(Unknown Source:0) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.getViewModel(Unknown Source:7) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.loadNearbyPlaces(PlacePickerActivity.kt:501) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity.access$loadNearbyPlaces(PlacePickerActivity.kt:54) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:341) at com.rtchagas.pingplacepicker.ui.PlacePickerActivity$getDeviceLocation$2.onSuccess(PlacePickerActivity.kt:54) at com.google.android.gms.tasks.zzn.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6831) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:927)