ProGuard optimizing too much

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

ProGuard optimizing too much

Postby PhilippHToner » Mon May 30, 2011 1:05 pm


so I'm developing a game and want to load the class at runtime with reflection out of a file. It looks like this:
Code: Select all
MODEL = somedomain.Model.class

But when loading the Class with Class.forName(...) a ClassNotFoundException is thrown. The class exists but at runtime there is not any, so it's the proguard of the android who optimizes this class away since there is no link to it.

My proguard.cfg looking like this now:
Code: Select all

Can anyone help me, it seems to be false right now. I know that this step is bad, because nothing is optimized, but only to test it.

Thanks Philipp
Once Poster
Once Poster
Posts: 1
Joined: Mon May 30, 2011 12:56 pm


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 1 guest