chennaione / sugar

Insanely easy way to work with Android Database.
http://satyan.github.com/sugar/
MIT License
2.62k stars 583 forks source link

java.lang.NoClassDefFoundError: com.orm.util.ContextUtil #631

Open kmno opened 8 years ago

kmno commented 8 years ago

Hi, I'm using master version at my project, based on tutorial. but when i test on kitkat devices i get this error:

E/AndroidRuntime: FATAL EXCEPTION: main Process: ir.winwin, PID: 21184 java.lang.NoClassDefFoundError: com.orm.util.ContextUtil at com.orm.SugarContext.init(SugarContext.java:31) at ir.winwin.model.MyApplication.onCreate(MyApplication.java:12) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007) at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4344) at android.app.ActivityThread.access$1500(ActivityThread.java:135) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method)

this is my application file content: public class MyApplication extends Application {

@Override
public void onCreate() {
    super.onCreate();
    SugarContext.init(this);
}

@Override
public void onTerminate() {
    super.onTerminate();
    SugarContext.terminate();
}

}

compileSdkVersion 22 buildToolsVersion "23.0.3"

alexluckyq commented 7 years ago

Hi, I have exact same issue. Have you found any solutions?

patedit commented 7 years ago

+1

jppasa commented 7 years ago

Also the same issue. Any tips?

mohsenti commented 6 years ago

+1