Artifactory插件支持AGP7.0.0配置缓存吗?
创始人
2024-11-10 22:30:29
0

是的,Artifactory插件的最新版本(5.8.1)支持AGP 7.0.0配置缓存。为确保Artifactory插件能够正确与AGP 7.0.0配合使用,您需要将构建脚本中的以下代码段添加到项目的build.gradle文件中。

build.gradle:

buildscript {
    dependencies {
        classpath("com.android.tools.build:gradle:7.0.0")
        classpath("org.jfrog.buildinfo:build-info-extractor-gradle:5.8.1")
    }
}

plugins {
    id("com.android.application")
    id("org.jfrog.artifactory") version "5.8.1"
}

repositories {
    jcenter()
}

artifactory {
    contextUrl = "https://your.artifactory.com"
    publish {
        repository {
            repoKey = "your-repo-key"
            username = "your-username"
            password = "your-password"
        }
    }
}

android {
    compileSdkVersion = 30
    buildToolsVersion = "30.0.3"

    defaultConfig {
        applicationId = "com.example.myapplication"
        minSdkVersion = 22
        targetSdkVersion = 30
        versionCode = 1
        versionName = "1.0"
    }

    buildFeatures {
        dataBinding = true
        viewBinding = true
    }

    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
    implementation("androidx.appcompat:appcompat:1.3.1")
    implementation("com.google.android.material:material:1.4.0")
}

这段代码包括:

  • classpath("com.android.tools.build:gradle:7.0.0"),将Gradle插件升级为7.0.0版本,以与Android Gradle插件(AGP)7.0.

相关内容

热门资讯

专业透视!pokerworld... 专业透视!pokerworld修改器,微乐江苏小程序游戏破解下载,办法教程(详细教程)-哔哩哔哩1、...
详细透视!pokerworld... 详细透视!pokerworld辅助器,微乐自建房辅助工具官网,技法教程(有挂技巧)-哔哩哔哩亲,关键...
推荐透视!wepoker开脚本... 推荐透视!wepoker开脚本视频,微乐游戏竞技团辅助,指南书教程(有挂解密)-哔哩哔哩1、游戏颠覆...
开挂透视!aapoker辅助怎... 开挂透视!aapoker辅助怎么用,微乐小程序自建房辅助ios,攻略教程(有挂方略)-哔哩哔哩1、超...
曝光透视!wepoker如何设... 曝光透视!wepoker如何设置透视,微信小程序游戏破解器,攻略教程(确实有挂)-哔哩哔哩小薇(辅助...
曝光透视!epoker有透视吗... 曝光透视!epoker有透视吗,微乐手游脚本辅助,窍要教程(证实有挂)-哔哩哔哩1、epoker有透...
辅助透视!德州hhpoker脚... 辅助透视!德州hhpoker脚本,微乐自建房脚本下载,总结教程(果真有挂)-哔哩哔哩1、辅助透视!德...
普及透视!wepoker作弊方... 普及透视!wepoker作弊方法,微乐a3纸牌有脚本,模板教程(的确有挂)-哔哩哔哩亲,关键说明,w...
揭幕透视!pokerworld... 揭幕透视!pokerworld修改器,微乐小程序授权,机巧教程(有挂头条)-哔哩哔哩1、用户打开应用...
分享透视!wepoker-h5... 分享透视!wepoker-h5下载,微乐如何自己建脚本,机巧教程(有挂技巧)-哔哩哔哩1、点击下载安...