随笔 - 245  文章 - 0  评论 - 11  阅读 - 50万
04 2021 档案
Android中Kotlin去掉findViewById直接使用
摘要:1.在app的build.gradle 中添加 id 'kotlin-android-extensions' 如图 2.在你的Activity中导包 import kotlinx.android.synthetic.main.activity_main.* 如下图 就可以直接通过View的ID调用方 阅读全文
posted @ 2021-04-15 21:04 巫山老妖 阅读(991) 评论(0) 推荐(0) 编辑
Re-download dependencies and sync project (requires network)
摘要:Android Studio4.1.3版本,创建一个新项目时发现出现下面的问题 Failed to open zip file. Gradle's dependency cache may be corrupt (this sometimes occurs after a network conne 阅读全文
posted @ 2021-04-14 22:01 巫山老妖 阅读(559) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示