benny.huo
01/18/2018, 10:43 PMsuperTypes
to retrieve superTypes of RepoListFragment
while its superClass CommonListFragment
was mapped to com.bennyhuo.github.view.common.b
.
The runtime crash:
java.lang.IllegalStateException: Incomplete hierarchy for class RepoListFragment, unresolved classes [com.bennyhuo.github.view.common.CommonListFragment]
at kotlin.reflect.jvm.internal.components.RuntimeErrorReporter.reportIncompleteHierarchy(RuntimeErrorReporter.kt:26)
at kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor$DeserializedClassTypeConstructor.computeSupertypes(DeserializedClassDescriptor.kt:187)
After hours of searching I found that kotlin-reflect get the type infomation from the annotation Metadata
while the value of it may not be processed by proguard.
@Metadata(
mv = {1, 1, 7},
bv = {1, 0, 2},
k = 1,
d1 = {"..."},
d2 = {"Lcom/bennyhuo/github/view/fragments/subfragments/RepoListFragment;", "Lcom/bennyhuo/github/view/common/CommonListFragment;", "Lcom/bennyhuo/github/network/entities/Repository;", "Lcom/bennyhuo/github/presenter/RepoListPresenter;", "()V", "adapter", "Lcom/bennyhuo/github/view/fragments/RepoListAdapter;", "getAdapter", "()Lcom/bennyhuo/github/view/fragments/RepoListAdapter;", "production sources for module app"}
)
Any suggestions or workaround?😳udalov
Zac Sweers
12/16/2019, 8:18 PMudalov
udalov
Zac Sweers
12/18/2019, 12:11 AM