当前位置: 首页 > news >正文

上海手机网站开发海口网球场

上海手机网站开发,海口网球场,浅析php网站建设的八大优势,wordpress请求超时Maven 镜像地址的设置 原来在项目根目录的 build.gradle 中进行设置,但是现在里面只有plugins。 工程的build.gradle的dependencies修改为plugins,替代了引用原来的Gradle版本。 // Top-level build file where you can add configuration options com…

Maven 镜像地址的设置

原来在项目根目录的 build.gradle 中进行设置,但是现在里面只有plugins。

 工程的build.gradle的dependencies修改为plugins,替代了引用原来的Gradle版本。

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {id 'com.android.application' version '7.4.2' apply falseid 'com.android.library' version '7.4.2' apply false
}

想使用旧的依旧可以在项目build.gradle里面按照原来方式添加,不影响旧方法。

buildscript {dependencies {classpath 'com.android.tools.build:gradle:4.1.0'classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30"}
}

或者使用buildscript+plugins同时存在的模式,注意顺序不能错,否则会提示错误的

apply from 自定义配置清单还是能够使用

//注意 buildscript节点有可能没有 自己添加需要注意与plugins的顺序
buildscript {ext {kotlin_version = '1.6.10'}dependencies {classpath 'com.google.dagger:hilt-android-gradle-plugin:2.28-alpha'}
}
plugins {id 'com.android.application' version '7.1.1' apply falseid 'com.android.library' version '7.1.1' apply falseid 'org.jetbrains.kotlin.android' version '1.5.31' apply false
}
//apply from: "config.gradle"//自定义配置清单还是能够使用
task clean(type: Delete) {delete rootProject.buildDir
}

原来工程中 build.gradle 的buildscriptallprojects移动至setting.gradle

改名为pluginManagement 和dependencyResolutionManagement。里面的东西依旧可以按照原来的copy过来。

include 方法还是老样子

pluginManagement {repositories {// 国内镜像maven { url 'https://maven.aliyun.com/repository/google/' }maven { url 'https://maven.aliyun.com/repository/jcenter/' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/releases/' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/central' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }google()mavenCentral()gradlePluginPortal()}
}
dependencyResolutionManagement {repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)repositories {// 国内镜像maven { url 'https://maven.aliyun.com/repository/google/' }maven { url 'https://maven.aliyun.com/repository/jcenter/' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/releases/' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/central' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }maven { url 'https://maven.aliyun.com/nexus/content/groups/public' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/google' }maven { url 'https://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }google()mavenCentral()}
}
rootProject.name = "xxxxx"
include ':app'

APP项目下的 build.gradle

 原有的 apply plugin 变更为 plugins,其他的影响不大。

apply plugin: 'com.android.application'
plugins {id 'com.android.application'
}

 

 

http://www.yayakq.cn/news/673653/

相关文章:

  • 网站可以改内链结构吗多语种网站后台
  • 59zwd一起做网站wordpress 会员购买插件
  • 安吉哪里做网站好东西湖区城乡建设局网站
  • 网站建设技术哪些内容南宁网站建设网络公司
  • 网站建设找哪家好wordpress导入表单
  • 网站引导动画怎么做太原微信网站
  • 无投入网站推广wordpress的弊端
  • 网站设计素养商城系统软件开发
  • 成都网站建设推进方案在线协同办公软件
  • 官方网站 建设情况汇报综合返利商城网站建设
  • 东莞附近的网络推手公司对于网站链接优化有哪些建议
  • 网站页面优化方法百度指数使用方法
  • 公司建设网站需要什么电信网站备案查询系统
  • 什么网站做外贸最多的e语言可以做网站吗
  • 设计网站包含的功能模块静态网站提交表单怎么做
  • 基于微信公众平台的微网站开发南沙网站建设公司哪家好
  • 网站建设导向免费注册域名流程
  • 佳木斯建设工程交易中心网站php网站后台搭建
  • 网站建设和网站优化哪个更重要哪个网站可以查询即将到期的域名
  • 陕西省城乡和住房建设厅网站网上购物商城有哪些
  • 如何让做的网站自动适应浏览器惠州市网站建设企业
  • 打码网站如何建设cn域名网站
  • 网站建设推广代理公司域名查询平台
  • 怎么做网站推广多少钱淮北做网站公司
  • 如何把网站做的更好石家庄做网站和宣传的
  • 全能网站建设pdf临海市城市建设规划局网站
  • 百度刷自己网站的关键词谷歌sem服务商
  • 网站建设zvge青海西宁网页网站制作
  • 苏州建网站最简单的做网站工具
  • wordpress网站图片网站开发是干什么的