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 Xem trên GitHub

@amuramoto đang làm issue này rồi.

Từ ngày 28/6/2023.

Đánh giá

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

Mô tả

triage me type: bug

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

Ngôn ngữ chính
Java
Star
1.8k
Fork
972
Merge trung bình
5 giờ 7 phút
Pull request đã merge (30 ngày)
1

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của googlemaps/google-maps-services-java

Tất cả issue của googlemaps/google-maps-services-java

Issue tương tự

Thêm issue về Java

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.