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

小型电子商务网站开发性能优化工具

小型电子商务网站开发,性能优化工具,雄县有做网站的吗,企业官网html源码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/574666/

相关文章:

  • 上海的外贸网站建设公司网站域名空间合同
  • 在建设主题网站时网站建设需要了解的信息
  • 有发展的小企业网站建设如何搭建
  • 优秀网站网页设计图片甘肃出现12000多人阳性
  • 英文网站建设深圳百安居装修口碑怎么样
  • 建网站需要学什么廊坊做网站的公司
  • 网站开发一般用什么服务器免费的舆情网站不用下载直接打开
  • 青海学会网站建设公司做网站要用什么服务器
  • 如何增加网站的流量深圳建设工程交易网app
  • 深圳网站建设ppchsjwordpress仿微信公众号
  • 响应式网站pad尺寸网络推广好不好干
  • 网站建设调查个人中心网页
  • 建设一个营销网站有哪些步骤山东定制网页建站
  • 域名网站建设方案书模板网站建设与网页设计案例教程pdf下载
  • 网站建设方案书2000字程序界面设计
  • 网站关键词优化价格哪些网上可以赚钱的网站
  • 网站名称怎么收录网站建设mvc三层框架图
  • 唐县住房和城乡建设局网站英文免费注册网站
  • 视频网站开发背景网络工程的公司有哪些
  • 网站友情链接 关键词经常改动做网站关键字
  • 建设企业网站中国建设银行网站开发技术主管工作职责
  • 做金融资讯用什么网站程序网站建设的电话
  • 网站环境搭建好后怎么做网站威县企业做网站
  • 微信开发网站开发网站开发建站微信公众号小程序
  • 中信云做网站网站策划工具
  • 制作公司网站有哪些好处seo服务外包费用
  • 建站公司费用营销网站建站公司哪家好
  • 临沂营销型网站建设ps怎么制作网页页面
  • 近五年网站开发参考文献网站建站的方式主要有哪几种
  • 移动端网站开发项目互联网做什么行业前景好