Eclipse simulator keep saying Unfortunately, has stopped - android

08-28 05:00:23.910: D/dalvikvm(784): Not late-enabling CheckJNI
(already on) 08-28 05:00:26.950: D/AndroidRuntime(784): Shutting down
VM 08-28 05:00:26.950: W/dalvikvm(784): threadid=1: thread exiting
with uncaught exception (group=0xb3a74d70) 08-28 05:00:26.960:
E/AndroidRuntime(784): FATAL EXCEPTION: main 08-28 05:00:26.960:
E/AndroidRuntime(784): Process: com.example.geoquiz, PID: 784 08-28
05:00:26.960: E/AndroidRuntime(784): java.lang.RuntimeException:
Unable to start activity
ComponentInfo{com.example.geoquiz/com.example.geoquiz.QuizActivity}:
android.util.AndroidRuntimeException: You cannot combine swipe
dismissal and the action bar. 08-28 05:00:26.960:
E/AndroidRuntime(784): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
08-28 05:00:26.960: E/AndroidRuntime(784): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
08-28 05:00:26.960: E/AndroidRuntime(784): at
android.app.ActivityThread.access$800(ActivityThread.java:138) 08-28
05:00:26.960: E/AndroidRuntime(784): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
08-28 05:00:26.960: E/AndroidRuntime(784): at
android.os.Handler.dispatchMessage(Handler.java:102) 08-28
05:00:26.960: E/AndroidRuntime(784): at
android.os.Looper.loop(Looper.java:136) 08-28 05:00:26.960:
E/AndroidRuntime(784): at
android.app.ActivityThread.main(ActivityThread.java:5026) 08-28
05:00:26.960: E/AndroidRuntime(784): at
java.lang.reflect.Method.invokeNative(Native Method) 08-28
05:00:26.960: E/AndroidRuntime(784): at
java.lang.reflect.Method.invoke(Method.java:515) 08-28 05:00:26.960:
E/AndroidRuntime(784): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
08-28 05:00:26.960: E/AndroidRuntime(784): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) 08-28
05:00:26.960: E/AndroidRuntime(784): at
dalvik.system.NativeStart.main(Native Method) 08-28 05:00:26.960:
E/AndroidRuntime(784): Caused by:
android.util.AndroidRuntimeException: You cannot combine swipe
dismissal and the action bar. 08-28 05:00:26.960:
E/AndroidRuntime(784): at
com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275)
08-28 05:00:26.960: E/AndroidRuntime(784): at
com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872)
08-28 05:00:26.960: E/AndroidRuntime(784): at
com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129)
08-28 05:00:26.960: E/AndroidRuntime(784): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303)
08-28 05:00:26.960: E/AndroidRuntime(784): at
android.app.Activity.setContentView(Activity.java:1930) 08-28
05:00:26.960: E/AndroidRuntime(784): at
android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:217)
08-28 05:00:26.960: E/AndroidRuntime(784): at
android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
08-28 05:00:26.960: E/AndroidRuntime(784): at
android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:77)
08-28 05:00:26.960: E/AndroidRuntime(784): at
com.example.geoquiz.QuizActivity.onCreate(QuizActivity.java:20) 08-28
05:00:26.960: E/AndroidRuntime(784): at
android.app.Activity.performCreate(Activity.java:5242) 08-28
05:00:26.960: E/AndroidRuntime(784): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
08-28 05:00:26.960: E/AndroidRuntime(784): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
08-28 05:00:26.960: E/AndroidRuntime(784): ... 11 more 08-28
05:15:14.460: D/AndroidRuntime(1119): Shutting down VM 08-28
05:15:14.460: W/dalvikvm(1119): threadid=1: thread exiting with
uncaught exception (group=0xb3a74d70) 08-28 05:15:14.470:
E/AndroidRuntime(1119): FATAL EXCEPTION: main 08-28 05:15:14.470:
E/AndroidRuntime(1119): Process: com.example.geoquiz, PID: 1119 08-28
05:15:14.470: E/AndroidRuntime(1119): java.lang.RuntimeException:
Unable to instantiate application android.test.mock.MockApplication:
java.lang.ClassNotFoundException: Didn't find class
"android.test.mock.MockApplication" on path: DexPathList[[zip file
"/data/app/com.example.geoquiz-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.geoquiz-2, /system/lib]] 08-28 05:15:14.470: E/AndroidRuntime(1119): at
android.app.LoadedApk.makeApplication(LoadedApk.java:507) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4326)
08-28 05:15:14.470: E/AndroidRuntime(1119): at
android.app.ActivityThread.access$1500(ActivityThread.java:138) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
08-28 05:15:14.470: E/AndroidRuntime(1119): at
android.os.Handler.dispatchMessage(Handler.java:102) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
android.os.Looper.loop(Looper.java:136) 08-28 05:15:14.470:
E/AndroidRuntime(1119): at
android.app.ActivityThread.main(ActivityThread.java:5026) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
java.lang.reflect.Method.invokeNative(Native Method) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
java.lang.reflect.Method.invoke(Method.java:515) 08-28 05:15:14.470:
E/AndroidRuntime(1119): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
08-28 05:15:14.470: E/AndroidRuntime(1119): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
dalvik.system.NativeStart.main(Native Method) 08-28 05:15:14.470:
E/AndroidRuntime(1119): Caused by: java.lang.ClassNotFoundException:
Didn't find class "android.test.mock.MockApplication" on path:
DexPathList[[zip file
"/data/app/com.example.geoquiz-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.geoquiz-2, /system/lib]] 08-28 05:15:14.470: E/AndroidRuntime(1119): at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-28 05:15:14.470: E/AndroidRuntime(1119): at
java.lang.ClassLoader.loadClass(ClassLoader.java:497) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
java.lang.ClassLoader.loadClass(ClassLoader.java:457) 08-28
05:15:14.470: E/AndroidRuntime(1119): at
android.app.Instrumentation.newApplication(Instrumentation.java:975)
08-28 05:15:14.470: E/AndroidRuntime(1119): at
android.app.LoadedApk.makeApplication(LoadedApk.java:502) 08-28
05:15:14.470: E/AndroidRuntime(1119): ... 11 more 08-28 05:16:04.770:
D/AndroidRuntime(1162): Shutting down VM 08-28 05:16:04.770:
W/dalvikvm(1162): threadid=1: thread exiting with uncaught exception
(group=0xb3a74d70) 08-28 05:16:04.780: E/AndroidRuntime(1162): FATAL
EXCEPTION: main 08-28 05:16:04.780: E/AndroidRuntime(1162): Process:
com.example.geoquiz, PID: 1162 08-28 05:16:04.780:
E/AndroidRuntime(1162): java.lang.RuntimeException: Unable to
instantiate application android.test.mock.MockApplication:
java.lang.ClassNotFoundException: Didn't find class
"android.test.mock.MockApplication" on path: DexPathList[[zip file
"/data/app/com.example.geoquiz-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.geoquiz-1, /system/lib]] 08-28 05:16:04.780: E/AndroidRuntime(1162): at
android.app.LoadedApk.makeApplication(LoadedApk.java:507) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4326)
08-28 05:16:04.780: E/AndroidRuntime(1162): at
android.app.ActivityThread.access$1500(ActivityThread.java:138) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1269)
08-28 05:16:04.780: E/AndroidRuntime(1162): at
android.os.Handler.dispatchMessage(Handler.java:102) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
android.os.Looper.loop(Looper.java:136) 08-28 05:16:04.780:
E/AndroidRuntime(1162): at
android.app.ActivityThread.main(ActivityThread.java:5026) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
java.lang.reflect.Method.invokeNative(Native Method) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
java.lang.reflect.Method.invoke(Method.java:515) 08-28 05:16:04.780:
E/AndroidRuntime(1162): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
08-28 05:16:04.780: E/AndroidRuntime(1162): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
dalvik.system.NativeStart.main(Native Method) 08-28 05:16:04.780:
E/AndroidRuntime(1162): Caused by: java.lang.ClassNotFoundException:
Didn't find class "android.test.mock.MockApplication" on path:
DexPathList[[zip file
"/data/app/com.example.geoquiz-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.geoquiz-1, /system/lib]] 08-28 05:16:04.780: E/AndroidRuntime(1162): at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-28 05:16:04.780: E/AndroidRuntime(1162): at
java.lang.ClassLoader.loadClass(ClassLoader.java:497) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
java.lang.ClassLoader.loadClass(ClassLoader.java:457) 08-28
05:16:04.780: E/AndroidRuntime(1162): at
android.app.Instrumentation.newApplication(Instrumentation.java:975)
08-28 05:16:04.780: E/AndroidRuntime(1162): at
android.app.LoadedApk.makeApplication(LoadedApk.java:502) 08-28
05:16:04.780: E/AndroidRuntime(1162): ... 11 more 08-28 05:21:04.870:
I/Process(1162): Sending signal. PID: 1162 SIG: 9 08-28 05:27:08.560:
D/AndroidRuntime(1286): Shutting down VM 08-28 05:27:08.560:
W/dalvikvm(1286): threadid=1: thread exiting with uncaught exception
(group=0xb3a74d70) 08-28 05:27:08.570: E/AndroidRuntime(1286): FATAL
EXCEPTION: main 08-28 05:27:08.570: E/AndroidRuntime(1286): Process:
com.example.geoquiz, PID: 1286 08-28 05:27:08.570:
E/AndroidRuntime(1286): java.lang.RuntimeException: Unable to start
activity
ComponentInfo{com.example.geoquiz/com.example.geoquiz.QuizActivity}:
android.util.AndroidRuntimeException: You cannot combine swipe
dismissal and the action bar. 08-28 05:27:08.570:
E/AndroidRuntime(1286): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2197)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
android.app.ActivityThread.access$800(ActivityThread.java:138) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1209)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
android.os.Handler.dispatchMessage(Handler.java:102) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
android.os.Looper.loop(Looper.java:136) 08-28 05:27:08.570:
E/AndroidRuntime(1286): at
android.app.ActivityThread.main(ActivityThread.java:5026) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
java.lang.reflect.Method.invokeNative(Native Method) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
java.lang.reflect.Method.invoke(Method.java:515) 08-28 05:27:08.570:
E/AndroidRuntime(1286): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
dalvik.system.NativeStart.main(Native Method) 08-28 05:27:08.570:
E/AndroidRuntime(1286): Caused by:
android.util.AndroidRuntimeException: You cannot combine swipe
dismissal and the action bar. 08-28 05:27:08.570:
E/AndroidRuntime(1286): at
com.android.internal.policy.impl.PhoneWindow.requestFeature(PhoneWindow.java:275)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
com.android.internal.policy.impl.PhoneWindow.generateLayout(PhoneWindow.java:2872)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
com.android.internal.policy.impl.PhoneWindow.installDecor(PhoneWindow.java:3129)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:303)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
android.app.Activity.setContentView(Activity.java:1930) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:217)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
android.support.v7.app.ActionBarActivityDelegateICS.setContentView(ActionBarActivityDelegateICS.java:110)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
android.support.v7.app.ActionBarActivity.setContentView(ActionBarActivity.java:77)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
com.example.geoquiz.QuizActivity.onCreate(QuizActivity.java:20) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
android.app.Activity.performCreate(Activity.java:5242) 08-28
05:27:08.570: E/AndroidRuntime(1286): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
08-28 05:27:08.570: E/AndroidRuntime(1286): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2161)
08-28 05:27:08.570: E/AndroidRuntime(1286): ... 11 more
I'm new to android, what's wrong with this?

