电报源代码编译错误 [英] Telegram source code compile error

查看:39
本文介绍了电报源代码编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从github下载了Telegram源代码,遇到了一些问题.

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

第一: NDK 错误,我找到了解决方案.

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

第二个:在我解决第一个问题后,它显示 google-services.json 丢失了.

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

所以我下载了 google-services.json 并将其放在 src 中.

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

我尝试将 json 文件放在那个位置.它不起作用.

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

  1. 请有人教我如何解决这个问题.
  2. 除了官方之外,我还能在哪里找到 Telegram 的聊天教程?
  3. 有人可以很好地编译 Telegram 源代码吗?

推荐答案

转到 build.gradle(模块级别).

替换

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

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

这篇关于电报源代码编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