crash when hockey attemps to display a dialog
Some users get this error (and app crash):
05-09 16:57:35.835 E/AndroidRuntime(23824): FATAL EXCEPTION:
main
05-09 16:57:35.835 E/AndroidRuntime(23824):
java.lang.NoClassDefFoundError: net.hockeyapp.android.R$string
05-09 16:57:35.835 E/AndroidRuntime(23824): at
net.hockeyapp.android.CrashManager.showDialog(CrashManager.java:111)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
net.hockeyapp.android.CrashManager.register(CrashManager.java:92)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
net.hockeyapp.android.CrashManager.register(CrashManager.java:44)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
com.photologica.activities.PicturesActivity.checkForCrashes(PicturesActivity.java:258)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
com.photologica.activities.PicturesActivity.onCreate(PicturesActivity.java:236)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.os.Handler.dispatchMessage(Handler.java:99)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.os.Looper.loop(Looper.java:130)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
android.app.ActivityThread.main(ActivityThread.java:3683)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
java.lang.reflect.Method.invokeNative(Native Method)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
java.lang.reflect.Method.invoke(Method.java:507)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
05-09 16:57:35.835 E/AndroidRuntime(23824): at
dalvik.system.NativeStart.main(Native Method)
It appears that Hockey is attempting to show a dialog asking users to submit crashes. Any idea what is going on?
Thanks,
Garry
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Thomas Dohmke on 10 May, 2012 08:53 AM
Hi Garry,
how have you integrated HockeySDK for Android into your app?
We can't reproduce your error at the moment, so any more detail would be helpful (Android version, device type, etc).
Kind regards,
Thomas
3 Posted by Garry Peterson on 10 May, 2012 02:18 PM
We are using it as a library project in IntelliJ IDEA. We have mostly seen the problem on the Kindle Fire. It seems that with certain builds we would have that problem on some % of devices, but not all.
Thanks,
Garry
4 Posted by Garry Peterson on 10 May, 2012 05:32 PM
I upgraded to the latest SDK and it is still happening. Should I try the .jar instead of library project?
Support Staff 5 Posted by Thomas Dohmke on 10 May, 2012 05:35 PM
Hi Garry,
yes, please try the .jar instead. I am trying to reproduce your error on my Kindle Fire, but no luck so far.
Cheers,
Thomas
6 Posted by Garry Peterson on 10 May, 2012 09:12 PM
Hockey is crashing my app using the .jar as well. Any ideas? Thanks.
05-10 14:08:50.945 E/AndroidRuntime(29794): java.lang.NoClassDefFoundError: net.hockeyapp.android.R$string
05-10 14:08:50.945 E/AndroidRuntime(29794): at net.hockeyapp.android.CrashManager.showDialog(CrashManager.java:109)
05-10 14:08:50.945 E/AndroidRuntime(29794): at net.hockeyapp.android.CrashManager.register(CrashManager.java:90)
05-10 14:08:50.945 E/AndroidRuntime(29794): at net.hockeyapp.android.CrashManager.register(CrashManager.java:42)
05-10 14:08:50.945 E/AndroidRuntime(29794): at com.photologica.activities.PicturesActivity.checkForCrashes(PicturesActivity.java:266)
05-10 14:08:50.945 E/AndroidRuntime(29794): at com.photologica.activities.PicturesActivity.onCreate(PicturesActivity.java:244)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.os.Handler.dispatchMessage(Handler.java:99)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.os.Looper.loop(Looper.java:130)
05-10 14:08:50.945 E/AndroidRuntime(29794): at android.app.ActivityThread.main(ActivityThread.java:3683)
05-10 14:08:50.945 E/AndroidRuntime(29794): at java.lang.reflect.Method.invokeNative(Native Method)
05-10 14:08:50.945 E/AndroidRuntime(29794): at java.lang.reflect.Method.invoke(Method.java:507)
05-10 14:08:50.945 E/AndroidRuntime(29794): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:850)
05-10 14:08:50.945 E/AndroidRuntime(29794): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:608)
05-10 14:08:50.945 E/AndroidRuntime(29794): at dalvik.system.NativeStart.main(Native Method)
Support Staff 7 Posted by Thomas Dohmke on 10 May, 2012 09:22 PM
Hi Garry,
this is weird, the .jar file does not access any R.string stuff and there is no method in CrashManager.java, line 109. You can see the code here:
https://github.com/codenauts/HockeySDK-Android/blob/7bd9870a56a6fb0...
Is it possible that you still somehow reference to the library project? Have you tried a clean build?
It is already past 11pm here in Germany, but I can create and provide a simple demo project in IntelliJ tomorrow. The hope would be that you can identify the problem by comparing it to your project.
Cheers,
Thomas
Support Staff 8 Posted by Thomas Dohmke on 15 May, 2012 07:27 PM
Hi Garry,
I just wanted to check back if this issue is solved or if you are still seeing problems with our SDK?
Thanks,
Thomas
9 Posted by Garry Peterson on 16 May, 2012 12:34 AM
Looks like things have been good since I switched to the .jar. I thought one user had an issue but I believe he wasn't running my latest build at the time.
Thanks,
Garry
Thomas Dohmke closed this discussion on 16 May, 2012 09:49 AM.