I installed the new 3.1 and same issue. There is no android.content.XmlDocumentProvider so the sample XMLAdapters will not run/compile.
Any idea how to escalate this? Chris On Apr 15, 9:45 am, jcooper1 <[email protected]> wrote: > Did you ever solve this ?? It's really annoying that there are errors > in the sample code. > > On Apr 5, 11:30 am, mmontecchi <[email protected]> wrote: > > > > > > > > > I have the same problem. Here is my details: > > > [javac] /android-sdk-linux_x86/tools/ant/main_rules.xml:384: > > warning: 'includeantruntime' was not set, defaulting to > > build.sysclasspath=last; set to false for repeatable builds > > [javac] Compiling 9 source files to /home/massimo/android-sdk- > > linux_x86/samples/android-11/XmlAdapters/bin/classes > > [javac] /android-sdk-linux_x86/samples/android-11/XmlAdapters/src/ > > com/example/android/xmladapters/RssReaderActivity.java:20: cannot find > > symbol > > [javac] symbol : class XmlDocumentProvider > > [javac] location: package android.content > > [javac] importandroid.content.XmlDocumentProvider; > > [javac] ^ > > > On Mar 16, 12:13 pm, "j.s. mammen" <[email protected]> wrote: > > > > Hi all, I am trying to compile and run the XmlAdapter sample from thesdk, > > > also referenced in the below > > > URLhttp://developer.android.com/resources/samples/XmlAdapters/index.html > > > > I am unable to compile and run due to following errors listed below, > > > any help is greatly appreciated. > > > I am using API level 8, also tried with 10, no change in errors. > > > > ------ errors begin ------ > > > > mContext cannot be resolved Adapters.java /Feedsample/src/com/example/ > > > android/xmladapters line 914 Java Problem > > > mContext cannot be resolved Adapters.java > > > /Feedsample/src/com/example/ > > > android/xmladapters line 972 Java Problem > > > mContext cannot be resolved Adapters.java > > > /Feedsample/src/com/example/ > > > android/xmladapters line 973 Java Problem > > > mContext cannot be resolved Adapters.java > > > /Feedsample/src/com/example/ > > > android/xmladapters line 976 Java Problem > > > mFrom cannot be resolved Adapters.java > > > /Feedsample/src/com/example/ > > > android/xmladapters line 938 Java Problem > > > mTo cannot be resolved Adapters.java /Feedsample/src/com/example/ > > > android/xmladapters line 937 Java Problem > > > mTo cannot be resolved Adapters.java /Feedsample/src/com/example/ > > > android/xmladapters line 939 Java Problem > > > The importandroid.content.XmlDocumentProvidercannot be resolved > > > RssReaderActivity.java /Feedsample/src/com/example/android/ > > >xmladapters > > > line 20 Java Problem > > > > ---------- errors end ----- -- 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

