I followed the steps that were written down here. Problem arises when I try to restart the app using adb command. LogCat shows the error:
01-26 20:40:30.455: E/AndroidRuntime(418): java.lang.RuntimeException: Unable to instantiate instrumentation ComponentInfo{com.google.android.testing.nativedriver.simplelayouts/com.google.android.testing.nativedriver.server.ServerInstrumentation}: java.lang.ClassNotFoundException: com.google.android.testing.nativedriver.server.ServerInstrumentation in loader dalvik.system.PathClassLoader[/data/app/com.google.android.testing.nativedriver.simplelayouts-1.apk:/data/app/com.google.android.testing.nativedriver.simplelayouts-1.apk]
01-26 20:40:30.455: E/AndroidRuntime(418): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4202)
01-26 20:40:30.455: E/AndroidRuntime(418): at android.app.ActivityThread.access$3000(ActivityThread.java:125)
01-26 20:40:30.455: E/AndroidRuntime(418): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
01-26 20:40:30.455: E/AndroidRuntime(418): at android.os.Handler.dispatchMessage(Handler.java:99)
01-26 20:40:30.455: E/AndroidRuntime(418): at android.os.Looper.loop(Looper.java:123)
01-26 20:40:30.455: E/AndroidRuntime(418): at android.app.ActivityThread.main(ActivityThread.java:4627)
01-26 20:40:30.455: E/AndroidRuntime(418): at java.lang.reflect.Method.invokeNative(Native Method)
01-26 20:40:30.455: E/AndroidRuntime(418): at java.lang.reflect.Method.invoke(Method.java:521)
01-26 20:40:30.455: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-26 20:40:30.455: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-26 20:40:30.455: E/AndroidRuntime(418): at dalvik.system.NativeStart.main(Native Method)
01-26 20:40:30.455: E/AndroidRuntime(418): Caused by: java.lang.ClassNotFoundException: com.google.android.testing.nativedriver.server.ServerInstrumentation in loader dalvik.system.PathClassLoader[/data/app/com.google.android.testing.nativedriver.simplelayouts-1.apk:/data/app/com.google.android.testing.nativedriver.simplelayouts-1.apk]
01-26 20:40:30.455: E/AndroidRuntime(418): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
01-26 20:40:30.455: E/AndroidRuntime(418): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
01-26 20:40:30.455: E/AndroidRuntime(418): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
01-26 20:40:30.455: E/AndroidRuntime(418): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4199)
I already put everything in the library path.
Awesome.
In the Build Path settings in eclipse, I moved the server-standalone.jar file up in the order, and then it worked.
I ran into this same issue earlier, the solution for me was to make sure my jar files were referenced properly in Eclipse and then rebuild the sample-layouts project. This rolls the jars up into the build so they will be found at run-time.
Related
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.
I made an android project on Motodev (which is an eclipse plugin itself). But now when I am trying to run the same project on eclipse, the emulator gives me an error the following error:
FATAL EXCEPTION: main E/AndroidRuntime(4711): java.lang.VerifyError: com.tenpearls.namecalling.Activities.SearchContactsActivity
E/AndroidRuntime(4711): at java.lang.Class.newInstanceImpl(Native Method)
E/AndroidRuntime(4711): at java.lang.Class.newInstance(Class.java:1429)
E/AndroidRuntime(4711): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(4711): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
E/AndroidRuntime(4711): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime(4711): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime(4711): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime(4711): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(4711): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(4711): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(4711): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(4711): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(4711): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(4711): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime(4711): at dalvik.system.NativeStart.main(Native Method)
That can be the result when you have compiled against a different library than you are using at runtime.
A good explanation can be had here.
Another possibility is having a duplicate class in the classpath somewhere, such as in a library jar.
My Application was working fine. But as soon as i updated from ADT 16 to ADT 17 then i am getting this error
Unable to resolve superclass of Lcom/my/app/MyActivity; (130)
Link of class 'Lcom/my/app/MyActivity;' failed
D/AndroidRuntime(328): Shutting down VM
W/dalvikvm(328): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
E/AndroidRuntime(328): FATAL EXCEPTION: main
E/AndroidRuntime(328): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.my.app/com.my.app.MyActivity}: java.lang.ClassNotFoundException: com.my.app.MyActivity in loader dalvik.system.PathClassLoader[/data/app/com.my.app-1.apk]
E/AndroidRuntime(328): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
E/AndroidRuntime(328): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime(328): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime(328): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime(328): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(328): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(328): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime(328): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(328): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime(328): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime(328): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime(328): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(328): Caused by: java.lang.ClassNotFoundException: com.my.app.MyActivity in loader dalvik.system.PathClassLoader[/data/app/com.my.app-1.apk]
E/AndroidRuntime(328): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
E/AndroidRuntime(328): at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
E/AndroidRuntime(328): at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
E/AndroidRuntime(328): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
E/AndroidRuntime(328): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
E/AndroidRuntime(328): ... 11 more
How to resolve it?
This issue occurs because the "lib" folder is renamed to "libs" now by Android People.
And as soon as we place our external jars to this "libs" folder then it will automatically be added to the build path of the application.
01-26 20:45:50.841: E/AndroidRuntime(327): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.demo.app/com.demo.app.Sencha_demoActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x0
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.os.Handler.dispatchMessage(Handler.java:99)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.os.Looper.loop(Looper.java:123)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-26 20:45:50.841: E/AndroidRuntime(327): at java.lang.reflect.Method.invokeNative(Native Method)
01-26 20:45:50.841: E/AndroidRuntime(327): at java.lang.reflect.Method.invoke(Method.java:521)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-26 20:45:50.841: E/AndroidRuntime(327): at dalvik.system.NativeStart.main(Native Method)
01-26 20:45:50.841: E/AndroidRuntime(327): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
01-26 20:45:50.841: E/AndroidRuntime(327): at android.content.res.Resources.getValue(Resources.java:891)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.content.res.Resources.loadXmlResourceParser(Resources.java:1865)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.content.res.Resources.getXml(Resources.java:779)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.phonegap.api.PluginManager.loadPlugins(PluginManager.java:82)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.phonegap.api.PluginManager.<init>(PluginManager.java:62)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.phonegap.DroidGap$1.run(DroidGap.java:414)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.Activity.runOnUiThread(Activity.java:3649)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.phonegap.DroidGap.loadUrlIntoView(DroidGap.java:390)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.phonegap.DroidGap.loadUrl(DroidGap.java:356)
01-26 20:45:50.841: E/AndroidRuntime(327): at com.demo.app.Sencha_demoActivity.onCreate(Sencha_demoActivity.java:11)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-26 20:45:50.841: E/AndroidRuntime(327): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
01-26 20:45:50.841: E/AndroidRuntime(327): ... 11 more
I am a absolute beginner to phonegap and sencha touch. After reading many forums I got this plugin for eclipse : http://www.mobiledevelopersolutions.com/home/start/startdetails
But, when I am trying to run the project with google api 2.1 with minsdk version 7, I am getting the error mentioned above. Any ideas how to recitfy it?
I received a report of what is likely the same issue today and tracked it down. See AppLaud Issue #63.
The Sencha file structure changes in 2.0.0-pr4 cause the AppLaud wizard to fail to complete project creation. plugins.xml is missing and AndroidManifest.xml is not set up.
The workaround is to copy sencha-touch-all-debug-w-comments.js to sencha-touch-debug-w-comments.js and then the wizard will succeed with project completion.
This bug will be fixed in the next AppLaud update due out after the PhoneGap 1.4.0 release.
Also, note that the bundled Sencha PhoneGap example in AppLaud does not yet support the Sencha 2 APIs. See AppLaud Issue #64.
Looks like you are missing the res/xml/plugins.xml file from your project.
I am working on Mapview.I am getting error but i have no idea why i can getting this.I debug all of the item .I didnt see it before.
Can anybody see this error?I now it is null exception but can anybody see PixelConverter?
ERROR/AndroidRuntime(1382): FATAL EXCEPTION: main
java.lang.NullPointerException
at com.google.android.maps.PixelConverter.toPixels(PixelConverter.java:71)
at com.google.android.maps.PixelConverter.toPixels(PixelConverter.java:61)
at com.google.android.maps.MapView.onLayout(MapView.java:681)
at android.view.View.layout(View.java:7035)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:909)
at android.view.View.layout(View.java:7035)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:7035)
at android.widget.FrameLayout.onLayout(FrameLayout.java:333)
at android.view.View.layout(View.java:7035)
at android.view.ViewRoot.performTraversals(ViewRoot.java:1045)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1727)
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:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)