我想为此官方source code为Android开发电报应用,但出现此错误:
Could not find uast.jar (com.android.tools.external.org-jetbrains:uast:26.0.1).
Searched in the following locations:
https://dl.google.com/dl/android/maven2/com/android/tools/external/org-jetbrains/uast/26.0.1/uast-26.0.1.jar
该如何解决?
Android Studio 3.1.4
答案 0 :(得分:1)
在克隆文件夹git submodule update --init --recursive
内的终端上执行
添加到依赖项compile 'com.google.firebase:firebase-core:16.0.0'
在TG build.gradle上添加了
buildscript {
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.google.gms:google-services:3.2.1'
}
}
repositories {
google()
}
*重要步骤
将-keep class com.google.firebase.provider.FirebaseInitProvider
添加到proguard-rules
并使用android-ndk-r16b