当前位置:网站首页>打开老项目项目的报错(以高德地图demo为例)
打开老项目项目的报错(以高德地图demo为例)
2022-08-10 23:05:00 【全情】
一般都因为as 的gradle版本对不上
报错
Could not initialize class com.android.sdklib.repository.AndroidSdkHandler
或者
Minimum supported Gradle version is 4.10.1. Current version is 4.6.
原因是这个项目太老了,gradle的版本也太老了,我的AS是北极狐版本的,所以运行不起来,所以就需要升级gradle版本,具体操作如下:
把根目录下的gradle从3.0.1改为4.1.2
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
同时改gradle插件版本
同时,gradle-wrapper.properties中的gradle要从4.8改为6.5
边栏推荐
- 祥云杯 2021 PackageManager writeup
- leetcode:355. 设计推特
- Pengcheng Cup 2022 web/misc writeup
- XSLeaks side channel attack (unfinished)
- 手机端出现Z-Fighting现象
- Leave a message with a prize | OpenBMB x Tsinghua University NLP: The update of the large model open class is complete!
- The Missing Semester of Your CS Education
- 二叉树 | 递归遍历 | leecode刷题笔记
- HGAME 2022 Week2 writeup
- API服务网关
猜你喜欢
随机推荐
【Maui正式版】创建可跨平台的Maui程序,以及有关依赖注入、MVVM双向绑定的实现和演示
62.【彻底改变你对C语言指针的厌恶(超详细)】
HGAME 2022 Final Pokemon v2 writeup
解析方法的参数列表(包含参数名称)
Glide缓存核心原理详解
常用代码扩展点设计方式
《DevOps围炉夜话》- Pilot - CNCF开源DevOps项目DevStream简介 - feat. PMC成员胡涛
企业小程序怎么开发自己的小程序?
Mysql之部分表主从搭建及新增表
MUI框架开发app中出现的问题
细谈APP开发焦点问题:AMS 系统时间调节原理
如何反弹shell
Redis - 利用lua脚本控制密码错误次数超限,锁定账号
2022牛客多校(七)K. Great Party博弈方法证明
【秋招】【更新中ing】手撕代码系列
实例049:lambda
leetcode:357. 统计各位数字都不同的数字个数
Kotlin 由浅入深,带你搞懂协程异常处理的那点事
Metasploit——客户端渗透
HanLP词性表









