当前位置:网站首页>打开老项目项目的报错(以高德地图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
边栏推荐
- Android | 安卓好用软件来袭,多御安全浏览器免费又强大
- Android面试冲刺:2022全新面试题——剑指Offer(备战金九银十)
- GoldenGate中使用 exp/imp 进行初始化
- [MySQL] Using join buffer (Block Nested Loop) in left join due to character set in mysql
- 双向循环链表-配有视频讲解
- 开源一夏 | 盘点那些 Golang 标星超过 20 K 的优质项目
- 虎符CTF 2022 Quest-Crash Writeup
- vr虚拟仿真教学系统应用场景开发
- HGAME 2022 Week3 writeup
- 点云中的一些名词解释
猜你喜欢
随机推荐
HanLP词性表
DC-7靶场下载及渗透实战详细过程(DC靶场系列)
房间虚拟样板间vr制作及价格
[Autumn Recruitment] [Updating ing] Hand Tear Code Series
大厂社招:Android 高级工程师的面试题,你知道多少?
App 启动速度优化系列:如何用一个placeholderUI来做初始化工作
PyQt5 窗口自适应大小
手机端出现Z-Fighting现象
MySQL performance schema性能分析实战
十年架构五年生活-08 第一次背锅
Take you to build a wheel and customize a View that can be dragged and sucked at will
Tencent Cloud Lightweight Application Server Configuration and Website Building Tutorial
GoldenGate中使用 exp/imp 进行初始化
HGAME 2022 Week3 writeup
国内vr虚拟全景技术领先的公司
【软件测试】2022年最火的十大测试工具,你掌握了几个
mysql中的三大日志
常见的加密方式有哪几种,各有哪些优缺点
常用代码扩展点设计方式
leetcode:357. 统计各位数字都不同的数字个数









