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

虚拟机做网站服务云服务器

虚拟机做网站服务,云服务器,网页设计代码三页,提供手机网站制作公司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.mmbaike.com/news/45848.html

相关文章:

  • 企业网站网页打开慢广东深圳龙华区
  • 网站制作做站长挣钱网址查询域名
  • 微信 网站界面 模板百度网址大全官网
  • 净水器网站制作百度提交
  • 网站项目开发的制作流程软文代发布
  • 镇江制作网页图片全专业优化公司
  • da面板做两个网站看片应该搜什么关键词哪些词
  • 威县做网站哪儿便宜搜索最多的关键词的排名
  • 汉鼎中国 网站建设html友情链接代码
  • 企业数字化服务平台seo优化排名怎么做
  • 九江做网站的软文批发网
  • 东莞做网站seo优化建立一个网站需要多少钱
  • 手机网站 搜索优化 百度营销网站建设服务
  • 高端网站案例2022年免费云服务器
  • 重庆建网站百度收录查询
  • wix如何做网站发稿网
  • 土地流转网站建设报告全网推广推荐
  • 2003 iis wordpressseo网站关键词
  • css3网站模板seo快速入门教程
  • 网站建设 中企动力公司合肥seo优化外包公司
  • asp网站后台编辑器安卓优化
  • 网站价值排行seo诊断工具
  • 怎样在网做旅游网站平台运营
  • 做招聘网站需要多少钱qq群推广网站
  • 郑州专业的网站建设公司排名泉州全网营销推广
  • 我做的网站怎么打开很慢爱链接外链购买
  • 阜宁有做网站的吗小程序推广50个方法
  • 外贸soho网站制作网站友链查询接口
  • 做哪些网站比较好的免费视频外链生成推荐
  • 网站建设四端一体google 优化推广