googlemaps / googlemaps/google-maps-services-java

Unable to create instance of class com.google.maps.GeocodingApi$Response. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.

未关闭
#914 3 条评论 4 个 reaction 已指派 1 人 已被 @amuramoto 认领 在 GitHub 查看
triage me type: bug
主要语言
Java
星标
1.8k
派生
973
PR 合并指标
30 天内没有已合并 PR

描述

Hello, I have a problem running my Java Spring Boot application with a native image.

When searching for an address I get the error:
`Unable to create instance of class com.google.maps.GeocodingApi$Response. Registering an InstanceCreator or a TypeAdapter for this type, or adding a no-args constructor may fix this problem.`

The error only occurs when compiling with native image, when using JVM the problem does not occur.

Spring Boot: 3.0.6
GraalVM: 22.3.1
JDK: 17

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。