See, this is showing exception here. You have made some mistakes in your code. This is your error:
"You cannot combine swipe dismissal and the action bar"
and if you click on this line
"android.support.v7.app.ActionBarActivity.superSetContentView(ActionBarActivity.java:217) 08-28 05:27:08.570: E/AndroidRuntime(1286): at "
you will get the exact error in your Java class.

Related

findViewById on an ImageView why does setBackgroundColor give NullPointerException

I have a very basic activity with an ImageView of android:id="#+id/imageViewTest"
and then in the OnCreate method calling:
ImageView imageView = (ImageView)findViewById(R.id.imageViewTest);
// Set the background color to white
imageView.setBackgroundColor(Color.WHITE);
this gives error:
10-15 16:36:27.552 29097-29097/org.explore.self.beginner D/dalvikvm﹕ Late-enabling CheckJNI
10-15 16:36:28.017 29097-29097/org.explore.self.beginner D/AndroidRuntime﹕ Shutting down VM
10-15 16:36:28.017 29097-29097/org.explore.self.beginner W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x41d9b2a0)
10-15 16:36:28.042 29097-29097/org.explore.self.beginner E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.explore.self.beginner/org.selfexplore.android.view.activity.TestActivity}: java.lang.NullPointerException
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2110)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
at android.app.ActivityThread.access$700(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4921)
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:1038)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at org.selfexplore.android.view.activity.TestActivity.onCreate(TestActivity.java:37)
at android.app.Activity.performCreate(Activity.java:5188)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)
            at android.app.ActivityThread.access$700(ActivityThread.java:140)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)
            at android.os.Handler.dispatchMessage(Handler.java:99)
            at android.os.Looper.loop(Looper.java:137)
            at android.app.ActivityThread.main(ActivityThread.java:4921)
            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:1038)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
            at dalvik.system.NativeStart.main(Native Method)
