Perhaps this will help someone avoid the pain.
When doing some work with the GUI, I got a typical identifier that cannot be resolved. (Reed, I call it).
"No problem, I just check my xml files," but I could not find any problems (no hints in the console).
But I noticed further in the list of errors some dumb syntax errors in R.java, such as ...
Invalid modifier for an array of classes; only public, abstract and final are allowed
So, I realized that something must be broken in the code that generates it. The beginning of my R.java file looked like this:
public final class R {
public static final class {
public static final int VertBar=0x7f0a0000;
}
public static final class array {
public static final int AnswerActionValues=0x7f060001;
public static final int AnswerActionsNames=0x7f060000;
}
?
, VertBar.
, ...
<View
android:id="@+/VertBar"
android:layout_centerHorizontal="true"
android:layout_height="fill_parent"
android:layout_width="20dp"
android:background="#FFFFFFFF"></View>
- ??
- "@+ id/VertBar" "@+/VertBar"
! , @+ id .
, , API-, ().