I have included latest library version in my project. All seems working fine. When I try to run project in Lollipop devices, it works fine but when I run the same code or Project in Lower vrsion (e.g. 4.1.2) then it gives me error message as below:
`java.lang.ExceptionInInitializerError
at com.ehound.sge.ui.HomeActivity.initDetailsHome(HomeActivity.java:285)
at com.ehound.sge.ui.HomeActivity_.onViewChanged(HomeActivity_.java:293)
at org.androidannotations.api.view.OnViewChangedNotifier.notifyViewChanged(OnViewChangedNotifier.java:41)
at com.ehound.sge.ui.HomeActivity_.setContentView(HomeActivity_.java:58)
at com.ehound.sge.ui.HomeActivity_.onCreate(HomeActivity_.java:47)
at android.app.Activity.performCreate(Activity.java:5185)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2071)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2132)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4918)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: com.j256.ormlite.logger.LoggerFactory
at com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper.<clinit>(OrmLiteSqliteOpenHelper.java:36)
at com.ehound.sge.ui.HomeActivity.initDetailsHome(HomeActivity.java:285)
at com.ehound.sge.ui.HomeActivity_.onViewChanged(HomeActivity_.java:293)
at org.androidannotations.api.view.OnViewChangedNotifier.notifyViewChanged(OnViewChangedNotifier.java:41)
at com.ehound.sge.ui.HomeActivity_.setContentView(HomeActivity_.java:58)
at com.ehound.sge.ui.HomeActivity_.onCreate(HomeActivity_.java:47)
at android.app.Activity.performCreate(Activity.java:5185)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2071)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2132)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1238)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4918)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
at dalvik.system.NativeStart.main(Native Method) `
I have also try some older library in same project but it is not working and gives me above exception. Can any one help me whats wrong here?
The code was working before when I run it from Eclipse. But after importing it to AndroidStudio, It is not working proper.
I have included latest library version in my project. All seems working fine. When I try to run project in Lollipop devices, it works fine but when I run the same code or Project in Lower vrsion (e.g. 4.1.2) then it gives me error message as below:
I have also try some older library in same project but it is not working and gives me above exception. Can any one help me whats wrong here?
The code was working before when I run it from Eclipse. But after importing it to AndroidStudio, It is not working proper.
Gradle for my project is as below:
Need help if anyone have clue to resolved it.
Sincerely, Shreyash