Error:Could not find com.android.tools.build:gradle:3.0.1.
16lz
2021-01-26
导入了github上一个项目提示Error:Could not find com.android.tools.build:gradle:3.0.1.
搜到一篇文章,https://www.2cto.com/kf/201712/708748.html
感觉跟之前学MVP时遇到的问题类似,都应该是gradle4之后的问题,在build.gradle中的jcenter()上一行加上google()就好了
buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.1' classpath 'org.apache.httpcomponents:httpclient:4.5.4' }}allprojects { repositories { google() jcenter() }}
更多相关文章
- Android(安卓)原生通知Notification 写法
- SpyEye on Android
- android 关掉Eclipse的自动代码提示
- Android(安卓)Studio提示 Cannot load key store: Keystore was
- 我的Android心得(5)--响铃、震动、状态栏提示
- adb push时提示 read only的问题
- Android(安卓)启动异常:The connection to adb is down, and a se
- android studio 导入 Launcher2 模块,并编译运行
- Android半透明提示效果的实现