伙计们,我把我的课程移到了一个文件而不是主文件的底部,我遇到了一些错误,这是Kotlin编程的新手,所以我需要一些帮助
package com.educator.dualsignal.Models
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
class category(val name: String, val imageURL: String, val real_name:
String, val object_1_screen_libras_image:String,
valobject_1_screen_libras_text: String, val viewed:
String) : Parcelable {
constructor() : this("", "", "", "", "", "")
}
出现错误的kotlin文件
class categories(val category: Category): Item<ViewHolder>(){
override fun bind(viewHolder: ViewHolder, position: Int) {
viewHolder.itemView.textCategory.text = category.name
Picasso.get().load(category.imageURL).into
(viewHolder.itemView.imageCategory)
}
错误消息是“未解决的参考:类别” android studio要求我输入导入语言环境,但是没有用