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.

Đang mở
#914 3 bình luận 4 reaction 1 người được giao Được @amuramoto nhận Xem trên GitHub
triage me type: bug
Ngôn ngữ chính
Java
Star
1.8k
Fork
973
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.