10-15 16:36:28.062 29097-29097/org.explore.self.beginner I/Process﹕ Sending signal. PID: 29097 SIG: 9
But when I do a
ImageView imageView = new ImageView(this);
it works fine, Why?
PS: I am not able to add the layout code here, so sharing it in this doc: https://docs.google.com/document/d/1fbi3B_hAYUh_C2IwPfInvZ-BG2bgsa4pZoJKj8NBT9o/edit?usp=sharing
Your layout you've set with setContentView() doesn't have a view with id imageViewTest and findViewById() returns null, or you haven't called setContentView() at all.

Unable to get provider abc.xxx.Datapro: java.lang.ClassNotFoundException

Unable to get provider abc.xxx.Datapro: java.lang.ClassNotFoundException: Didn't find class "abc.xxx.Datapro" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
logcat
08-28 16:23:18.750: E/AndroidRuntime(2189): FATAL EXCEPTION: main
08-28 16:23:18.750: E/AndroidRuntime(2189): Process: dbd.mygovtnotification, PID: 2189
08-28 16:23:18.750: E/AndroidRuntime(2189): java.lang.RuntimeException: Unable to get provider dbd.mygovtnotification.Datapro: java.lang.ClassNotFoundException: Didn't find class "dbd.mygovtnotification.Datapro" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.app.ActivityThread.installProvider(ActivityThread.java:4793)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.os.Handler.dispatchMessage(Handler.java:102)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.os.Looper.loop(Looper.java:136)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.app.ActivityThread.main(ActivityThread.java:5017)
08-28 16:23:18.750: E/AndroidRuntime(2189): at java.lang.reflect.Method.invokeNative(Native Method)
08-28 16:23:18.750: E/AndroidRuntime(2189): at java.lang.reflect.Method.invoke(Method.java:515)
08-28 16:23:18.750: E/AndroidRuntime(2189): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-28 16:23:18.750: E/AndroidRuntime(2189): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
08-28 16:23:18.750: E/AndroidRuntime(2189): at dalvik.system.NativeStart.main(Native Method)
08-28 16:23:18.750: E/AndroidRuntime(2189): Caused by: java.lang.ClassNotFoundException: Didn't find class "dbd.mygovtnotification.Datapro" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
08-28 16:23:18.750: E/AndroidRuntime(2189): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-28 16:23:18.750: E/AndroidRuntime(2189): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
08-28 16:23:18.750: E/AndroidRuntime(2189): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
08-28 16:23:18.750: E/AndroidRuntime(2189): at android.app.ActivityThread.installProvider(ActivityThread.java:4778)
08-28 16:23:18.750: E/AndroidRuntime(2189): ... 12 more
08-28 16:24:10.301: D/AndroidRuntime(2242): Shutting down VM
08-28 16:24:10.321: W/dalvikvm(2242): threadid=1: thread exiting with uncaught exception (group=0xb1d80b20)
08-28 16:24:10.371: E/AndroidRuntime(2242): FATAL EXCEPTION: main
08-28 16:24:10.371: E/AndroidRuntime(2242): Process: dbd.mygovtnotification, PID: 2242
08-28 16:24:10.371: E/AndroidRuntime(2242): java.lang.RuntimeException: Unable to get provider dbd.mygovtnotification.Datapro: java.lang.ClassNotFoundException: Didn't find class "dbd.mygovtnotification.Datapro" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.app.ActivityThread.installProvider(ActivityThread.java:4793)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4385)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4325)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.os.Handler.dispatchMessage(Handler.java:102)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.os.Looper.loop(Looper.java:136)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.app.ActivityThread.main(ActivityThread.java:5017)
08-28 16:24:10.371: E/AndroidRuntime(2242): at java.lang.reflect.Method.invokeNative(Native Method)
08-28 16:24:10.371: E/AndroidRuntime(2242): at java.lang.reflect.Method.invoke(Method.java:515)
08-28 16:24:10.371: E/AndroidRuntime(2242): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-28 16:24:10.371: E/AndroidRuntime(2242): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
08-28 16:24:10.371: E/AndroidRuntime(2242): at dalvik.system.NativeStart.main(Native Method)
08-28 16:24:10.371: E/AndroidRuntime(2242): Caused by: java.lang.ClassNotFoundException: Didn't find class "dbd.mygovtnotification.Datapro" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
08-28 16:24:10.371: E/AndroidRuntime(2242): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
08-28 16:24:10.371: E/AndroidRuntime(2242): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
08-28 16:24:10.371: E/AndroidRuntime(2242): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
08-28 16:24:10.371: E/AndroidRuntime(2242): at android.app.ActivityThread.installProvider(ActivityThread.java:4778)
08-28 16:24:10.371: E/AndroidRuntime(2242): ... 12 more
Manifest.xml
xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dbd.mygovtnotification"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<permission
android:name="dbd.mygovtnotification.permission.C2D_MESSAGE"
android:protectionLevel="signature" />
<uses-permission android:name="dbd.mygovtnotification.permission.C2D_MESSAGE" />
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" android:enabled="true" android:hasCode="false">
<meta-data
android:name="com.google.android.gms.version"
android:value="#integer/google_play_services_version" />
<activity
android:name=".MainActivity"
android:label="#string/app_name" >
</activity>
<receiver
android:name=".GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="dbd.mygovtnotification" />
</intent-filter>
</receiver>
<activity android:name="NewMainActivity" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name="GcMIntentService" >
</service>
<activity android:name="TeST" >
</activity>
<provider
android:name="dbd.mygovtnotification.Datapro"
android:authorities="dbd.mygovtnotification"
android:exported="false">
</provider>
<activity android:name="ViewJOB" >
</activity>
</application>
</manifest>
by examining what other people did
cleaned projects
restarted the eclipse, phone, emulator,adb and pc.
nothing seems to help, would appreciate any help
Try using this instead:
android:name=".Datapro"
android:authorities="dbd.mygovtnotification.datapro"
if nothing works like in my case (when it was previously working ) consider creating a new project and copying files from the old one and updating references(some will be taken in care by eclipse itself )

