-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.NoClassDefFoundError: com.etsy.android.grid.R$styleable #38
Comments
Hi, Thanks |
This is odd - you are building the sample with Android Studio and Gradle? |
@denizmveli No with Eclipse |
Hi, |
I found a solution. Now run your application .. it should run without error |
Got the same error, and @cybertanz's solution doesn't work. |
Do not copy the .jar file directly into the libs folder. if you have already have then try deleting it. If deleting encounters a problem, just restart eclipse and then delete it. After that import the project as a library.
|
@cybertanz solution works. |
Trying to execute your sample app, When I click on "Staggered Grid View" button I get this error:
01-23 12:10:22.546: E/AndroidRuntime(26874): FATAL EXCEPTION: main
01-23 12:10:22.546: E/AndroidRuntime(26874): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.etsy.android.sample/com.etsy.android.sample.StaggeredGridActivity}: android.view.InflateException: Binary XML file line #6: Error inflating class com.etsy.android.grid.StaggeredGridView
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.os.Handler.dispatchMessage(Handler.java:99)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.os.Looper.loop(Looper.java:130)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.ActivityThread.main(ActivityThread.java:3687)
01-23 12:10:22.546: E/AndroidRuntime(26874): at java.lang.reflect.Method.invokeNative(Native Method)
01-23 12:10:22.546: E/AndroidRuntime(26874): at java.lang.reflect.Method.invoke(Method.java:507)
01-23 12:10:22.546: E/AndroidRuntime(26874): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
01-23 12:10:22.546: E/AndroidRuntime(26874): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
01-23 12:10:22.546: E/AndroidRuntime(26874): at dalvik.system.NativeStart.main(Native Method)
01-23 12:10:22.546: E/AndroidRuntime(26874): Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class com.etsy.android.grid.StaggeredGridView
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.view.LayoutInflater.createView(LayoutInflater.java:518)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:570)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-23 12:10:22.546: E/AndroidRuntime(26874): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:216)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.Activity.setContentView(Activity.java:1660)
01-23 12:10:22.546: E/AndroidRuntime(26874): at com.etsy.android.sample.StaggeredGridActivity.onCreate(StaggeredGridActivity.java:31)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
01-23 12:10:22.546: E/AndroidRuntime(26874): ... 11 more
01-23 12:10:22.546: E/AndroidRuntime(26874): Caused by: java.lang.reflect.InvocationTargetException
01-23 12:10:22.546: E/AndroidRuntime(26874): at java.lang.reflect.Constructor.constructNative(Native Method)
01-23 12:10:22.546: E/AndroidRuntime(26874): at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
01-23 12:10:22.546: E/AndroidRuntime(26874): at android.view.LayoutInflater.createView(LayoutInflater.java:505)
01-23 12:10:22.546: E/AndroidRuntime(26874): ... 21 more
01-23 12:10:22.546: E/AndroidRuntime(26874): Caused by: java.lang.NoClassDefFoundError: com.etsy.android.grid.R$styleable
01-23 12:10:22.546: E/AndroidRuntime(26874): at com.etsy.android.grid.StaggeredGridView.(StaggeredGridView.java:153)
01-23 12:10:22.546: E/AndroidRuntime(26874): at com.etsy.android.grid.StaggeredGridView.(StaggeredGridView.java:145)
The text was updated successfully, but these errors were encountered: