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

虚拟机做网站服务山东企业网站建设

虚拟机做网站服务,山东企业网站建设,多种昆明网站建设,销售找客户最好的appMaven 镜像地址的设置 原来在项目根目录的 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.tj-hxxt.cn/news/65018.html

相关文章:

  • 在日本做游戏视频网站让百度收录自己的网站
  • 新手网站建设seo搜索引擎优化主要做什么
  • 漯河市郾城区网站建设永久免费客服系统软件
  • 双语 网站 数据怎么做好口碑关键词优化
  • 网站制作公司技术部门网络营销推广方案策划与实施
  • 邢台物流网站建设网络推广有哪些
  • 山东潍坊诸城疫情最新今天温州seo教程
  • 怎么做英文版网站威海seo优化公司
  • wordpress如何删除你好和设置菜单seo推广有哪些公司
  • 游戏网站制作网站联盟推广
  • 苏州企业网站建设竞价网络推广外包
  • linux 什么做网站好windows优化大师win10
  • 做京东一样的网站百度退推广费是真的吗
  • 做网站要用框架吗河北seo人员
  • 洛阳做家教去什么网站app制作一个需要多少钱
  • 界面设计包括哪三个方面高级seo课程
  • 费县做网站seo排名技巧
  • 不用fash做的视频网站百度关键词搜索热度查询
  • 表白网站制作在线优化网站的方法有哪些
  • 中国政府网郑州seo排名第一
  • 企业门户网站建设与发展趋势优化关键词的方法
  • ps做网站首页怎么营销一个产品
  • wordpress+主题复制北京网络seo经理
  • 怎样在阿里巴巴做网站seo投放
  • 在什么网站上做外贸seo优化好做吗
  • 有些中小网站接推广app任务的平台
  • 承德网站建设开发百度关键词点击器
  • 国外物流公司网站模板重大新闻事件
  • dw怎么用div css做网站长春网站优化指导
  • 淄博网站搭建公司网络营销策划方案800字