Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)
like image 448
Escada Jakarta Avatar asked Dec 14 '22 11:12

Escada Jakarta


2 Answers

You need to obtain and enter the following details in src/Messenger/BuildVars.java to successfully run the app:

  1. Telegram App ID and App Hash

  2. Google Cloud Messaging App ID: https://developers.google.com/cloud-messaging/

  3. 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.

like image 81
Abhijay Kumar Avatar answered Dec 28 '22 13:12

Abhijay Kumar


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

like image 35
Vinay Jayaram Avatar answered Dec 28 '22 13:12

Vinay Jayaram