Saturday, September 8, 2012

Re: [android-developers] Re: Unable to instantiate application - application name field.

I've seen similar "class not found" in my Market reports, for other types of components, which are clearly present in the app.

Personally, I just ignore them - but your "about half" sounds way too high.

I'd recommend testing your app on the lowest platform version it's marked as supporting, just in case the application class makes references to APIs that are only present on later Android versions (or the classes it references, etc.)

I've been using the leading dot syntax for a long time without any ill effects. Here is my app declaration, verbatim from the manifest:

    <application
        android:name=".core.AquaMailApplication"
        android:description="@string/app_description"
        android:hardwareAccelerated="false"
        android:icon="@drawable/app_icon_my_own_light"
        android:label="@string/app_name"
        android:theme="@style/AquaMailTheme.Dark" >

Also worth mentioning: I've being using ant to make production builds for a long time, making sure to do "ant clean" before building (so it builds from scratch).

I've also made some changes to the standard build scripts to place all ant-related files in their own sub-directory (to make sure that my Eclipse and ant builds are separated).

Not sure if this last item is really necessary, but I'd recommend you consider building with ant, to see if it produces more consistent results. It's really simple, actually, and is covered in the docs.

-- K

2012/9/7 Nathan <nathan.d.mellor@gmail.com>
Here are some references to the problem:

http://stackoverflow.com/questions/10311537/android-to-unable-to-instantiate-application-java-lang-classnotfoundexception


Nathan


--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment