I play around with the 'searchable dictionnary' to get into Android development.
My problem is that I get some ClassCastException
when modifying the XML layouts.
My guess is that the R file is outdated, but what is weird is that I still have the problem even after recreating it.
Here are the releveant piece of code and log :
The log file :
Caused by: java.lang.ClassCastException: android.widget.ImageButton E/AndroidRuntime( 438): at eu.accleaner.android.WordActivity.onCreate(WordActivity.java:87)
The incriminated line in the Activity :
mDefinition = (TextView) findViewById(R.id.definition);
Thanks in advance for your help.
Cheers,
Vincent