【发布时间】:2019-07-18 15:21:18
【问题描述】:
我的应用在调试版本变体上运行良好,但是当我发布时,唯一的区别是混淆,应用无法正常运行
fun upsertPatient(patient: Patient, onCompletion: (Patient) -> Unit) {
val px = PatSecHelper.patToN(patient, SecHelper.genKey())
if (px != null) {
val subscription = Single.fromCallable {
val id = patientDao?.insertPatient(px)
px.id = id
px
}
?.subscribeOn(Schedulers.io())
?.subscribe({
onCompletion(it!!)
}, {
BleLogHelper.writeError("Error inserting patient into database", it)
})
subscriptions.add(subscription)
}
}
在调试模式下工作正常,但在发布时它会在上述方法上引发异常。
Unable to find generated Parcelable class for io.b4c.myapp.a.f, verify that your class is configured properly and that the Parcelable class io.b4c.myapp.a.f$$Parcelable is generated by Parceler.
【问题讨论】:
标签: android proguard parcelable