Could not initialize class com.android.sdklib.repository.AndroidSdkHandler相关问题解决方案

安卓报错Could not initialize class com.android.sdklib.repository.AndroidSdkHandler

这是说你现在导入的版本号太低了,跟你使用的版本号不匹配出现的问题

解决方案也很简单,就是打开build.gradle 文件,然后找到

dependencies中的classpath修改成最新版本就可以了

 后来弹出了Could not find com.android.tools.build:gradle:4.1.0

好吧居然找不到,那只好重新下载了。然后一直下载不了,卧槽,简单的方案就是在

repositories和allprojects下添加google()即可

 这样即可使用了。

然后弹出Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.

然后出现了Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager

重新设置一下就可以了

修改为30.0.3就可以了。

结论;授之以渔不如授之以渔,多去思考,多去实践,一味的寻找他人的帮助,这一直都不得不到成长

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>