|ClassNotFoundException crash reports from Market||Tauno T||9/6/10 4:28 AM|
I'm seeing some strange crash reports in Android Market and I can't
java.lang.RuntimeException: Unable to instantiate application
We've tested the same .apk on a number of devices and we've never
|Re: [android-developers] ClassNotFoundException crash reports from Market||Marcin Orlowski||9/6/10 5:01 AM|
On 6 September 2010 13:28, Tauno Talimaa <tau...@gmail.com> wrote:
What your app do? Is it calling any other application for example? If so,
> java.lang.RuntimeException: Unable to instantiate application^^^^^^^^^^^^^^^^^
you shouldn't name your classes that way unless you really own company.com
|Re: [android-developers] ClassNotFoundException crash reports from Market||Tauno T||9/6/10 7:00 AM|
> What your app do? Is it calling any other application for example? If so,
No, I don't start any external activities.
|Re: [android-developers] ClassNotFoundException crash reports from Market||TreKing||9/6/10 8:04 PM|
I have a single report of "java.lang.VerifyError" for one of the Activities in my app that's declared in the manifest.
I also have one that failed to find the GeoPoint class that's in the Google Maps library.
Seems like some crazy sh*t happens on user devices.
Do you have any reasonable user messages?
Does it say what platform and and Android version? (Mine's just "Other", so useful!)
TreKing - Chicago transit tracking app for Android-powered devices
|Re: [android-developers] ClassNotFoundException crash reports from Market||Tauno T||9/7/10 12:55 AM|
The user messages are not really helpful sadly :(
"fails to install properly on my Droid Motorola" (tested it on a Droid
myself - tried Android 2.1 and 2.2 and it worked just fine)
"wont let me open"
|Re: ClassNotFoundException crash reports from Market||Pent||9/7/10 2:36 AM|
> I also have one that failed to find the GeoPoint class that's in the GoogleMaybe that's related to one that puzzled me too.
A knowledgable user informed me that some ROMs just use a stub for the
there isn't actually a library there.
Hence your app loads OK but crashes when you try to use map classes
|Re: [android-developers] Re: ClassNotFoundException crash reports from Market||Tauno T||9/7/10 3:28 AM|
yeah, that sounds reasonable for GeoPoint - but in my case I'm not
using the MapsAPIs at all - Android just can't find my Application
class for some reason :/
|Re: [android-developers] ClassNotFoundException crash reports from Market||TreKing||9/7/10 8:05 AM|
On Tue, Sep 7, 2010 at 2:55 AM, Tauno Talimaa <tau...@gmail.com> wrote:
Yeah, I hear you, pretty hard to get useful information from users without being able to ask them questions.
On Tue, Sep 7, 2010 at 4:36 AM, Pent <tas...@dinglisch.net> wrote:
I did have a comment for that that said "FC on Froyo ROM", so that makes more sense.
Yeah, that's weird. You may just have to wait until someone decides to email you about it.
|Re: ClassNotFoundException crash reports from Market||Yahel||9/7/10 8:42 AM|
I had both theses errors : ClassNotFound and VerifyError.
Turns out I was using a class and/or a function that was not available
in the 1.5 framework.
In my manifest I have :
<uses-sdk android:minSdkVersion="3" android:targetSdkVersion="4"></
And in my project properties I have checked the 1.6 framework.
With both of these it did not trigger compiler error since the
function existed in the 1.6 framework.
I just went in the properties, checked the 1.5 framework. Errors were
detected by the compiler, I found a way around them, then checked back
1.6 in the properties. It did the trick.
|Re: [android-developers] Re: ClassNotFoundException crash reports from Market||Tauno T||9/7/10 9:17 AM|
That can't be the problem in my case because people have reported it
on Droid but we've tested it on Droid from the day it came out till
the 2.2 update - and never seen a problem. Also there are a LOT of
Droid users of the app and it apparently happens just for <0.X% of
|Re: [android-developers] Re: ClassNotFoundException crash reports from Market||TreKing||9/7/10 9:10 AM|
The one Activity for which the VerifyError is thrown in my bug report does not use any new APIs. I did what you suggested anyway and found no errors. Next idea? =)
|Re: ClassNotFoundException crash reports from Market||Irene||9/9/10 10:18 AM|
I've been getting reports of ClassNotFoundException as well. I'm also
not using any of the Maps APIs and compiling against the 1.5
framework. No one knows what can cause this?
On Sep 7, 9:10 am, TreKing <treking...@gmail.com> wrote:
> On Tue, Sep 7, 2010 at 10:42 AM, Yahel <kaye...@gmail.com> wrote:> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
|Re: ClassNotFoundException crash reports from Market||DanH||9/10/10 6:55 PM|
Keep in mind that you can get those errors if an exception is thrown
in the class's static initializer. Eg, if you say:
static ClassX x = new ClassX();
and the ClassX() constructor throws an exception, the current class
will fail to initialize and it can report (in some cases) as a
"NotFound" error. (It can report as any of 5-6 different errors
depending on the phase of the moon.)
|Re: ClassNotFoundException crash reports from Market||Emanuel Moecklin||11/23/10 8:58 AM|
I'm getting the same error reports in my developer console:
java.lang.RuntimeException: Unable to instantiate activity
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: com.company.app.InitializeActivity
in loader dalvik.system.PathClassLoader[/mnt/asec/com.company.app-1/pkg.apk]
... 11 more
This one has been reported ~20 times. I'm not using any static initializers,
|Re: ClassNotFoundException crash reports from Market||Moss||11/24/10 11:01 AM|
Could it be that the class loader is failing to find the right
package? I just saw that you are using 'com.company.app' as your
package name. Googling a bit I found that there are many apps that use
the same schema. Normally I use my domain to identify my packages in a
unique way like 'com.myweb.myapp'.
I just tried to reproduce your error and creating 2 apps that use the
same base package name I just get the error when launching them. I
think that the class loader will pickup the first listed package and
then try to load the class (which is not there :P):
If I load com.package.app.ActivityB I'm getting the same error.
Hope this can help you a bit.
On Nov 23, 5:58 pm, Emanuel Moecklin <emanuel.moeck...@1gravity.com>
|unk...@googlegroups.com||11/25/10 6:36 PM||<This message has been deleted.>|
|unk...@googlegroups.com||11/25/10 5:16 AM||<This message has been deleted.>|
|unk...@googlegroups.com||11/27/10 7:08 AM||<This message has been deleted.>|
|Re: ClassNotFoundException crash reports from Market||Emanuel Moecklin||11/27/10 7:10 AM|
The com.package.app is just an "obfuscated" package name (much like
In reality I'm using a unique name or that's what I hope I do ;-).
Thanks for your post anyway.
I really appreciate your support!
|Re: ClassNotFoundException crash reports from Market||Mark||12/27/10 1:27 PM|
Anyone word on this from google?
I am distributing a pretty popular app and this error has popped up a
few hundred times now in the marketplace crash report. I can't really
do anything for these users except ask them to run something like Log
Collector but it's a slim chance they'll do that (no takers yet).
Looks like something related to google maps missing or some such
com.me.test.ActivityMain in loader dalvik.system.PathClassLoader[/
Caused by: java.lang.ClassNotFoundException: com.me.test.ActivityMain
in loader dalvik.system.PathClassLoader[/system/framework/
|Re: ClassNotFoundException crash reports from Market||Technical Support||12/31/10 5:30 AM|
I started getting ClassNotFoundExceptions for one of the classes in my
application last night.
Oddly enough I also got a report from a user that he has a brand new
EVO and he can not install my widget. He gets a "home screen full"
AFTER he gets the configuration screen on a blank home screen. The
Provider for the BroadcastReceiver is the one that gets the CNFE. He
sent me a LogCollector but there is no indication of any problem in
I know I have active users using my widget quite extensively and it
has worked on every phone I could test on. A friend of mine
downloaded and installed it last night on his EVO (purchased about 2
months ago) and it works fine for him.
Is it possible with Android v2.2 that if the user installs the
application to the sdcard there is some runtime problem? I don't know
if that is the case with this one user. I'm waiting for him to reply
to my last email.
Anything else anyone can think to check? This is just bizarre.
|Re: ClassNotFoundException crash reports from Market||Emanuel Moecklin||1/5/11 4:28 PM|
I was finally able to "reproduce" the problem on one of my phones.
It threw the exact same exception I'm normally getting as a market
crash report. The result of my investigation: no app problem but a
problem during installation.
Basically the apk was corrupt and therefore the main activity class
could not be found. This explanation makes sense because the app
hasn't even been started yet when the exception occurs so how could it
be the app's fault? Especially considering the fact that the exact
same app/apk works fine on many identical devices out there. I'm
thinking that whatever piece of code installs the apk must be blamed
for this issue. A fresh installation of the app fixes the issue for
|Re: ClassNotFoundException crash reports from Market||Droider||1/19/11 9:26 AM|
The problem with this is they have to keep uninstalling and re
installing the app over and over.
I reproduced this error by force remvoing my sdcard with out
unmounting it. This left all the apps on my sd card in the app draw
but with blank icons.
java.lang.ClassNotFoundException: com.mycompany.app.MAINACTIVITY in
pkg.apk]com.mycompany.app.MAINACTIVITY in loader
at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)the game worked fine last night now it just forces closed.
Everytime I want to use this app I have to uninstall and reinstall and