赞
踩
Android Studio 4.1
Build #AI-201.8743.12.41.6858069, built on September 23, 2020
Runtime version: 1.8.0_242-release-1644-b01 amd64
\gradle\wrapper\gradle-wrapper.properties
distributionUrl=https\://mirrors.cloud.tencent.com/gradle/gradle-5.4.1-bin.zip
目的:通过腾讯镜像系在gradle
02.build.gradle
buildscript {
repositories {
//增加阿里云路径
maven {
url 'https://maven.aliyun.com/repository/google/'
}
maven {
url 'https://maven.aliyun.com/repository/jcenter/'
}
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven {
url 'https://maven.aliyun.com/repository/google/'
}
maven {
url 'https://maven.aliyun.com/repository/jcenter/'
}
google()
jcenter()
mavenCentral()
}
//为了解决Execution failed for task ':XXXX:mockableAndroidJar'.,没有问题可以不加
gradle.taskGraph.whenReady {
tasks.each { task ->
if (task.name == 'mockableAndroidJar') {
task.enabled = false
}
}
}
}
在Terminal中运行gradlew makeJar
\Android\sdk\build-tools\30.0.2
然后d8 --output test.jar test.jar
cvc-complex-type.2.4.a: ��������Ԫ�� 'base-extension' ��ͷ����Ч���ݡ�Ӧ�� '{layoutlib}' ֮һ��ͷ��
修改classpath 'com.android.tools.build:gradle:3.5.2'
3.5.2应该是对应特定版本,需要检证
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。