Kotlin 中 "OnCreat" 方法错误的解决方法 - override fun onCreate(savedInstanceState: Bundle?)
在 "OnCreat" 方法中应为 "onCreate",并且 "Bundle" 应该为 "Bundle?"。正确的写法如下:
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// 在这里添加你的代码
}
原文地址: https://www.cveoy.top/t/topic/pNSs 著作权归作者所有。请勿转载和采集!