AndroidStudio

build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {//from lean
repositories {
maven {url 'https://maven.aliyun.com/repository/public/'}
maven {url 'https://maven.aliyun.com/repository/google/'}
maven {url 'https://maven.aliyun.com/repository/central/'}
maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.3'
}
}//from lean

//plugins {comment by lean
// id 'com.android.application' version '7.1.3' apply false
// id 'com.android.library' version '7.1.3' apply false
//}

task clean(type: Delete) {
delete rootProject.buildDir
}

settings.gradle

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        //from lean
        maven {url 'https://maven.aliyun.com/repository/public/'}
        maven {url 'https://maven.aliyun.com/repository/google/'}
        maven {url 'https://maven.aliyun.com/repository/central/'}
        maven {url 'https://maven.aliyun.com/repository/gradle-plugin/'}
        //from lean

        google()
        mavenCentral()
    }
}
rootProject.name = "HopefullyAPP"
include ':app'

汉化
通过 链接 进入下载对应版本(AS版本号可以在AS的HELP处看到)

由于网速原因,如果版本与以前一致的话可以到阿里云盘下载(有备份)

posted @ 2022-09-26 09:29  COMEIN  阅读(350)  评论(0)    收藏  举报