Telegram source code compile error

随声附和 提交于 2019-12-08 05:36:19

问题


i download Telegram source code from github,i got some problems.

First: Error for NDK, I found the solution to solve it.

Second: it shows google-services.json is missing after I solve the first problem.

So I download the google-services.json and put it in the src.

Now here is my problem, it shows an Error in one location like this No matching client found for package name

I try to put the json file in that location.It doesn't work.

  1. Someone can teach me how to solve this problem,please.
  2. Where can i find the Telegram toturial for chat besides official ?
  3. Is anyone can compile Telegram source code well ?

回答1:


Goto build.gradle (Module level).

Replace

buildTypes {
    debug {
        debuggable true
        jniDebuggable true
        signingConfig signingConfigs.debug
        applicationIdSuffix ".beta"
    }
...
}

with

buildTypes {
    debug {
        debuggable true
        jniDebuggable true
        signingConfig signingConfigs.debug
    }
...
}



回答2:


I have the same problem.

You won't be able to just compile and run telegram from source simply because google-services.json is not on repo.

UPDATE

No matching client found for package name

means that in the google-services.json the client package name doesn't match your application package.

You will need to generate a google-services.json file for each app package (for example if you change package name in flavour configuration)



来源:https://stackoverflow.com/questions/40889735/telegram-source-code-compile-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!