h

    harry248

    1 year ago
    Is the Safe Args plugin broken in Android Studio 4.2 Beta 01 and Arctic Fox? The IDE doesn’t seem to recognize the generated classes and is stuck analyzing. 🤨
    Internal Error occurred while analyzing this expression: java.lang.NoClassDefFoundError: org/jetbrains/kotlin/analyzer/ModuleInfoKt at com.android.tools.idea.nav.safeargs.psi.kotlin.SafeArgsKtDescriptorUtilsKt.toModule(SafeArgsKtDescriptorUtils.kt:54) at com.android.tools.idea.nav.safeargs.psi.kotlin.KotlinTypeUtilsKt.getKotlinType(KotlinTypeUtils.kt:44) at com.android.tools.idea.nav.safeargs.psi.kotlin.KotlinTypeUtilsKt.getKotlinType$default(KotlinTypeUtils.kt:42) at com.android.tools.idea.nav.safeargs.module.KtDescriptorCacheModuleService$createArgsPackages$2$superTypesProvider$1.invoke(KtDescriptorCacheModuleService.kt:193) at com.android.tools.idea.nav.safeargs.module.KtDescriptorCacheModuleService$createArgsPackages$2$superTypesProvider$1.invoke(KtDescriptorCacheModuleService.kt:62) at com.android.tools.idea.nav.safeargs.psi.kotlin.KtArgsPackageDescriptor$SafeArgsModuleScope$lightClass$1.invoke(KtArgsPackageDescriptor.kt:61) at com.android.tools.idea.nav.safeargs.psi.kotlin.KtArgsPackageDescriptor$SafeArgsModuleScope$lightClass$1.invoke(KtArgsPackageDescriptor.kt:59) at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:375) at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:494) at com.android.tools.idea.nav.safeargs.psi.kotlin.KtArgsPackageDescriptor$SafeArgsModuleScope.getContributedDescriptors(KtArgsPackageDescriptor.kt:69) at com.android.tools.idea.nav.safeargs.psi.kotlin.KtArgsPackageDescriptor$SafeArgsModuleScope.getClassifierNames(KtArgsPackageDescriptor.kt:78) at org.jetbrains.kotlin.resolve.scopes.MemberScopeKt.flatMapClassifierNamesOrNull(MemberScope.kt:69) at org.jetbrains.kotlin.resolve.scopes.ChainedMemberScope.getClassifierNames(ChainedMemberScope.kt:48) at org.jetbrains.kotlin.resolve.scopes.AbstractScopeAdapter.getClassifierNames(AbstractScopeAdapter.kt:58) at org.jetbrains.kotlin.resolve.scopes.MemberScopeKt.computeAllNames(MemberScope.kt:61) at org.jetbrains.kotlin.resolve.lazy.FileScopeFactory$currentPackag...
    maxgdn

    maxgdn

    1 year ago
    Encountering similar issues.
    h

    harry248

    1 year ago
    See https://youtrack.jetbrains.com/issue/KT-43137, solution (for now) is to downgrade the Kotlin Plugin to 1.4.10 (https://plugins.jetbrains.com/plugin/6954-kotlin/versions/stable/96651) and install it manually.
    maxgdn

    maxgdn

    1 year ago
    Thanks for sharing Harry, you rock!