# 安卓开发

# 开发环境

# Gradle 报错

::: error Gradle's dependency cache may be corrupt :::

到官网下载 https://services.gradle.org/distributions/,然后配 gradle-wrapper.properties 文件

distributionUrl=file:/Users/bobo/.gradle/wrapper/dists/gradle-5.6.2-all.zip

# 集成依赖 SDK

  • build.gradle
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation fileTree(dir: 'libs', include: ['*.aar'])
}

# 参考

Last Updated: 5/14/2022, 11:38:45 AM