Barry Fawthrop
03/24/2022, 7:54 PMjava.lang.AssertionError: Recursion detected in a lazy value under LockBasedStorageManager@3fb4777a (TopDownAnalyzer for JVM)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.getCompanionObjectDescriptor(LazyClassDescriptor.java:448)
at org.jetbrains.kotlin.resolve.lazy.descriptors.LazyClassDescriptor.getCompanionObjectDescriptor(LazyClassDescriptor.java:64)
at org.jetbrains.kotlin.resolve.descriptorUtil.DescriptorUtilsKt.getClassValueTypeDescriptor(DescriptorUtils.kt:118)
at org.jetbrains.kotlin.resolve.descriptorUtil.DescriptorUtilsKt.getClassValueType(DescriptorUtils.kt:124)
at org.jetbrains.kotlin.resolve.scopes.receivers.ClassQualifier.<init>(Qualifier.kt:69)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.storeQualifier(QualifiedExpressionResolver.kt:801)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.storeResult(QualifiedExpressionResolver.kt:790)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.storeResult$default(QualifiedExpressionResolver.kt:760)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.resolveToPackageOrClassPrefix(QualifiedExpressionResolver.kt:519)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.resolveToPackageOrClassPrefix$default(QualifiedExpressionResolver.kt:480)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.resolveToPackageOrClass(QualifiedExpressionResolver.kt:468)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.resolveQualifierPartListForType(QualifiedExpressionResolver.kt:141)
at org.jetbrains.kotlin.resolve.QualifiedExpressionResolver.resolveDescriptorForType(QualifiedExpressionResolver.kt:129)
Nabil
03/25/2022, 10:25 AMBarry Fawthrop
03/25/2022, 12:16 PMNabil
03/25/2022, 12:24 PMBarry Fawthrop
03/25/2022, 3:41 PMBarry Fawthrop
03/25/2022, 3:42 PMimplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
implementation("io.realm.kotlin:library-sync:0.10.0")
implementation("io.ktor:ktor-client-core:1.6.7")
implementation("io.ktor:ktor-client-okhttp:1.6.7")
implementation("io.ktor:ktor-client-gson:1.6.7")
implementation("io.ktor:ktor-client-json:1.6.7")
implementation("io.ktor:ktor-client-logging:1.6.7")
Barry Fawthrop
03/25/2022, 3:42 PMimplementation("com.google.code.gson:gson:2.8.9") implementation("androidx.multidex:multidex:2.0.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.3")
implementation("androidx.appcompat:appcompat:1.4.1")
implementation("androidx.activity:activity-ktx:1.4.0")
implementation("androidx.fragment:fragment-ktx:1.4.1")
Barry Fawthrop
03/25/2022, 3:42 PMimplementation("androidx.lifecycle:lifecycle-runtime-ktx:2.4.1")
implementation("androidx.work:work-runtime-ktx:2.7.1")
implementation("androidx.recyclerview:recyclerview:1.2.1")
implementation("androidx.percentlayout:percentlayout:1.0.0")
implementation("androidx.core:core-ktx:1.7.0")
Nabil
03/25/2022, 3:50 PMBarry Fawthrop
03/25/2022, 4:26 PMBarry Fawthrop
03/25/2022, 4:26 PMext.kotlin_version = "1.6.10"
Nabil
03/25/2022, 4:32 PMBarry Fawthrop
03/25/2022, 4:49 PMclass MealDetailAdapter(private val meals: List<MealItems>) : RecyclerView.Adapter<MealDetailAdapter.MealDetailViewHolder>() {
which internally has
class MealDetailViewHolder(val view: LayoutMealDetailRowBinding) : RecyclerView.ViewHolder(view.root) {
Barry Fawthrop
03/25/2022, 4:49 PMNabil
03/25/2022, 4:53 PMBarry Fawthrop
03/25/2022, 4:55 PMNabil
03/25/2022, 4:56 PMAssertionError
if you move the ViewHolder as you described?Barry Fawthrop
03/25/2022, 4:56 PMNabil
03/25/2022, 5:01 PMViewHolder
inside the RecyclerView.Adapter
to see if I can reproduce it ...Barry Fawthrop
03/25/2022, 5:30 PMkapt("androidx.annotation:annotation:1.3.0")
kapt("com.github.bumptech.glide:compiler:4.13.0")
It doesn’t like this either I had this so I could have GlideApp and not just Glide.with Removing these I finally got it to compileBarry Fawthrop
03/25/2022, 6:28 PMClaus Rørbech
03/28/2022, 8:42 AM