I play with "search literature" to get into Android development.
My problem is that when I change the layouts of the XML, I get several ClassCastException.
I assume the R file is outdated, but the strange thing is that I still have a problem even after recreating it.
Here is the code snippet and the log:
Log file:
Called: java.lang.ClassCastException: android.widget.ImageButton E / AndroidRuntime (438): when eu.accleaner.android.WordActivity.onCreate (WordActivity.java:87)
The incriminated line in the Office:
mDefinition = (TextView) findViewById(R.id.definition);
Thanks in advance for your help.
Greetings
Vincent
source
share