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();
}
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 {
}
compileSdkVersion 22 buildToolsVersion "23.0.3"