Kotlin 踩坑日记(三) Android Studio 3.0.0 Canary 编译错误
来源:互联网 发布:软件 开发的软件环境 编辑:程序博客网 时间:2024/06/05 20:41
错误
Error:Unable to find method 'com.android.build.gradle.internal.variant.BaseVariantData.getOutputs()Ljava/util/List;'.Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.```
解决办法
项目根录下build.gradle 将其中的kotlin 插件版本从 1.1.2-3 改成 1.1.2-4
buildscript { //升级一下 Android studio3.0 必须使用这个 //Android Studio 2.3 则必须使用 1.1.2-2 ext.kotlin_version = '1.1.2-4' repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.0.0-alpha1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files }}
阅读全文
0 0
- Kotlin 踩坑日记(三) Android Studio 3.0.0 Canary 编译错误
- Kotlin 踩坑日记(六)Android studio 3.0.0 Canary 4 Instant Run
- Android Studio 3.0 Canary
- Android Studio 3.0 Canary 1 安装和新特性及使用Kotlin语言开发AndroidApp
- Kotlin 踩坑日记(五)aapt2 编译 bug
- 最新Android Studio 3.0 Canary 1新增功能
- 谷歌官方详细介绍 Android Studio 3.0 Canary 1
- Android Studio 3.0 Canary版本相关问题总结
- 官方详细介绍Android Studio 3.0 Canary 1
- android studio 3.0 kotlin
- Kotlin 踩坑日记(一)Kotlin Dagger2 配置使用
- Kotlin 踩坑日记(二) dagger2 Java8 的支持错误
- Android Studio 集成Kotlin遇到的错误
- Android Studio编译错误
- Android studio 编译错误
- Android studio 编译错误
- Android Studio 3.0 Canary 6 release bug android.content.res.Resources$NotFoundException
- Kotlin for Android(三)Kotlin数据类型
- 抓取国家统计局区划、城乡划分代码的简易python爬虫实现
- jdbc连接mysql
- android Graphiics data output
- 使用JDK自带HttpsURLConnection发送HTTPS请求
- postgresql 结束进程
- Kotlin 踩坑日记(三) Android Studio 3.0.0 Canary 编译错误
- js ——假值和sort
- 《大型网站技术架构:核心原理与案例分析》拜读总结,第七章——随需应变:网站的可扩展架构
- 孙鑫c++教程笔记(1)
- intelij idea快捷键
- React-Native之iOS集成支付宝支付
- android内存优化
- String相关知识点
- ionic用插件(cordova-plugin-baidumaplocation)定位并调百度地图在上面显示