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

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

Related

java.lang.NoClassDefFoundError: com.google.api.client.http.apache.ApacheHttpTransport() on some phones Kinvey Android?

The following error is obtained when running my app using the Kinvey client library:
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.google.api.client.http.apache.ApacheHttpTransport
at com.kinvey.android.Client$Builder.newCompatibleTransport(Client.java:555)
at com.kinvey.android.Client$Builder.<init>(Client.java:609)
at ch.ethz.nervousnet.trialapp04.MainActivity.onCreate(MainActivity.java:94)
at android.app.Activity.performCreate(Activity.java:5122)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2337)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2425)
at android.app.ActivityThread.access$600(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5422)
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:837)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
at dalvik.system.NativeStart.main(Native Method)
The Line in MainActivity class it points to is the following:
Global.setmKinveyClient(new Client.Builder(this.getApplicationContext()).build());
// Client if a library class, not the one I have created
It works on most phones, but on some phones does not work, what could be the cause?
Here is a screen shot of all the libs I have in the project :
Any help is appreciated, thank you.
LoveMeow,
What is the Android version on phones where it is not working? Is it the same version or happens randomly?
Since it is working for you on some phones, all the dependent libraries seem to be added properly. Are there any other warnings that are being thrown?
Thanks,
Pranav
Kinvey Support

MobileFirst 7.1 integration with WCS7(fep 8) Aurora store

I am following Steps provided by IBM to build MobileFirst hybrid application for default Aurora store. I found the desired WCWorklight.zip at location
C:\{Installation dir}\components\store-enhancements\samples\Worklight\
On tutorial there were many js files that need to be replaced but those were not present in WCWorklight.zip e.g.
After building the apk when I ran it it is throwing error
Process: com.ibm.commerce.worklight.android, PID: 3001
java.lang.NoClassDefFoundError: com.worklight.location.internal.nativeImpl.AndroidWLDevice
at com.worklight.wlclient.api.WLClient.<init>(WLClient.java:177)
at com.worklight.wlclient.api.WLClient.createInstance(WLClient.java:229)
at com.worklight.common.Logger.setContext(Logger.java:549)
at com.worklight.androidgap.WLDroidGap.onCreate(WLDroidGap.java:43)
at com.ibm.commerce.worklight.android.WCHybrid.onCreate(WCHybrid.java:143)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
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)
Please let me know if any one faced such issues.
Thanks in advance.
WebSphere Commerce specifically mentions that you need Worklight 6.0, where you are using 7.1.
You need to check if there is a version that is updated for 7.1.
7.1 is wholly different from 6.0 (by years of development).
Contact IBM WebSphere Commerce.

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

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.

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.

Getting uknown error when using mupdf

I've tried to import mupdf to my app, but when I open it, i got some weird error and it force closes. Why? I really don't understand.
this is my logcat:
10-10 15:34:17.802 8657-8657/com.tproductions.Openit E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.tproductions.Openit, PID: 8657
java.lang.UnsatisfiedLinkError: Native method not found: com.artifex.mupdfdemo.MuPDFCore.openFile:(Ljava/lang/String;)J
at com.artifex.mupdfdemo.MuPDFCore.openFile(Native Method)
at com.artifex.mupdfdemo.MuPDFCore.<init>(MuPDFCore.java:68)
at com.artifex.mupdfdemo.MuPDFActivity.openFile(MuPDFActivity.java:204)
at com.artifex.mupdfdemo.MuPDFActivity.onCreate(MuPDFActivity.java:303)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2201)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2286)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5135)
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:877)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
at dalvik.system.NativeStart.main(Native Method)
It looks like something has gone wrong in the native build.
It's probably best to retry that; there are instructions here:
http://www.mupdf.com/doc/how-to-build-mupdf-for-android
and here:
http://git.ghostscript.com/?p=mupdf.git;a=blob_plain;f=platform/android/ReadMe.txt;hb=HEAD
It's probably best to use the git code from master - the latest is 1.6, versions prior to 1.5 are unlikely to build cleanly with the current NDKs.

Categories

Resources