Error running demo: This version of Android(安卓)Studio is incompatible with the Gradle Plugin used.
16lz
2021-01-26
Try disabling Instant Run (or updating either the IDE or the Gradle plugin to the latest version)
此类问题的出现是Android studio与gradle版本不匹配的原因,解决方案如下:
1. 禁用Instant run,在Settings/Preferneces 检索 Instant Run 即可。
2. 更新gradle的版本到你想要的:在project目录下的 gradle>wrapper>gradle-wrapper.properties中将
distributionUrl=https://services.gradle.org/distributions/gradle-3.5-all.zip
已发布版本可参考:http://services.gradle.org/distributions/
3.clean项目并清空 build文件夹
更多相关文章
- Android打Apk包发版?你真的准备好了吗?
- 一个简单的手电筒APP源码分享(支持Android(安卓)O(8.0)及以下版本
- Android(安卓)actionbar左侧小箭头的隐藏
- 配置qt5.1 for android的环境
- [置顶] android仿最新版本微信相册--附源码
- Android之版本检测和更新
- 搭建Android开发环境(Eclipse+SDK+ADT)
- 输入adb shell,提示device not found
- Android(安卓)Studio中新建项目时Your android sdk is out of da