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

Hello,

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
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-dontoptimize
-dontshrink


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
PhilippHToner
Once Poster
Once Poster
 
Posts: 1
Joined: Mon May 30, 2011 12:56 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Exabot [Bot] and 3 guests