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

济源网站建设费用wordpress汉化主题模板

济源网站建设费用,wordpress汉化主题模板,定制开发软件税率,大型网站建设技巧前言 新建了一个Flutter工程后,Run APP 却一直卡在了Running Gradle task ‘assembleDebug’… 这里。百度查询原因是因为 Gradle 的 Maven 仓库在国外, 因此需要使用阿里云的镜像地址。 1、修改项目中android/build.gradle文件 将 buildscript.repositories 下面…

前言

新建了一个Flutter工程后,Run APP 却一直卡在了Running Gradle task ‘assembleDebug’… 这里。百度查询原因是因为 Gradle 的 Maven 仓库在国外, 因此需要使用阿里云的镜像地址。

1、修改项目中android/build.gradle文件

将 buildscript.repositories 下面的

//google()
//mavenCentral()注释掉,改成maven {allowInsecureProtocol = trueurl 'https://maven.aliyun.com/repository/google'
}
maven {allowInsecureProtocol = trueurl 'https://maven.aliyun.com/repository/jcenter'
}
maven {allowInsecureProtocol = trueurl 'http://maven.aliyun.com/nexus/content/groups/public'
}

allprojects.repositories 同上修改

使用"阿里云"仓库为下载源,可能会报错(gradle的仓库地址不安全警告的错误),因为配置了除 maven 中央仓库之外的其他不安全的仓库(一些国内的镜像仓库,如"阿里云"镜像仓库也是不安全的),如下所示:

A problem occurred configuring root project 'Packer'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Using insecure protocols with repositories, without explicit opt-in, is unsupported. Switch Maven repository 'maven(http://maven.aliyun.com/nexus/content/groups/public/)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.0.2/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details.
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.

解决方法:只需要在App项目工程的 build.gradle 中,使用 allowInsecureProtocol 属性(允许gradle使用"不安全"的仓库并且不报警告信息)即可

allowInsecureProtocol = true

2、修改 Flutter SDK 中packages\flutter_tools\gradle\flutter.gradle文件

将 buildscript.repositories 下面的

//google()
//mavenCentral()注释掉,改成maven {allowInsecureProtocol = trueurl 'https://maven.aliyun.com/repository/google'
}
maven {allowInsecureProtocol = trueurl 'https://maven.aliyun.com/repository/jcenter'
}
maven {allowInsecureProtocol = trueurl 'http://maven.aliyun.com/nexus/content/groups/public'
}

将 DEFAULT_MAVEN_HOST 值修改成 "https://storage.flutter-io.cn";

private static final String DEFAULT_MAVEN_HOST = "https://storage.flutter-io.cn";

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

相关文章:

  • 一般网站的流量是多少酒店加盟
  • 网站建设工具公司百度统计会对原网站产生影响吗
  • 网站找建站公司网站开发的硬件设备有
  • 建设银行网站上怎么查看账户北京市文化局政务网站建设项目
  • 各大网站官网的导航栏怎么做备案 网站负责人
  • 营销型网站seo省建设厅官网查询
  • 成都企业做网站多少钱网站各类备案
  • 长沙市网站设计公司单位建设一个网站的费用
  • 帝国cms仿站工具产品经理兼职做网站报酬
  • 网站制作咨询adspower浏览器
  • 广东高端网站建设公司用VS做的网站怎么连接数据库
  • wordpress 主题 博客 广告位广州网站排名优化开发
  • 购物网站建设存在的问题三合一网站管理系统
  • 网站做标签网站建设公司 首推万维科技
  • 网站建设及管理制度文章凡科平台盲审
  • 网站制作协议书c2c网站的功能
  • 佛山格尔做网站的公司国外创意摄影网站
  • 怎么让百度快速收录网站郑州豆芽网站建设
  • 孝感 商务 网站建设开80服务器怎么做网站
  • 网站论坛建设方案企信网查不到公司怎么办
  • 军队采购网官网seo基础入门教程
  • 网页打不开是什么情况网站优化标签
  • 北京中御建设公司网站如何做网站的充值功能
  • 濮阳建站公司哪个好网页制作素材模板
  • 呼和浩特企业网站建设自己做付费网站
  • 住房城乡建设局网站首页wordpress 文章设置
  • 电商网站设计文档做网站联系方式
  • 凤城网站建设杭州移动网站建设
  • 建站比较好的公司建设工程概念内容
  • 锐旗网站建设seo诊断方法步骤