Android: java.lang.NoSuchMethodError: Landroid\/os\/Handler when calling FacebookSdk.sdkInitialize() - android

I have an Android app used Facebook for login.
However, I got some user bug reports reporting "java.lang.NoSuchMethodError" when doing facebook initialization.
java.lang.NoSuchMethodError: Landroid\/os\/Handler;.
at android.support.v4.content.l.(LocalBroadcastManager.java:110)
at android.support.v4.content.k.(LocalBroadcastManager.java:110)
at android.support.v4.content.LocalBroadcastManager.getInstance(LocalBroadcastManager.java:102)
at com.facebook.internal.BoltsMeasurementEventListener.open(BoltsMeasurementEventListener.java:53)
at com.facebook.internal.BoltsMeasurementEventListener.getInstance(BoltsMeasurementEventListener.java:70)
at com.facebook.FacebookSdk.sdkInitialize(FacebookSdk.java:169)
at my.app.MyApplication.onCreate(MyApplication.java:119)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4464)
at android.app.ActivityThread.access$1500(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1306)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5137)
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:902)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:718)
at dalvik.system.NativeStart.main(Native Method)
What would be the possible cause of this issue?

I am too late to answer (Help to others) but I solved this problem and I am not sure if it can work for others too.
I added a release key hash together with the debug key hash in the developers.facebook.com/................
and it worked.
Lets see if it works for others too.

Related

Telegram Messenger Running Project still met: Unfortunately, Telegram has stopped

I tried to download source from Telegram Messenger GitHub, using Android Studio, I run the project with the target my Lenovo Mobile ( connected )
In the mobile shows error : Unfortunately, Telegram has stopped
Mind to advise. Many thanks and best regards.
The CatLog mainly seems like this :
09-28 11:50:37.263 15071-15071/org.telegram.messenger E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: org.telegram.messenger, PID: 15071
java.lang.RuntimeException: Unable to resume activity {org.telegram.messenger/org.telegram.ui.IntroActivity}: java.lang.IllegalArgumentException: App ID length must be 32 characters.
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2777)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2806)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2241)
at android.app.ActivityThread.access$800(ActivityThread.java:138)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5095)
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:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: App ID length must be 32 characters.
at net.hockeyapp.android.utils.Util.sanitizeAppIdentifier(Util.java:144)
at net.hockeyapp.android.CrashManager.initialize(CrashManager.java:347)
at net.hockeyapp.android.CrashManager.register(CrashManager.java:124)
at net.hockeyapp.android.CrashManager.register(CrashManager.java:112)
at org.telegram.messenger.AndroidUtilities.checkForCrashes(AndroidUtilities.java:769)
at org.telegram.ui.IntroActivity.onResume(IntroActivity.java:238)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
at android.app.Activity.performResume(Activity.java:5310)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2767)
            at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2806)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2241)
            at android.app.ActivityThread.access$800(ActivityThread.java:138)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1199)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5095)
            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:786)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602)
            at dalvik.system.NativeStart.main(Native Method)
You need to obtain and enter the following details in src/Messenger/BuildVars.java to successfully run the app:
Telegram App ID and App Hash
Google Cloud Messaging App ID: https://developers.google.com/cloud-messaging/
Hockey API Key
https://rink.hockeyapp.net/
Go to this link and register yourself. Then create a new android app by entering its details and obtain the api key.
The Telegram app will build and run sucessfully once you have entered all of these correctly in the BuildVars.java file.
Looks like you have not created Teligram project. Kindly follow the link given below and get your APPID
https://core.telegram.org/api/obtaining_api_id
Post which you should add it to teligram project. Let me know if you have any issues
as #Abhijay Kumar mentained .
you must do two step , like this :
1 . Telegram App ID and App Hash
you can get telegram app id in :
get telegram app key
2 . Hockey API Key
you can get hockey api key in :
get hockey api key

android.view.View.sendAccessibilityEventUncheckedInternal error only HTC One Mini

Hi I got this error from Fabric. It's only come from "HTC one mini" . Why did you come ?? It is a specific error this model ??
java.lang.NullPointerException
at android.view.View.sendAccessibilityEventUncheckedInternal(View.java:5020)
at android.view.View.sendAccessibilityEventUnchecked(View.java:5001)
at android.view.View$SendViewStateChangedAccessibilityEvent.run(View.java:19761)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5872)
at java.lang.reflect.Method.invokeNative(Method.java)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:674)
at dalvik.system.NativeStart.main(NativeStart.java)
I didn't understand but our user removed 360 Security app and application run perfect.
I know it's an old question but I stumbled upon the same problem and I found that answer which helped me : https://stackoverflow.com/a/20892109/2637428
I'm commenting this issue as it was the first one I found before finding the other one.

