java.lang.NoSuchMethodError: org.json.JSONTokener.<init>(Ljava/io/InputStream;)V

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by jsnowacki
, 1 year ago
org.json.JSONTokener.<init>(Ljava/io/InputStream;)V
via GitHub by val-litvak
, 9 months ago
org.json.JSONTokener.<init>(Ljava/io/InputStream;)V
java.lang.NoSuchMethodError: org.json.JSONTokener.<init>(Ljava/io/InputStream;)V
at com.google.cloud.ServiceOptions.serviceAccountProjectId(ServiceOptions.java:452)
at com.google.cloud.ServiceOptions.getDefaultProject(ServiceOptions.java:346)
at com.google.cloud.ServiceOptions.(ServiceOptions.java:281)
at com.google.cloud.HttpServiceOptions.(HttpServiceOptions.java:179)
at com.google.cloud.storage.StorageOptions.(StorageOptions.java:69)
at com.google.cloud.storage.StorageOptions.(StorageOptions.java:27)
at com.google.cloud.storage.StorageOptions$Builder.build(StorageOptions.java:64)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.