When I use Proguard on project with OrmLite. I recieve this error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.package.name/com.package.name.activities.StartActivity}:
java.lang.IllegalStateException: Could not find OpenHelperClass because none of the generic parameters of class class com.package.name.activities.StartActivity extends OrmLiteSqliteOpenHelper. You should use getHelper(Context, Class) instead.
I've tried all recomendation from Proguard with OrmLite on Android and from others resources but without results
Just a small addition for the latest version OrmLite 5.
You may want to add these rows to hide some new warnings:
Look for more details into this thread: "how can i write the config of proguard for ormlite?"
Put the below in both your proguard-project file and your proguard-optimization file (if you use optimization).
and for every model class:
I don't like the last part one bit, but I'm tired of trying to find a better solution.
I asked much the same question crash using ORMLite on Android with proguard and the answer was to add
to the proguard configuration.
You can use the following proguard configuration to Keep all model classes that are used by OrmLite