当前位置:网站首页>Kotlin项目报错缺少CoroutineContext依赖
Kotlin项目报错缺少CoroutineContext依赖
2022-06-22 04:28:00 【hudawei996】
报错:Cannot access class 'kotlin.coroutines.experimental.CoroutineContext'. Check your module classpath for missing or conflicting dependencies
表现:
rl_right.onClick {}这种直接view.onClick的写法解析不了原因:是没有引入协程库(上边这种写法的库)导致
解决:
//这个库都没引入,就直接可以rl_right.onClick {}了?
//先引入了这个库试了下,不行
// api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.31'
// api 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'
//然后找到了这个库,才是正确的
// ext.anko_version='0.10.8'
// implementation "org.jetbrains.anko:anko:$anko_version"
implementation "org.jetbrains.anko:anko:0.10.8"边栏推荐
- How does twitter decentralize? Look at these ten socialfi projects
- Solid smart contract interview questions
- 顺序表的基本操作
- PHP output function
- 什么是论坛虚拟主机?如何挑选?
- active RM机子断电后,RM HA切换正常。但是YarnUI上查看不到集群资源,application也一直处于ACCEPTED状态。
- IDEA安装及其使用详解教程
- What is a forum virtual host? How to choose?
- CAPL learning path - Ethernet function
- Tencent一面
猜你喜欢
随机推荐
低功耗雷达感应模组,智能锁雷达感应方案应用,智能雷达传感器技术
每日一问:ArrayList和LinkedList的区别
Quick sort
axios get传参拼接数据库字段
Topological sorting
Larave database backup scheduled task
active RM机子断电后,RM HA切换正常。但是YarnUI上查看不到集群资源,application也一直处于ACCEPTED状态。
Shell Sort
System V IPC and POSIX IPC
商汤智慧医疗团队研究员解读智慧医疗下的器官图像处理
图的基本概念
Design and implementation of ks004 based on SSH address book system
Cordova 项目中自定义插件--插件创建流程
[BP regression prediction] optimize BP regression prediction based on MATLAB GA (including comparison before optimization) [including Matlab source code 1901]
fc2新域名有什么价值?如何解析到网站?
Es cannot work, circuitbreakingexception
Solutions pour l'écran bleu idea
树的存储结构
"O & M youxiaodeng" active directory batch modification user
Insert sort








