I'm working on a set of photography apps (currently splitting them up by category, e.g., ScenicNature, Lightning_etc, Eglin_AFB_Armament_Museum, etc.). Right now, I'm experimenting with building it based loosely on the MultiResolution sample in the SDK (under Android-8, building for Android 1.5 and up). At this point, I'm just trying to get this to build with my photos from one category: Scenic/Nature (39 files, 3.2 MB). All images are PNG (reduced size, of course---the high-resolution images from my Nikon digital or the TIFF scans from 35mm would make each app incredibly huge...not good).
I'm using the two layout XML files directly from the sample, except for removing the comments (even the COMMENTS were causing errors---things like "Android is misspelled" (Android was spelled correctly). It also said that Apache was spelled incorrectly.... Of course, removing all of that only removed those "errors", but I tried, just in case. I've changed (per one of the various sets of instructions for installing Java, Eclipse, and the SDK) to Eclipse Classic (version 3.6.2), then added the Android stuff, etc. It didn't make any difference at all. I re-created the project, making sure I got every entry field in the project properties correct. No change. Here is one of the two layout XML files (layout/status.xml---the other is layout-land/status.xml): --------------------------- CUT HERE --------------------------- <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/ android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/ background"> <LinearLayout android:layout_weight="1" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/ image_container" android:background="@drawable/image_container"> <ImageView android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/image_view" android:scaleType="fitCenter" /> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|center_horizontal" android:id="@+id/status_text" android:textColor="@android:color/ primary_text_dark" android:textSize="16sp" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="1" android:layout_margin="5dip" android:shadowColor="@android:color/background_dark" /> </FrameLayout> </LinearLayout> <LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dip" android:gravity="center"> <Button android:text="@string/next_button" android:id="@+id/ next_button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:drawableLeft="@drawable/android" android:textSize="24sp" /> </LinearLayout> </LinearLayout> --------------------------- CUT HERE --------------------------- And these are the errors I'm getting from Eclipse: error: Error: String types not allowed: (at 'layout_height' with value 'match_parent'). line 3 (at 'layout_width' with value 'match_parent'). line 3 (at 'layout_height' with value 'match_parent'). line 7 (at 'layout_width' with value 'match_parent'). line 7 (at 'layout_height' with value 'match_parent'). line 10 (at 'layout_width' with value 'match_parent'). line 10 (at 'layout_height' with value 'match_parent'). line 13 (at 'layout_width' with value 'match_parent'). line 13 (at 'layout_width' with value 'match_parent'). line 25 All errors are type Android AAPT Problem. In ScenicNatue.java: everywhere where R.[whatever] (e.g., R.drawable.srsound01, R.layout.status, etc.) is listed, this error appears: "R cannot be resolved to a variable". Ok, fine...it hasn't generated gen/R.java yet... The problem is, it isn't generating it at all. These same files built ok earlier, but after renaming the project and replacing the sample images with my own, the very same XML files suddenly have all of these errors (even though they haven't changed, except for being re-formatted by Eclipse, which removed some errors, but not the ones listed above---they didn't change at all). Am I missing something here? Or, more to the point, can anyone point me me toward what I could be missing? After about 18 hours of trying to figure out what's wrong, nothing I've tried has been able to remove these "errors". I'm still very new with XML and Java (not to programming in general, just to these two).... Thanks, --jim -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

