We found the same problem this morning, and worked round it by moving the uses-sdk element to be the first child of the manifest element.
Thanks, Richard On Apr 28, 6:26 pm, Raphael <[email protected]> wrote: > Actually the element order makes a difference. > It's a bug in the current Market parser which is going to be fixed real soon. > > R/ > > On Tue, Apr 28, 2009 at 6:54 AM,jsdf<[email protected]> wrote: > > > I was finally able to solve this, but the solution made no sense at > > all. > > 1.) I upgraded to the ADT 0.9 SDK 1.5 (released yesterday), and used > > the 1.1 target within. > > 2.) I changed my AndroidManifest.xml to be the following. > > <?xml version="1.0" encoding="utf-8"?> > > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > > package="com.my.package" android:versionName="1.071" > > android:versionCode="20"> > > <uses-sdk android:minSdkVersion="1" /> > > <uses-permission android:name="android.permission.VIBRATE"></ > > uses- > > permission> > > <uses-permission android:name="android.permission.INTERNET"></ > > uses- > > permission> > > <application android:icon="@drawable/icon" > > android:label="@string/ > > app_name" > > android:name="com.my.package.MyApplication"> > > <uses-library android:name="com.google.android.maps" / > > > <activity android:name=".MyAppActivity" > > android:label="@string/ > > app_name"> > > <intent-filter> > > <action > > android:name="android.intent.action.MAIN" /> > > <category > > android:name="android.intent.category.LAUNCHER" /> > > </intent-filter> > > </activity> > > <activity android:name="RouteChooser"></activity> > > <activity android:name="DirChooser"></activity> > > <activity android:name="StopChooser"></activity> > > <activity android:name="UserRouteNameActivity"></ > > activity> > > <activity android:name="PreferencesActivity"></ > > activity> > > <activity > > android:name="com.my.package.map.MapViewActivity"></ > > activity> > > </application> > > </manifest> > > > Note the two changes from the previous version I posted earlier in the > > thread: > > - All the <uses-permission> lines moved to the top, which I do not > > think made any difference. > > - The <uses-library> line moved to the top of <application>, which > > finally fixed this problem. > > > I hope this helps others who are still having this problem. I will > > post a bug report now. > > Jason > > > On Apr 27, 9:03 pm, aleung <[email protected]> wrote: > >> I was using 1.1 SDK and failed to publish. > >> I haven't tried 1.5 SDK yet. > > >> On Apr 27, 10:25 pm,jsdf<[email protected]> wrote: > > >> > aleung, you are correct. It seems the line "<uses-library > >> > android:name="com.google.android.maps" />" is preventing the > >> > AndroidManifest.xml from being parsed correctly. > >> > Unfortunately, I have Maps in my application and cannot simply remove > >> > this line. > > >> > Were you (and others) using the 1.5 SDK package with a 1.1 target to > >> > build your application? > >> > Or were you using 1.1 SDK release 1 with 1.1 target to build your > >> > application? > > >> > (This question is somewhat replicated > >> > here:http://groups.google.com/group/android-developers/browse_thread/threa...) > > >> > Thanks, > >> > Jason > > >> > On Apr 26, 2:16 am, aleung <[email protected]> wrote: > > >> > > Perhaps it's because of this line: > >> > > <uses-library android:name="com.google.android.maps" /> > > >> > > The Android blog said that Google Maps API is a plugin in the 1.5 SDK. > >> > > I'm now downloading the 1.5 SDK early look to have a try. > > >> > > On Apr 26, 12:05 pm,jsdf<[email protected]> wrote: > > >> > > > Even with "1" this does not work. I still get "The server could not > >> > > > process your apk. Try again." > >> > > > I've pasted the relevant AndroidManifest.xml code below. Is there > >> > > > anything else that is wrong? Perhaps use of the custom Application > >> > > > (vs. the default Application) is throwing the XML parser for a loop? > >> > > > (I hope not; I've been using this structure for AndroidManifest for > >> > > > over a month now!) > > >> > > > <?xml version="1.0" encoding="utf-8"?> > >> > > > <manifest xmlns:android="http://schemas.android.com/apk/res/android" > >> > > > package="com.my.package" android:versionName="1.071" > >> > > > android:versionCode="20"> > >> > > > <uses-sdk android:minSdkVersion="1" /> > >> > > > <application android:icon="@drawable/icon" > >> > > > android:label="@string/ > >> > > > app_name" > >> > > > android:name="com.my.package.MyApplication"> > >> > > > <activity android:name=".MyAppActivity" > >> > > > android:label="@string/ > >> > > > app_name"> > >> > > > <intent-filter> > >> > > > <action > >> > > > android:name="android.intent.action.MAIN" /> > >> > > > <category > >> > > > android:name="android.intent.category.LAUNCHER" /> > >> > > > </intent-filter> > >> > > > </activity> > >> > > > <activity android:name="RouteChooser"></activity> > >> > > > <activity android:name="DirChooser"></activity> > >> > > > <activity android:name="StopChooser"></activity> > >> > > > <activity > >> > > > android:name="UserRouteNameActivity"></activity> > >> > > > <activity > >> > > > android:name="PreferencesActivity"></activity> > >> > > > <activity > >> > > > android:name="com.my.package.map.MapViewActivity"></ > >> > > > activity> > >> > > > <uses-library android:name="com.google.android.maps" > >> > > > /> > >> > > > </application> > >> > > > <uses-permission > >> > > > android:name="android.permission.VIBRATE"></uses- > >> > > > permission> > >> > > > <uses-permission > >> > > > android:name="android.permission.INTERNET"></uses- > >> > > > permission> > >> > > > </manifest> > > >> > > > Thanks for the help! > >> > > > Jason > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

