java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/common/base/Preconditions;

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

Samebug tips

,

A required library class, SdkReceiver, is not loaded. Make sure your SDK classpath is configured correctly in the environment variable or use the -cp or -classpath option if running on the command line, to point to your SDK jar files.

,
via github.io by Unknown author

You need to setup a GlideModule before use Glide.

Solutions on the web

via Stack Overflow by Serena
, 1 year ago
via Stack Overflow by Nibir Alam
, 3 months ago
Failed resolution of: Lcom/google/common/base/Preconditions;
via Stack Overflow by Malik Toqeer
, 1 year ago
Failed resolution of: Lcom/google/common/base/Preconditions;
via Stack Overflow by Rirwan Khokhar
, 1 year ago
Failed resolution of: Lcom/google/common/base/Preconditions;
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/common/base/Preconditions;
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.google.api.client.util.ClassInfo.(ClassInfo.java:324)
at com.google.api.client.util.ClassInfo.of(ClassInfo.java:77)
at com.google.api.client.util.GenericData.(GenericData.java:44)
at com.google.api.client.http.HttpHeaders.(HttpHeaders.java:37)
at com.google.api.client.http.HttpTransport.(HttpTransport.java:82)
at com.a2plab.googleplaces.query.QueryBuilder.(QueryBuilder.java:24)
at com.a2plab.googleplaces.query.Query.(Query.java:10)
at com.a2plab.googleplaces.query.SearchQuery.(SearchQuery.java:12)
at com.a2plab.googleplaces.query.NearbySearchQuery.(NearbySearchQuery.java:29)
at com.a2plab.googleplaces.GooglePlaces.getNearbyPlaces(GooglePlaces.java:46)
at com.a2plab.googleplaces.GooglePlaces.getNearbyPlaces(GooglePlaces.java:71)
at com.example.sere.path5.ARFragment.loadPlaces(ARFragment.java:1124)
at com.example.sere.path5.MainActivity.onCreate(MainActivity.java:377)
at android.app.Activity.performCreate(Activity.java:6221)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2611)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2723)
at android.app.ActivityThread.access$900(ActivityThread.java:172)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1422)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:5832)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194)

Users with the same issue

3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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