We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
casolorz
9 years agoExplorer | Level 3
java.lang.ExceptionInInitializerError
I have an Android app with the Dropbox Java api 3.0.5
For some reason some of my users get the exception I'm pasting below, but the majority do not. I've never reproduced the issue, I've only s...
casolorz
9 years agoExplorer | Level 3
So far Android 5 and 6, seems to be on Motorola phones, Samsung phones, and some weird brand I've never head of. I only have this in beta so I don't have that many reports yet.
Greg-DB
Dropbox Community Moderator
9 years agoThanks! There doesn't seem to be a clear pattern in that unfortunately.
For reference, the Dropbox Java SDK contains a "sdk-version.txt" file with the version number for the SDK in it, for use in the User-Agent header string.
Based on the stack trace you shared, it appears the exception is occurring inside Java's getResourceAsStream, when the Dropbox SDK asks for an input stream for that "sdk-version.txt" file.
It's unclear why that may be happening, so I'll ask engineering to look into it.
- casolorz9 years agoExplorer | Level 3That is good to know. I'm wondering if my proguard is maybe renaming that or multidex is putting it on a second dex file and it is having issues getting it out there. I've had that happen before with multidex but only during the Application onCreate.
My proguard file has:
-keep class com.dropbox.** { *; }
-keepclassmembers class com.dropbox.** { *; }
Maybe I need to add something else to my multidex config to tell it to keep that file on the on the first dex file.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!