室工作 我有实体: @Entity
public class A {
@PrimaryKey(autoGenerate = true)
public long id;
public A() {}
}
@Entity()
public class B {
@PrimaryKey @NonNull
public String id;
我尝试使用以下@Entity @embedding时: @Entity(tableName = "transactions")
data class TransactionWithState(
@PrimaryKey
val hash: String,
@Embedded
val transaction: Transaction,
@
我是android架构组件中的新成员。我正在尝试与android-architecture-components/BasicRxJavaSample以及Gradle配置一起构建应用程序。但我得到以下错误: 错误:(14,8)错误:实体和Pojos必须有一个可用的公共构造函数。你可以有一个空的构造函数或者一个构造函数,它们的参数匹配字段(通过名称和类型)。尝试使用下列构造函数,但它们不匹配:= De