问题
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.
- Someone can teach me how to solve this problem,please.
- Where can i find the Telegram toturial for chat besides official ?
- 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