ArithmeticExcpetion in GridView

Hi All I am getting an ArithmeticException in my Google Play crash Reports. I am not able to reproduce it locally hence I have to rely on only these reports.
I am using the GridViews in my app, I am setting the Number of Columns manually instead of setting it to "auto_fit". I am not sure why this crash is happening.
The Following is the stack Trace, any help would be appreciated;
*
java.lang.ArithmeticException: divide by zero
at android.widget.GridView.onInitializeAccessibilityNodeInfo(GridView.java:2296)
at android.view.View.createAccessibilityNodeInfoInternal(View.java:5493)
at android.view.View.createAccessibilityNodeInfo(View.java:5480)
at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:811)
at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchDescendantsOfRealNode(AccessibilityInteractionController.java:834)
at android.view.AccessibilityInteractionController$AccessibilityNodePrefetcher.prefetchAccessibilityNodeInfos(AccessibilityInteractionController.java:720)
at android.view.AccessibilityInteractionController.findAccessibilityNodeInfoByAccessibilityIdUiThread(AccessibilityInteractionController.java:147)
at android.view.AccessibilityInteractionController.access$300(AccessibilityInteractionController.java:49)
at android.view.AccessibilityInteractionController$PrivateHandler.handleMessage(AccessibilityInteractionController.java:971)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5748)
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:1291)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
at dalvik.system.NativeStart.main(Native Method)
*
Thanks and Regards,
Shashi Kiran G M

MonkeyTalk Causing VerifyException in Android Activity

I'm trying to integrate MonkeyTalk automation into my pre-existing Android app that is built using gradle.
I followed the steps here: Android Studio and MonkeyTalk? and got the demo app working, but when I run it in my own application I get the following crash on the second screen. Any idea why this happens?
This particular stack trace is using L preview targeting SDK 19, but I've also seen a similar (less detailed) stack trace on a Galaxy S4 with SDK 18 on it.
07-21 15:35:18.394 14642-14642/com.example.android.debug E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.example.android.debug, PID: 14642
java.lang.VerifyError: Rejecting class com.example.android.activity.main.MainActivity because it failed compile-time verification (declaration of 'com.example.android.activity.main.MainActivity' appears in /data/app/com.example.android.debug-1.apk)
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.Class.newInstance(Class.java:1572)
at android.app.Instrumentation.newActivity(Instrumentation.java:1062)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2317)
at android.app.ActivityThread.access$800(ActivityThread.java:143)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1258)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5070)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:836)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:631)
Any idea what this means? I'm using Dagger for dependency injection, is that why it might not work?
You can try the latest version of the monkeytalk and i guess your problem will not occur again.

Android: NullPointerException on webview

Does anyone have this problem? I am not quite understand how to fix it. Not sure is that my code cause this exception or a bug on a webview.
java.lang.NullPointerException at
android.webkit.WebViewClassic$WebViewInputConnection.setNewText(WebViewClassic.java:587)
at
android.webkit.WebViewClassic$WebViewInputConnection.setComposingText(WebViewClassic.java:327)
at
android.webkit.WebViewClassic$WebViewInputConnection.commitText(WebViewClassic.java:343)
at
com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:279)
at
com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:77)
at android.os.Handler.dispatchMessage(Handler.java:107) at
android.os.Looper.loop(Looper.java:194) at
android.app.ActivityThread.main(ActivityThread.java:5371) 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:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600) at
dalvik.system.NativeStart.main(Native Method)
Hi That's an BUG in the AdMob's new GooglePlayServices Library integrated to our latest updates.
I got this from an admob SDK team member from Amy Quispe(AdMob SDK Team)
java.lang.NullPointerException
at android.webkit.WebViewClassic$WebViewInputConnection.setNewText(WebViewClassic.java:587)
at android.webkit.WebViewClassic$WebViewInputConnection.setComposingText(WebViewClassic.java:327)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:333)
I got the same error yesterday, I think it is generated from lib of new google-play-services.jar.
If you observe the snippet, admob update is mandatory to mitigate the issue.

Categories

Resources