When i try to run my app, "Unfortunately, “app” has Stopped" pop on the screen. I have researched this problem and tried of changing code in manifest file. Also I tried many times cleaning project, rebuilding project, Invalidate Cache and restart option but this also doesn't help in solving problem.
Here is the error shown in my logcat
02-21 09:26:52.695 3123-3123/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-21 09:26:52.695 3123-3123/? E/android.os.Debug: failed to load memtrack module: -2
02-21 09:26:56.587 3137-3137/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-21 09:26:56.587 3137-3137/? E/android.os.Debug: failed to load memtrack module: -2
02-21 09:26:57.611 3147-3147/com.example.nobelz.chatapp E/dalvikvm: Could not find class 'android.graphics.drawable.RippleDrawable', referenced from method android.support.v7.widget.AppCompatImageHelper.hasOverlappingRendering
02-21 09:26:58.231 3147-3147/com.example.nobelz.chatapp E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache
02-21 09:26:58.235 3147-3147/com.example.nobelz.chatapp E/OpenGLRenderer: MAX_TEXTURE_SIZE: 8192
02-21 09:26:58.259 3147-3147/com.example.nobelz.chatapp E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
02-21 09:26:58.263 3147-3147/com.example.nobelz.chatapp E/OpenGLRenderer: MAX_TEXTURE_SIZE: 8192
02-21 09:27:02.323 3147-3147/com.example.nobelz.chatapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.nobelz.chatapp, PID: 3147
com.google.firebase.database.DatabaseException: Class com.example.nobelz.chatapp.ChatMessage is missing a constructor with no arguments
at com.google.android.gms.internal.zzbqi$zza.zze(Unknown Source)
at com.google.android.gms.internal.zzbqi$zza.zzaG(Unknown Source)
at com.google.android.gms.internal.zzbqi.zze(Unknown Source)
at com.google.android.gms.internal.zzbqi.zzb(Unknown Source)
at com.google.android.gms.internal.zzbqi.zza(Unknown Source)
at com.google.firebase.database.DataSnapshot.getValue(Unknown Source)
at com.firebase.ui.database.FirebaseListAdapter.parseSnapshot(FirebaseListAdapter.java:127)
at com.firebase.ui.database.FirebaseListAdapter.getItem(FirebaseListAdapter.java:116)
at com.firebase.ui.database.FirebaseListAdapter.getView(FirebaseListAdapter.java:146)
at android.widget.AbsListView.obtainView(AbsListView.java:2255)
at android.widget.ListView.makeAndAddView(ListView.java:1790)
at android.widget.ListView.fillDown(ListView.java:691)
at android.widget.ListView.fillFromTop(ListView.java:752)
at android.widget.ListView.layoutChildren(ListView.java:1616)
at android.widget.AbsListView.onLayout(AbsListView.java:2087)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1055)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.support.v7.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:437)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1525)
at android.widget.LinearLayout.onLayout(LinearLayout.java:1434)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
at android.view.View.layout(View.java:14817)
at android.view.ViewGroup.layout(ViewGroup.java:4631)
at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1983)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1740)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:996)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5600)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
at android.view.Choreographer.doCallbacks(Choreographer.java:574)
at android.view.Choreographer.doFrame(Choreographer.java:544)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
02-21 09:27:07.367 560-593/system_process E/InputDispatcher: channel '52c1f3d8 com.example.nobelz.chatapp/com.example.nobelz.chatapp.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
02-21 09:31:38.407 232-232/? E/Drm: Failed to open plugin directory /vendor/lib/mediadrm
02-21 09:32:05.543 859-1264/com.google.process.gapps E/dalvikvm: Could not find class 'android.net.Network', referenced from method qlb.a
02-21 09:34:38.537 859-1421/com.google.process.gapps E/NetworkScheduler: Called closeAndCleanupTask for already completed task [com.google.android.apps.maps/com.google.android.apps.gmm.offline.OfflineAutoUpdateGcmService:OfflineAutoUpdateGcmService.TASK_TAG,u0]' :TIMED_OUT
02-21 09:34:38.573 859-1421/com.google.process.gapps E/NetworkScheduler: Task completed but with no record in list of active tasks: [com.google.android.apps.maps/com.google.android.apps.gmm.offline.OfflineAutoUpdateGcmService:OfflineAutoUpdateGcmService.TASK_TAG,u0]
02-21 09:34:40.793 3391-3391/? E/dalvikvm: Could not find class 'javax.net.ssl.SNIHostName', referenced from method com.google.android.gms.org.conscrypt.Platform.getSSLParameters
02-21 09:34:40.797 3391-3391/? E/dalvikvm: Could not find class 'javax.net.ssl.SNIServerName', referenced from method com.google.android.gms.org.conscrypt.Platform.setSSLParameters
02-21 09:34:40.805 3391-3391/? E/dalvikvm: Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.Platform.wrapSSLSession
02-21 09:34:40.833 725-725/com.google.android.gms.persistent E/ChimeraRcvrProxy: Chimera config error: com.google.android.chimera.config.InvalidConfigException: No registered Chimera receiver impl for ComponentInfo{com.google.android.gms/com.google.android.gms.phenotype.receiver.PhenotypeBroadcastReceiver}
02-21 09:34:40.833 725-725/com.google.android.gms.persistent E/ChimeraRcvrProxy: com.google.android.gms.phenotype.receiver.PhenotypeBroadcastReceiver dropping broadcast com.google.android.gms.phenotype.UPDATE
02-21 09:34:40.913 3391-3391/? E/dalvikvm: Could not find class 'com.google.android.gms.org.conscrypt.OpenSSLExtendedSessionImpl', referenced from method com.google.android.gms.org.conscrypt.SSLParametersImpl.getSessionToReuse
02-21 09:34:41.169 725-725/com.google.android.gms.persistent E/BluetoothAdapter: Bluetooth binder is null
02-21 09:34:41.645 725-725/com.google.android.gms.persistent E/BluetoothAdapter: Bluetooth binder is null
02-21 09:34:41.709 725-3425/com.google.android.gms.persistent E/GCoreUlr: Bad errorId configuring silent feedback
02-21 09:34:41.937 725-725/com.google.android.gms.persistent E/BluetoothAdapter: Bluetooth binder is null
02-21 09:34:42.013 725-1235/com.google.android.gms.persistent E/GCoreUlr: Bad errorId configuring silent feedback
02-21 09:34:42.069 725-725/com.google.android.gms.persistent E/BluetoothAdapter: Bluetooth binder is null
02-21 09:34:42.161 725-1235/com.google.android.gms.persistent E/GCoreUlr: Bad errorId configuring silent feedback
02-21 09:34:42.265 725-1235/com.google.android.gms.persistent E/GCoreUlr: Bad errorId configuring silent feedback
02-21 09:34:42.309 725-1235/com.google.android.gms.persistent E/GCoreUlr: Bad errorId configuring silent feedback
02-21 09:35:10.173 560-567/system_process E/dalvikvm: JIT code cache full
In class ChatMessage add constructor without parameters:
public ChatMessage () {
//Do things
}
The part with the builder is surely the most important: it seems you're missing it:
com.google.firebase.database.DatabaseException: Class com.example.nobelz.chatapp.ChatMessage is missing a constructor with no arguments
I suggest you to rewrite your code adding a feature at a time, so that you can isolate your problem and solve it.
Related
I am new in Android Development. I am working on cordova platform
I have created a sample hello world app and getting this error when i am trying to open it in genymotion. ALthough the app compile succesfully but when i run it in genymotion it just shows the prompt with text "Unfortunately "APP" has stopped."
The Error log shows.
01-12 08:16:04.867 2073-2073/com.technoserves.crudnew D/dalvikvm﹕ Late-enabling CheckJNI
01-12 08:16:06.107 2073-2073/com.technoserves.crudnew W/dalvikvm﹕ Unable to resolve superclass of Lcom/technoserves/crudnew/CordovaApp; (14)
01-12 08:16:06.119 2073-2073/com.technoserves.crudnew W/dalvikvm﹕ Link of class 'Lcom/technoserves/crudnew/CordovaApp;' failed
01-12 08:16:06.135 2073-2073/com.technoserves.crudnew D/AndroidRuntime﹕ Shutting down VM
01-12 08:16:06.135 2073-2073/com.technoserves.crudnew W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0xa6142908)
01-12 08:16:06.155 2073-2073/com.technoserves.crudnew E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.technoserves.crudnew/com.technoserves.crudnew.CordovaApp}: java.lang.ClassNotFoundException: Didn't find class "com.technoserves.crudnew.CordovaApp" on path: /data/app/com.technoserves.crudnew-1.apk
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2106)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
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:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.technoserves.crudnew.CordovaApp" on path: /data/app/com.technoserves.crudnew-1.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2097)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
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:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
01-12 08:16:22.399 2073-2073/com.technoserves.crudnew I/Process﹕ Sending signal. PID: 2073 SIG: 9
I have updated my cordova to resolve but still same error however a few days ago it was working fine and i have build some apps.
First download Cordova jar file from following link:
http://www.java2s.com/Code/JarDownload/cordova/cordova-1.8.1.jar.zip
after that extract the folder and put cordova-1.8.1 inside your libs folder of project in eclipse
And right click on your project--> properties and Select Android from left pane and scroll to bottom remove the cordova library if added.
then clean and build your project.
I had my environment setup on a previous machine, and I'm on a differnt MacBook. For some strange reason, I keep getting an issue with one of my classes which exend FragmentActivity. It keeps saying it can't find the FragmentActivity class, although I have the support jar in my class path, as per the image:
The detailed error message that I'm seeing is here:
10-23 23:10:16.300 26062-26062/com.testapp W/dalvikvm﹕ Unable to resolve superclass of Lcom/testapp/views/loginregistration/LoginView; (92)
10-23 23:10:16.300 26062-26062/com.testapp W/dalvikvm﹕ Link of class 'Lcom/testapp/views/loginregistration/LoginView;' failed
10-23 23:10:16.300 26062-26062/com.testapp D/AndroidRuntime﹕ Shutting down VM
10-23 23:10:16.300 26062-26062/com.testapp W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x414f8700)
10-23 23:10:16.330 26062-26062/com.testapp E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.testapp/com.testapp.views.loginregistration.LoginView}: java.lang.ClassNotFoundException: Didn't find class "com.testapp.views.loginregistration.LoginView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.testapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.testapp-1, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2137)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.testapp.views.loginregistration.LoginView" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.testapp-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.testapp-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2128)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5103)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
Is there someting else i'm missing?
In your IDE (as shown in your screenshot), check the 'export' box next to the classpath entry that contains the missing class.
I had a similar problem with a class from the Android Support library (Unable to resolve superclass of Lcom ... PagerAdapter). It turned out a library referenced in the .classpath needed to be exported:
From:
<classpathentry
To:
<classpathentry exported="true" ...
For Eclipse users, I fixed the problem by exporting Android Private Libraries in the Java Build Path menu.
I'm creating a gps app for the android! And now I've stumbled upon a problem. The app doesn't start at all... Any ideas of how to fix this?
04-05 12:54:50.877: D/dalvikvm(540): Not late-enabling CheckJNI (already on)
04-05 12:54:51.018: I/dalvikvm(540): Turning on JNI app bug workarounds for target SDK version 5...
04-05 12:54:51.417: I/dalvikvm(540): Could not find method org.acra.ACRA.init, referenced from method com.kulplex.gaia.GaiaApp.onCreate
04-05 12:54:51.417: W/dalvikvm(540): VFY: unable to resolve static method 652: Lorg/acra/ACRA;.init (Landroid/app/Application;)V
04-05 12:54:51.417: D/dalvikvm(540): VFY: replacing opcode 0x71 at 0x0000
04-05 12:54:51.457: D/AndroidRuntime(540): Shutting down VM
04-05 12:54:51.457: W/dalvikvm(540): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
04-05 12:54:51.477: E/AndroidRuntime(540): FATAL EXCEPTION: main
04-05 12:54:51.477: E/AndroidRuntime(540): java.lang.NoClassDefFoundError: org.acra.ACRA
04-05 12:54:51.477: E/AndroidRuntime(540): at com.kulplex.gaia.GaiaApp.onCreate(GaiaApp.java:54)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.os.Handler.dispatchMessage(Handler.java:99)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.os.Looper.loop(Looper.java:137)
04-05 12:54:51.477: E/AndroidRuntime(540): at android.app.ActivityThread.main(ActivityThread.java:4424)
04-05 12:54:51.477: E/AndroidRuntime(540): at java.lang.reflect.Method.invokeNative(Native Method)
04-05 12:54:51.477: E/AndroidRuntime(540): at java.lang.reflect.Method.invoke(Method.java:511)
04-05 12:54:51.477: E/AndroidRuntime(540): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
04-05 12:54:51.477: E/AndroidRuntime(540): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
04-05 12:54:51.477: E/AndroidRuntime(540): at dalvik.system.NativeStart.main(Native Method)
I had this same issue after updating to the latest Android tools.
In the project properties, Java Build Path, Order and Export section, I had to make sure the Android Private Libraries was checked.
Then I had to clean the project. After that it seems to work.
It was indeed an issue with 'Order and Export' of the Java Build Path.
When upgrading, the 'Order and Export' of the new 'Android Private Libraries' is not always checked. And the android-support-v4.jar is now in this 'Android Private Libraries' section.
To fix this, go to 'Order and Export' and check 'Android Private Libraries'. Then refresh/clean/rebuild.
After you done this 'fix' for a library project, you may need to just close and re-open any depending project, because they may not see this 'fix' immediately.
I found the answer here.
If you've recently updated to ADT 17 and above, they've changed the lib library handling.
so you need to rename your lib dir to libs,
then right click your project > properties > Java build path > Libraries > select all the jars with error markings on them and click remove > click add JARs > select all jars from your new libs dir.
Hope this helps.
As mentioned in the title, when compiling, the Console says: Failed to install ap.apk
But the logcat shows this:
02-21 00:45:25.052: W/dalvikvm(921): threadid=1: thread exiting with uncaught exception (group=0x409c01f8)
02-21 00:45:25.272: E/AndroidRuntime(921): FATAL EXCEPTION: main
02-21 00:45:25.272: E/AndroidRuntime(921): java.lang.IllegalStateException: Could not find a method retour(View) in the activity class hd.android.contact.ContactActionActivity for onClick handler on view class android.widget.Button with id 'button5'
02-21 00:45:25.272: E/AndroidRuntime(921): at android.view.View$1.onClick(View.java:3031)
02-21 00:45:25.272: E/AndroidRuntime(921): at android.view.View.performClick(View.java:3511)
02-21 00:45:25.272: E/AndroidRuntime(921): at android.view.View$PerformClick.run(View.java:14105)
02-21 00:45:25.272: E/AndroidRuntime(921): at android.os.Handler.handleCallback(Handler.java:605)
02-21 00:45:25.272: E/AndroidRuntime(921): at android.os.Handler.dispatchMessage(Handler.java:92)
02-21 00:45:25.272: E/AndroidRuntime(921): at android.os.Looper.loop(Looper.java:137)
02-21 00:45:25.272: E/AndroidRuntime(921): at android.app.ActivityThread.main(ActivityThread.java:4424)
02-21 00:45:25.272: E/AndroidRuntime(921): at java.lang.reflect.Method.invokeNative(Native Method)
02-21 00:45:25.272: E/AndroidRuntime(921): at java.lang.reflect.Method.invoke(Method.java:511)
02-21 00:45:25.272: E/AndroidRuntime(921): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-21 00:45:25.272: E/AndroidRuntime(921): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-21 00:45:25.272: E/AndroidRuntime(921): at dalvik.system.NativeStart.main(Native Method)
**02-21 00:45:25.272: E/AndroidRuntime(921): Caused by: java.lang.NoSuchMethodException: retour [class android.view.View]**
02-21 00:45:25.272: E/AndroidRuntime(921): at java.lang.Class.getConstructorOrMethod(Class.java:460)
02-21 00:45:25.272: E/AndroidRuntime(921): at java.lang.Class.getMethod(Class.java:915)
02-21 00:45:25.272: E/AndroidRuntime(921): at android.view.View$1.onClick(View.java:3024)
I commented all my "retour" methods and deleted all android:onClick related to this method, and it did not help...Everything was working fine before...
Can anybody help please?
Thank you in advance
IllegalStateException: Could not find a method retour(View)
I think the problem is that you (definitely) have specified onClick on a method retour in the XML but the method
is not present in the Java code.
If the problem continues, try cleaning the project and shutting down your softphone.
02-21 14:00:32.442: W/WindowManager(88): Failure taking screenshot for (180x300) to layer 21010
02-21 14:00:32.621: W/NetworkManagementSocketTagger(88): setKernelCountSet(10004, 1) failed with errno -2
02-21 14:00:34.962: W/NetworkManagementSocketTagger(88): setKernelCountSet(10061, 0) failed with errno -2
02-21 14:00:38.403: D/AndroidRuntime(583): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
02-21 14:00:38.403: D/AndroidRuntime(583): CheckJNI is ON
02-21 14:00:40.521: D/AndroidRuntime(583): Calling main entry com.android.commands.pm.Pm
02-21 14:00:40.592: D/AndroidRuntime(583): Shutting down VM
02-21 14:00:40.611: I/AndroidRuntime(583): NOTE: attach of thread 'Binder Thread #3' failed
02-21 14:00:40.621: D/dalvikvm(583): GC_CONCURRENT freed 100K, 78% free 462K/2048K, paused 2ms+2ms
02-21 14:00:40.621: D/jdwp(583): Got wake-up signal, bailing out of select
02-21 14:00:40.621: D/dalvikvm(583): Debugger has detached; object registry had 1 entries
02-21 14:00:41.421: D/AndroidRuntime(596): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
02-21 14:00:41.421: D/AndroidRuntime(596): CheckJNI is ON
02-21 14:00:42.471: D/AndroidRuntime(596): Calling main entry com.android.commands.am.Am
02-21 14:00:42.521: I/ActivityManager(88): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.pfe/.SoappActivity} from pid 596
02-21 14:00:42.531: W/WindowManager(88): Failure taking screenshot for (180x300) to layer 21005
02-21 14:00:42.611: W/NetworkManagementSocketTagger(88): setKernelCountSet(10061, 1) failed with errno -2
02-21 14:00:43.221: W/System.err(536): at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95)
02-21 14:00:42.661: I/AndroidRuntime(596): NOTE: attach of thread 'Binder Thread #3' failed
02-21 14:00:42.661: D/dalvikvm(596): GC_CONCURRENT freed 101K, 77% free 483K/2048K, paused 1ms+3ms
02-21 14:00:42.661: D/jdwp(596): Got wake-up signal, bailing out of select
02-21 14:00:42.671: D/dalvikvm(596): Debugger has detached; object registry had 1 entries
02-21 14:00:43.021: W/System.err(536): android.os.NetworkOnMainThreadException
02-21 14:00:43.021: W/System.err(536): at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1084)
02-21 14:00:43.071: W/System.err(536): at java.net.InetAddress.lookupHostByName(InetAddress.java:391)
02-21 14:00:43.071: W/System.err(536): at java.net.InetAddress.getAllByNameImpl(InetAddress.java:242)
02-21 14:00:43.081: W/System.err(536): at java.net.InetAddress.getAllByName(InetAddress.java:220)
02-21 14:00:43.081: W/System.err(536): at libcore.net.http.HttpConnection.<init>(HttpConnection.java:71)
02-21 14:00:43.081: W/System.err(536): at libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
02-21 14:00:43.127: W/System.err(536): at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:351)
02-21 14:00:43.127: W/System.err(536): at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:86)
02-21 14:00:43.131: W/System.err(536): at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
02-21 14:00:43.332: W/System.err(536): at dalvik.system.NativeStart.main(Native Method)
02-21 14:01:30.961: D/dalvikvm(536): GC_CONCURRENT freed 231K, 4% free 10112K/10503K, paused 23ms+23ms
02-21 14:04:36.751: D/gralloc_goldfish(640): Emulator without GPU emulation detected.
02-21 14:05:40.481: D/AndroidRuntime(640): Shutting down VM
02-21 14:05:40.481: W/dalvikvm(640): threadid=1: thread exiting with uncaught exception (group=0x409951f8)
02-21 14:05:40.571: E/AndroidRuntime(640): FATAL EXCEPTION: main
02-21 14:05:40.571: E/AndroidRuntime(640): java.lang.RuntimeException: Unable to create service com.pfe.MonService: java.lang.IllegalArgumentException: provider=network
02-21 14:05:40.571: E/AndroidRuntime(640): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2262)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.app.ActivityThread.access$1600(ActivityThread.java:122)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1200)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.os.Handler.dispatchMessage(Handler.java:99)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.os.Looper.loop(Looper.java:137)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.app.ActivityThread.main(ActivityThread.java:4340)
02-21 14:05:40.571: E/AndroidRuntime(640): at java.lang.reflect.Method.invokeNative(Native Method)
02-21 14:05:40.571: E/AndroidRuntime(640): at java.lang.reflect.Method.invoke(Method.java:511)
02-21 14:05:40.571: E/AndroidRuntime(640): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-21 14:05:40.571: E/AndroidRuntime(640): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
02-21 14:05:40.571: E/AndroidRuntime(640): at dalvik.system.NativeStart.main(Native Method)
02-21 14:05:40.571: E/AndroidRuntime(640): Caused by: java.lang.IllegalArgumentException: provider=network
02-21 14:05:40.571: E/AndroidRuntime(640): at android.os.Parcel.readException(Parcel.java:1331)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.os.Parcel.readException(Parcel.java:1281)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.location.ILocationManager$Stub$Proxy.requestLocationUpdates(ILocationManager.java:646)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.location.LocationManager._requestLocationUpdates(LocationManager.java:582)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.location.LocationManager.requestLocationUpdates(LocationManager.java:446)
02-21 14:05:40.571: E/AndroidRuntime(640): at com.pfe.MonService.onCreate(MonService.java:58)
02-21 14:05:40.571: E/AndroidRuntime(640): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2252)
02-21 14:05:40.571: E/AndroidRuntime(640): ... 10 more
You try to execute network call on main (UI) thread. This is not acceptable, because UI should be responsive and network calls are long in most cases. What you need is to run your code on the other thread using Thread class or AsyncTask. Also, you can check out this question for some details.