Unfortunately,(ProjectName) has been stopped Android [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I already generated API key by giving the MD5 fingureprint from here
https://code.google.com/apis/console/?noredirect#project:413913157166:access
but after running the android application i got error message Unfortunately,(ProjectName) has been stopped Android in the emulator
Need Help.. Thanks in advance
here is my logcat
t. Please make sure your kernel is compiled with file capabilities support enabled.
12-23 01:06:40.713: W/dalvikvm(1663): PR_CAPBSET_DROP 33 failed: Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled.
12-23 01:06:40.744: D/dalvikvm(1663): Not late-enabling CheckJNI (already on)
12-23 01:06:44.634: D/dalvikvm(1663): GC_FOR_ALLOC freed 243K, 11% free 2773K/3104K, paused 41ms, total 47ms
12-23 01:06:44.634: W/CursorWrapperInner(1663): Cursor finalized without prior close()
12-23 01:06:44.645: W/CursorWrapperInner(1663): Cursor finalized without prior close()
12-23 01:06:44.724: D/AndroidRuntime(1663): Shutting down VM
12-23 01:06:44.744: W/dalvikvm(1663): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:06:44.824: E/AndroidRuntime(1663): FATAL EXCEPTION: main
12-23 01:06:44.824: E/AndroidRuntime(1663): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.os.Looper.loop(Looper.java:137)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:06:44.824: E/AndroidRuntime(1663): at dalvik.system.NativeStart.main(Native Method)
12-23 01:06:44.824: E/AndroidRuntime(1663): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:06:44.824: E/AndroidRuntime(1663): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:06:44.824: E/AndroidRuntime(1663): ... 11 more
12-23 01:06:44.824: E/AndroidRuntime(1663): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-1, /vendor/lib, /system/lib]]
12-23 01:06:44.824: E/AndroidRuntime(1663): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:06:44.824: E/AndroidRuntime(1663): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:06:44.824: E/AndroidRuntime(1663): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:06:44.824: E/AndroidRuntime(1663): ... 21 more
12-23 01:06:54.994: I/Process(1663): Sending signal. PID: 1663 SIG: 9
12-23 01:08:58.434: D/dalvikvm(1820): GC_FOR_ALLOC freed 250K, 11% free 2766K/3104K, paused 67ms, total 76ms
12-23 01:08:58.434: W/CursorWrapperInner(1820): Cursor finalized without prior close()
12-23 01:08:58.464: W/CursorWrapperInner(1820): Cursor finalized without prior close()
12-23 01:08:58.624: D/AndroidRuntime(1820): Shutting down VM
12-23 01:08:58.624: W/dalvikvm(1820): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:08:58.714: E/AndroidRuntime(1820): FATAL EXCEPTION: main
12-23 01:08:58.714: E/AndroidRuntime(1820): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.os.Looper.loop(Looper.java:137)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:08:58.714: E/AndroidRuntime(1820): at dalvik.system.NativeStart.main(Native Method)
12-23 01:08:58.714: E/AndroidRuntime(1820): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class com.google.android.map.MapView
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:08:58.714: E/AndroidRuntime(1820): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:08:58.714: E/AndroidRuntime(1820): ... 11 more
12-23 01:08:58.714: E/AndroidRuntime(1820): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-2, /vendor/lib, /system/lib]]
12-23 01:08:58.714: E/AndroidRuntime(1820): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:08:58.714: E/AndroidRuntime(1820): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:08:58.714: E/AndroidRuntime(1820): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:08:58.714: E/AndroidRuntime(1820): ... 21 more
12-23 01:09:10.654: I/Process(1820): Sending signal. PID: 1820 SIG: 9
12-23 01:16:40.084: D/dalvikvm(1913): GC_FOR_ALLOC freed 229K, 11% free 2786K/3104K, paused 47ms, total 52ms
12-23 01:16:40.084: W/CursorWrapperInner(1913): Cursor finalized without prior close()
12-23 01:16:40.095: W/CursorWrapperInner(1913): Cursor finalized without prior close()
12-23 01:16:40.114: D/AndroidRuntime(1913): Shutting down VM
12-23 01:16:40.114: W/dalvikvm(1913): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:16:40.146: E/AndroidRuntime(1913): FATAL EXCEPTION: main
12-23 01:16:40.146: E/AndroidRuntime(1913): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #10: Error inflating class activity
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.os.Looper.loop(Looper.java:137)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:16:40.146: E/AndroidRuntime(1913): at dalvik.system.NativeStart.main(Native Method)
12-23 01:16:40.146: E/AndroidRuntime(1913): Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class activity
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:16:40.146: E/AndroidRuntime(1913): ... 11 more
12-23 01:16:40.146: E/AndroidRuntime(1913): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.activity" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-1, /vendor/lib, /system/lib]]
12-23 01:16:40.146: E/AndroidRuntime(1913): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:16:40.146: E/AndroidRuntime(1913): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:652)
12-23 01:16:40.146: E/AndroidRuntime(1913): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:669)
12-23 01:16:40.146: E/AndroidRuntime(1913): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:694)
12-23 01:16:40.146: E/AndroidRuntime(1913): ... 21 more
12-23 01:16:46.515: I/Process(1913): Sending signal. PID: 1913 SIG: 9
12-23 01:25:04.063: D/dalvikvm(1967): GC_FOR_ALLOC freed 232K, 11% free 2784K/3104K, paused 30ms, total 36ms
12-23 01:25:04.063: W/CursorWrapperInner(1967): Cursor finalized without prior close()
12-23 01:25:04.073: W/CursorWrapperInner(1967): Cursor finalized without prior close()
12-23 01:25:04.093: D/AndroidRuntime(1967): Shutting down VM
12-23 01:25:04.093: W/dalvikvm(1967): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:25:04.103: E/AndroidRuntime(1967): FATAL EXCEPTION: main
12-23 01:25:04.103: E/AndroidRuntime(1967): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.os.Looper.loop(Looper.java:137)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:25:04.103: E/AndroidRuntime(1967): at dalvik.system.NativeStart.main(Native Method)
12-23 01:25:04.103: E/AndroidRuntime(1967): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:25:04.103: E/AndroidRuntime(1967): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:25:04.103: E/AndroidRuntime(1967): ... 11 more
12-23 01:25:04.103: E/AndroidRuntime(1967): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-2, /vendor/lib, /system/lib]]
12-23 01:25:04.103: E/AndroidRuntime(1967): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:25:04.103: E/AndroidRuntime(1967): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:25:04.103: E/AndroidRuntime(1967): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:25:04.103: E/AndroidRuntime(1967): ... 21 more
12-23 01:25:22.094: I/Process(1967): Sending signal. PID: 1967 SIG: 9
12-23 01:27:40.973: D/dalvikvm(2025): GC_FOR_ALLOC freed 233K, 11% free 2783K/3104K, paused 32ms, total 38ms
12-23 01:27:40.973: W/CursorWrapperInner(2025): Cursor finalized without prior close()
12-23 01:27:40.973: W/CursorWrapperInner(2025): Cursor finalized without prior close()
12-23 01:27:41.003: D/AndroidRuntime(2025): Shutting down VM
12-23 01:27:41.003: W/dalvikvm(2025): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-23 01:27:41.023: E/AndroidRuntime(2025): FATAL EXCEPTION: main
12-23 01:27:41.023: E/AndroidRuntime(2025): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.maps/com.example.maps.MainActivity}: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.access$600(ActivityThread.java:141)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.os.Handler.dispatchMessage(Handler.java:99)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.os.Looper.loop(Looper.java:137)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.main(ActivityThread.java:5103)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.reflect.Method.invokeNative(Native Method)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.reflect.Method.invoke(Method.java:525)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-23 01:27:41.023: E/AndroidRuntime(2025): at dalvik.system.NativeStart.main(Native Method)
12-23 01:27:41.023: E/AndroidRuntime(2025): Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class com.google.android.map.MapView
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:707)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:267)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.Activity.setContentView(Activity.java:1895)
12-23 01:27:41.023: E/AndroidRuntime(2025): at com.example.maps.MainActivity.onCreate(MainActivity.java:16)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.Activity.performCreate(Activity.java:5133)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-23 01:27:41.023: E/AndroidRuntime(2025): ... 11 more
12-23 01:27:41.023: E/AndroidRuntime(2025): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.map.MapView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.maps-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.maps-1, /vendor/lib, /system/lib]]
12-23 01:27:41.023: E/AndroidRuntime(2025): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
12-23 01:27:41.023: E/AndroidRuntime(2025): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.createView(LayoutInflater.java:559)
12-23 01:27:41.023: E/AndroidRuntime(2025): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
12-23 01:27:41.023: E/AndroidRuntime(2025): ... 21 more
12-23 01:32:41.724: I/Process(2025): Sending signal. PID: 2025 SIG: 9
HERE IS MY MANIFEST
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.maps"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<uses-library android:name ="com.google.android.maps"/>
<activity
android:name="com.example.maps.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
</i>
HERE IS MY ACTIVITY CLASS
package com.example.maps;
import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends MapActivity {
MapView map;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
map = (MapView)findViewById(R.id.mvMainActivity);
}
#Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
#Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return false;
}
}
HERE IS MY XML->LAYOUT FILE
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="#dimen/activity_vertical_margin"
android:paddingLeft="#dimen/activity_horizontal_margin"
android:paddingRight="#dimen/activity_horizontal_margin"
android:paddingTop="#dimen/activity_vertical_margin"
tools:context=".MainActivity" >
<com.google.android.map.MapView
android:id = "#+id/mvMainActivity"
android:layout_width = "fill_parent"
android:layout_height = "fill_parent"
android:clickable="true"
android:apiKey = "AIzaSyBq4zldj_kQVdwGt9ru-nWSSOJ0ORUBuFE"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="#string/hello_world" />
</RelativeLayout>
I would recommend you update the ADK's libraries. This question's answer details how to update your libraries.
Furthermore, verify that the libraries you imported for com.google.android.maps have been added to your build path. It seems an off thing to check but working with Android, I have seen many stranger things!
Edit: As stated by one of the comments, the deprecated maps library might be the culprit. If the update does not fix the problem. Try raising the minimum version you are targeting. Legacy support is nice but often induces more problems than it solves. Unless it is of crucial importance to you, I would personally only target the latest release which I believe was API version 14 or 16.
yup as Raghunandan said you are using Google maps API V1 which is deprecated one. Follow this link for Convert it to API V2.
And also you can try this code which I got map on my emulator.

