Couldn't able to find the error. Logcat Provided
03-22 00:08:15.677: E/dalvikvm(275): Could not find class 'net.sourceforge.jeval.Evaluator', referenced from method com.math.Mainactivitycalculator.onCreate
03-22 00:08:15.927: E/AndroidRuntime(275): FATAL EXCEPTION: main
03-22 00:08:15.927: E/AndroidRuntime(275): java.lang.NoClassDefFoundError: net.sourceforge.jeval.Evaluator
03-22 00:08:15.927: E/AndroidRuntime(275): at com.dbl.dothemath.Mainactivitycalculator.onCreate(Mainactivitycalculator.java:76)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.os.Handler.dispatchMessage(Handler.java:99)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.os.Looper.loop(Looper.java:123)
03-22 00:08:15.927: E/AndroidRuntime(275): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-22 00:08:15.927: E/AndroidRuntime(275): at java.lang.reflect.Method.invokeNative(Native Method)
03-22 00:08:15.927: E/AndroidRuntime(275): at java.lang.reflect.Method.invoke(Method.java:521)
03-22 00:08:15.927: E/AndroidRuntime(275): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-22 00:08:15.927: E/AndroidRuntime(275): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-22 00:08:15.927: E/AndroidRuntime(275): at dalvik.system.NativeStart.main(Native Method)
mathematical Expression involving numbers.
Numbers are treated as doubles, so resulting numbers will contain at least one decimal place.
string String can also be added together, compared, etc...
Boolean Expression that evaluate to true (1.0) and false (0.0).
functional Custom functions can be created or there are many Math and String functions that JEval supplies with this class.
Related
I have used this link to preform videoChat.However, it gives me java.lang.NoClassDefFoundError which cannot locate : com.quickblox.module.chat.smack.SmackAndroid class .I tried changing the preferences of libraries but din't helped.
Here is the log:
03-22 18:14:21.476: I/dalvikvm(9908): Could not find method com.quickblox.module.chat.smack.SmackAndroid.init, referenced from method com.quickblox.videochatsample.ui.App.onCreate
03-22 18:14:21.476: W/dalvikvm(9908): VFY: unable to resolve static method 50: Lcom/quickblox/module/chat/smack/SmackAndroid;.init (Landroid/content/Context;)Lcom/quickblox/module/chat/smack/SmackAndroid;
03-22 18:14:21.476: D/dalvikvm(9908): VFY: replacing opcode 0x71 at 0x0003
03-22 18:14:21.481: D/AndroidRuntime(9908): Shutting down VM
03-22 18:14:21.481: W/dalvikvm(9908): threadid=1: thread exiting with uncaught exception (group=0x41927700)
03-22 18:14:21.486: E/AndroidRuntime(9908): FATAL EXCEPTION: main
03-22 18:14:21.486: E/AndroidRuntime(9908): java.lang.NoClassDefFoundError: com.quickblox.module.chat.smack.SmackAndroid
03-22 18:14:21.486: E/AndroidRuntime(9908): at com.quickblox.videochatsample.ui.App.onCreate(App.java:13)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1024)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4684)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread.access$1400(ActivityThread.java:159)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1376)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.os.Handler.dispatchMessage(Handler.java:99)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.os.Looper.loop(Looper.java:137)
03-22 18:14:21.486: E/AndroidRuntime(9908): at android.app.ActivityThread.main(ActivityThread.java:5419)
03-22 18:14:21.486: E/AndroidRuntime(9908): at java.lang.reflect.Method.invokeNative(Native Method)
03-22 18:14:21.486: E/AndroidRuntime(9908): at java.lang.reflect.Method.invoke(Method.java:525)
03-22 18:14:21.486: E/AndroidRuntime(9908): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1187)
03-22 18:14:21.486: E/AndroidRuntime(9908): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
03-22 18:14:21.486: E/AndroidRuntime(9908): at dalvik.system.NativeStart.main(Native Method)
go to build path and click on add external jar and add quickbox-android-1.2.2.jar
and go to Order and Export tab and check jarfile checkbox.and clean and rebuild project thats it...
when i run an application on Eclipse show me this message (the program has stop unexpectedly please try again later ) force stop and i have this error exception:
11-29 17:22:18.893: D/AndroidRuntime(275): Shutting down VM
11-29 17:22:18.893: W/dalvikvm(275): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
11-29 17:22:18.923: E/AndroidRuntime(275): FATAL EXCEPTION: main
11-29 17:22:18.923: E/AndroidRuntime(275): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.progress_bar/com.example.progress_bar.MainActivity}: java.lang.ClassNotFoundException: com.example.progress_bar.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.example.progress_bar-1.apk]
11-29 17:22:18.923: E/AndroidRuntime(275): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.os.Handler.dispatchMessage(Handler.java:99)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.os.Looper.loop(Looper.java:123)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.app.ActivityThread.main(ActivityThread.java:4627)
11-29 17:22:18.923: E/AndroidRuntime(275): at java.lang.reflect.Method.invokeNative(Native Method)
11-29 17:22:18.923: E/AndroidRuntime(275): at java.lang.reflect.Method.invoke(Method.java:521)
11-29 17:22:18.923: E/AndroidRuntime(275): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-29 17:22:18.923: E/AndroidRuntime(275): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-29 17:22:18.923: E/AndroidRuntime(275): at dalvik.system.NativeStart.main(Native Method)
11-29 17:22:18.923: E/AndroidRuntime(275): Caused by: java.lang.ClassNotFoundException: com.example.progress_bar.MainActivity in loader dalvik.system.PathClassLoader[/data/app/com.example.progress_bar-1.apk]
11-29 17:22:18.923: E/AndroidRuntime(275): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
11-29 17:22:18.923: E/AndroidRuntime(275): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
11-29 17:22:18.923: E/AndroidRuntime(275): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
11-29 17:22:18.923: E/AndroidRuntime(275): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
11-29 17:22:18.923: E/AndroidRuntime(275): ... 11 more
Can you post your MainActivity.xml? And i'd recommend when you create a project to rename your com.example.appname to something like app.appname. Play Store doesn't accept the com.example prefix.
i have implemented the simple listview and i get the error as
03-28 11:24:58.148: E/ArrayAdapter(275): You must supply a resource ID for a TextView
03-28 11:24:58.156: D/AndroidRuntime(275): Shutting down VM
03-28 11:24:58.156: W/dalvikvm(275): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-28 11:24:58.249: E/AndroidRuntime(275): FATAL EXCEPTION: main
03-28 11:24:58.249: E/AndroidRuntime(275): java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextView
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:347)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.ArrayAdapter.getView(ArrayAdapter.java:323)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.AbsListView.obtainView(AbsListView.java:1315)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.ListView.measureHeightOfChildren(ListView.java:1198)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.ListView.onMeasure(ListView.java:1109)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.View.measure(View.java:8171)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1012)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.LinearLayout.measureVertical(LinearLayout.java:381)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.View.measure(View.java:8171)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.View.measure(View.java:8171)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.LinearLayout.measureVertical(LinearLayout.java:526)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.LinearLayout.onMeasure(LinearLayout.java:304)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.View.measure(View.java:8171)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:3132)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.FrameLayout.onMeasure(FrameLayout.java:245)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.View.measure(View.java:8171)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.ViewRoot.performTraversals(ViewRoot.java:801)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.os.Handler.dispatchMessage(Handler.java:99)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.os.Looper.loop(Looper.java:123)
03-28 11:24:58.249: E/AndroidRuntime(275): at android.app.ActivityThread.main(ActivityThread.java:4627)
03-28 11:24:58.249: E/AndroidRuntime(275): at java.lang.reflect.Method.invokeNative(Native Method)
03-28 11:24:58.249: E/AndroidRuntime(275): at java.lang.reflect.Method.invoke(Method.java:521)
03-28 11:24:58.249: E/AndroidRuntime(275): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-28 11:24:58.249: E/AndroidRuntime(275): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-28 11:24:58.249: E/AndroidRuntime(275): at dalvik.system.NativeStart.main(Native Method)
03-28 11:24:58.249: E/AndroidRuntime(275): Caused by: java.lang.ClassCastException: android.widget.RelativeLayout
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:340)
03-28 11:24:58.249: E/AndroidRuntime(275): ... 29 more
03-28 11:24:58.249: E/AndroidRuntime(275): Caused by: java.lang.ClassCastException: android.widget.RelativeLayout
03-28 11:24:58.249: E/AndroidRuntime(275): at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:340)
03-28 11:24:58.249: E/AndroidRuntime(275): ... 29 more
03-28 11:27:32.329: I/Process(275): Sending signal. PID: 275 SIG: 9
Seems you try to pass a RelativeLayout to your ArrayAdapter, where it expects a TextView. At least this is, what the exceptions say.
i'm getting this message when i run my application i don't know why i'm getting it could any one help me. here is the logcat.
java.lang.VerifyError: com.kosh.me.Smaller
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1429)
at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
at android.app.ActivityThread.access$2300(ActivityThread.java:125)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)
This happens when the build library classes conflict with those at run-time. Try performing a Clean of your project followed by a build.
In my app there is one activity I have where I call onDestroy and inside it I have the following:
#Override
public void onDestroy()
{
productAdapter.imageLoader.stopThread();
lvProducts.setAdapter(null);
super.onDestroy();
}
productAdapter is my ListView adapter and I am using the fedorvlasov lazy load functionality.
The issue is, when I leave the app for a LONG time and come back, I try to access this activity from the main activity and I get the following:
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): FATAL EXCEPTION: main
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): java.lang.RuntimeException: Unable to destroy activity {com.MyApp/com.MyApp.Products}: java.lang.NullPointerException
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3081)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3146)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.app.ActivityThread.access$2100(ActivityThread.java:132)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1071)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.os.Handler.dispatchMessage(Handler.java:99)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.os.Looper.loop(Looper.java:150)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.app.ActivityThread.main(ActivityThread.java:4263)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at java.lang.reflect.Method.invokeNative(Native Method)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at java.lang.reflect.Method.invoke(Method.java:507)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at dalvik.system.NativeStart.main(Native Method)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): Caused by: java.lang.NullPointerException
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at com.MyApp.Productss.onDestroy(DailyDeals.java:678)
03-22 09:15:17.684: ERROR/AndroidRuntime(28442): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3063)
The thing is, I dont know how to reproduce this because it only happens if I leave the app for a long time and come back. Its almost like there is an Android timeout that says after this many hours, cause app to start over.
The system will kill your application whenever it needs the resources to use for something else. This is why when you come back after a long time it is no longer running.
why do you have this line?
lvProducts.setAdapter(null);
I think that is what is giving you a null pointer. It isn't liking that you are trying to set it with a null adapter. Try removing this line
Also just to be sure, which line is 678?