NoClassDefFoundError when running the sample with trial version


#1

Hi 

Am just trying out with shinobi and am getting this error while running the sample app. I made the shinobi-lib as library project and reference to my sample project. When I run I get this exception.

08-28 09:26:19.181: E/AndroidRuntime(8116): Process: com.example.candlestickchart, PID: 8116

08-28 09:26:19.181: E/AndroidRuntime(8116): java.lang.NoClassDefFoundError: com.shinobicontrols.charts.R$styleable

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.cs.a(SourceFile:850)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.cs.a(SourceFile:126)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.w.<init>(SourceFile:102)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.cw.<init>(SourceFile:18)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.cw.<init>(SourceFile:14)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.cw.<init>(SourceFile:10)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.ChartFragment.a(SourceFile:61)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.ChartFragmentBase.onCreate(SourceFile:46)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at com.shinobicontrols.charts.ChartFragment.onCreate(SourceFile:50)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at android.app.Fragment.performCreate(Fragment.java:1678)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:859)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1040)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1142)

08-28 09:26:19.181: E/AndroidRuntime(8116):     at android.app.Activity.onCreateView(Activity.java:4972)


#2

Ok I got it

I deleted the gen folder from the library and recreated and it worked. 


#3

What is the gen folder?


#4

Hi.

Are you using Eclipse or Android Studio? It sounds like your problem is resolved. I would like to mention that as the shinobicharts android library also contains resources, it is important that it is imported to your project, as outlined in our user-guide. From the stack trace it suggets that the failure is due to missing resources. As a recap, please see our user-guide at the following link, paying specific note to the instruction on importing the library.

https://www.shinobicontrols.com/docs/ShinobiControls/ShinobiChartsAndroid/1.7.2/Premium/Normal/user-guide/index.html

If you have any further issues please do get back in touch.

Thanks,

Kai.