Android – room smashed release
•
Android
I use room in my project and everything goes well, but it will give me this error when I try to run it at release time
Cause: java.lang.runtimeexception: unable to find the implementation of via.rider.repository.ai_ Impl does not exist
I see that all the problems are about build. Config, but I did configure the annotationprocessor
// Android Room
implementation "android.arch.persistence.room:runtime:$roomVersion"
annotationProcessor "android.arch.persistence.room:compiler:$roomVersion"
implementation "android.arch.persistence.room:rxjava2:$roomVersion"
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
What could it be?
resolvent:
I'm sure room is trying to generate the database schema instead of your class. It will only get some confusing pulp. Try adding:
-keep class via.rider.repository.** { *; }
Go to your proguard-rule.pro
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码