Error coming while running android application

I have created an android application using eclipse but application is not running on AVD it is saying "Unfortunately has stopped working"
Log cat message is given below -
07-29 04:59:50.789: W/dalvikvm(784): threadid=1: thread exiting with uncaught exception (group=0x414c4700)
07-29 04:59:50.808: E/AndroidRuntime(784): FATAL EXCEPTION: main
07-29 04:59:50.808: E/AndroidRuntime(784): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.androidlove/com.example.androidlove.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.example.androidlove.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.androidlove-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.androidlove-1, /system/lib]]
07-29 04:59:50.808: E/AndroidRuntime(784): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.app.ActivityThread.access$600(ActivityThread.java:141)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.os.Handler.dispatchMessage(Handler.java:99)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.os.Looper.loop(Looper.java:137)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.app.ActivityThread.main(ActivityThread.java:5103)
07-29 04:59:50.808: E/AndroidRuntime(784): at java.lang.reflect.Method.invokeNative(Native Method)
07-29 04:59:50.808: E/AndroidRuntime(784): at java.lang.reflect.Method.invoke(Method.java:525)
07-29 04:59:50.808: E/AndroidRuntime(784): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
07-29 04:59:50.808: E/AndroidRuntime(784): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-29 04:59:50.808: E/AndroidRuntime(784): at dalvik.system.NativeStart.main(Native Method)
07-29 04:59:50.808: E/AndroidRuntime(784): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.androidlove.MainActivity" on path: DexPathList[[zip file "/data/app/com.example.androidlove-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.androidlove-1, /system/lib]]
07-29 04:59:50.808: E/AndroidRuntime(784): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
07-29 04:59:50.808: E/AndroidRuntime(784): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-29 04:59:50.808: E/AndroidRuntime(784): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
07-29 04:59:50.808: E/AndroidRuntime(784): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
07-29 04:59:50.808: E/AndroidRuntime(784): ... 11 more
07-29 04:59:58.399: I/Process(784): Sending signal. PID: 784 SIG: 9
Please help me i am tired of solving this error.....
I faced the same problem and I found the sample code was put in the "JAVA" folder instead of the "src" folder. After moving the code to src, the problem was solved.
I hope that works.
add the mainActivity in menifest according your package name if package is: com.example.androidlove-1
<activity
android:name="com.example.androidlove-1.MainActivity" >
</activity>
You did not declare MainActivity class in the manifest.xml.
<activity
android:name=".MainActivity" >
</activity>

Android Activity Not Found Exception Doesn't Make Sense

Okay well I'm trying to make a Live Wallapper but whenever I click on settings it force closes. Saying the activity is not found which doesn't make any sense because, I have it in the Manifest. This is really starting to bug me as I've been at it for over 2 hours.
Logcat:08-28 01:06:49.903: INFO/ActivityManager(1089): Starting activity: Intent { cmp=quotesandothers.livewallpaper.quotesandothers/quotesandothers.livewallpaper.quotesandothers (has extras) }
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): FATAL EXCEPTION: main
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): java.lang.IllegalStateException: Could not execute method of the activity
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.view.View$1.onClick(View.java:2072)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.view.View.performClick(View.java:2408)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.view.View$PerformClick.run(View.java:8816)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.os.Handler.handleCallback(Handler.java:587)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.os.Handler.dispatchMessage(Handler.java:92)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.os.Looper.loop(Looper.java:123)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.app.ActivityThread.main(ActivityThread.java:4627)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at java.lang.reflect.Method.invokeNative(Native Method)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at java.lang.reflect.Method.invoke(Method.java:521)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at dalvik.system.NativeStart.main(Native Method)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): Caused by: java.lang.reflect.InvocationTargetException
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at com.android.wallpaper.livepicker.LiveWallpaperPreview.configureLiveWallpaper(LiveWallpaperPreview.java:113)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at java.lang.reflect.Method.invokeNative(Native Method)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at java.lang.reflect.Method.invoke(Method.java:521)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.view.View$1.onClick(View.java:2067)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): ... 11 more
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {quotesandothers.livewallpaper.quotesandothers/quotesandothers.livewallpaper.quotesandothers}; have you declared this activity in your AndroidManifest.xml?
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1404)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1378)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.app.Activity.startActivityForResult(Activity.java:2817)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): at android.app.Activity.startActivity(Activity.java:2923)
08-28 01:06:49.934: ERROR/AndroidRuntime(15221): ... 15 more
Manifest:`
</application>
<uses-sdk android:minSdkVersion="7" />
<uses-feature android:name="android.software.live_wallpaper" />
`
Your code starting an Activity. You have to mention this Activity in your AndroidManifest.xml.
like:
<activity android:name="your.package.name.ActivityClassName">
</activity>
Here is part of interest:
ERROR/AndroidRuntime(15221): Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {quotesandothers.livewallpaper.quotesandothers/quotesandothers.livewallpaper.quotesandothers}; have you declared this activity in your AndroidManifest.xml? 08-28

Categories

Resources