android-studio – 在Android Studio中访问R.drawable会引发KotlinFrontEndException

android-studio – 在Android Studio中访问R.drawable会引发KotlinFrontEndException,第1张

概述对于 Android开发,我使用Kotlin和Kotlin插件0.10.206.当我尝试通过R.drawable访问资源时. Android Studio(1.0.2)在事件日志中显示每次我在该文件中执行某些 *** 作时都会出现KotlinFrontEndException(添加代码/删除代码/滚动).我做错了什么或是插件中的错误?有人知道解决方案吗? 以下是导致异常的代码部分之一: val notif 对于 Android开发,我使用Kotlin和Kotlin插件0.10.206.当我尝试通过R.drawable访问资源时. AndroID Studio(1.0.2)在事件日志中显示每次我在该文件中执行某些 *** 作时都会出现KotlinFrontEndException(添加代码/删除代码/滚动).我做错了什么或是插件中的错误?有人知道解决方案吗?

以下是导致异常的代码部分之一:

val notification = notificationBuilder                .extend(NotificationCompat.WearableExtender().addPage(secondPageNotification)                        .setBackground(loadBitmapFromAsset(R.drawable.clock_background))                )                .build()

这是异常描述:

Exception in processing references for copy paste in file MainActivity.kt}: Exception while analyzing Expression at (218,60) in /Users/jp/AndroIDStudioProjects/.../MainActivity.kt:         R.drawable.clock_backgroundat org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:167)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:103)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getTypeInfo(ExpressionTyPingServices.java:173)    at org.jetbrains.jet.lang.resolve.calls.ArgumentTypeResolver.getArgumentTypeInfo(ArgumentTypeResolver.java:187)    at org.jetbrains.jet.lang.resolve.calls.ArgumentTypeResolver.analyzeArgumentsAndrecordtypes(ArgumentTypeResolver.java:254)    at org.jetbrains.jet.lang.resolve.calls.callresolver.doResolveCall(callresolver.java:423)    at org.jetbrains.jet.lang.resolve.calls.callresolver.doResolveCallOrGetCachedResults(callresolver.java:359)    at org.jetbrains.jet.lang.resolve.calls.callresolver.resolveFunctionCall(callresolver.java:312)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getResolvedCallForFunction(CallExpressionResolver.java:79)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfoWithoutFinalTypeCheck(CallExpressionResolver.java:184)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfo(CallExpressionResolver.java:167)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitCallExpression(BasicExpressionTyPingVisitor.java:689)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitCallExpression(BasicExpressionTyPingVisitor.java:88)    at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:35)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:249)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:36)    at org.jetbrains.jet.lang.psi.JetVisitor.visitExpression(JetVisitor.java:162)    at org.jetbrains.jet.lang.psi.JetVisitor.visitReferenceExpression(JetVisitor.java:178)    at org.jetbrains.jet.lang.psi.JetVisitor.visitCallExpression(JetVisitor.java:254)    at org.jetbrains.jet.lang.psi.JetCallExpression.accept(JetCallExpression.java:35)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:136)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:103)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getTypeInfo(ExpressionTyPingServices.java:173)    at org.jetbrains.jet.lang.resolve.calls.ArgumentTypeResolver.getArgumentTypeInfo(ArgumentTypeResolver.java:187)    at org.jetbrains.jet.lang.resolve.calls.ArgumentTypeResolver.analyzeArgumentsAndrecordtypes(ArgumentTypeResolver.java:254)    at org.jetbrains.jet.lang.resolve.calls.callresolver.doResolveCall(callresolver.java:423)    at org.jetbrains.jet.lang.resolve.calls.callresolver.doResolveCallOrGetCachedResults(callresolver.java:359)    at org.jetbrains.jet.lang.resolve.calls.callresolver.resolveFunctionCall(callresolver.java:312)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getResolvedCallForFunction(CallExpressionResolver.java:79)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfoWithoutFinalTypeCheck(CallExpressionResolver.java:184)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getSelectorReturnTypeInfo(CallExpressionResolver.java:267)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getQualifIEdExpressionTypeInfo(CallExpressionResolver.java:296)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:683)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:88)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:249)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:36)    at org.jetbrains.jet.lang.psi.JetVisitor.visitExpression(JetVisitor.java:162)    at org.jetbrains.jet.lang.psi.JetVisitor.visitQualifIEdExpression(JetVisitor.java:262)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:136)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:103)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getTypeInfo(ExpressionTyPingServices.java:173)    at org.jetbrains.jet.lang.resolve.calls.ArgumentTypeResolver.getArgumentTypeInfo(ArgumentTypeResolver.java:187)    at org.jetbrains.jet.lang.resolve.calls.ArgumentTypeResolver.analyzeArgumentsAndrecordtypes(ArgumentTypeResolver.java:254)    at org.jetbrains.jet.lang.resolve.calls.callresolver.doResolveCall(callresolver.java:423)    at org.jetbrains.jet.lang.resolve.calls.callresolver.doResolveCallOrGetCachedResults(callresolver.java:359)    at org.jetbrains.jet.lang.resolve.calls.callresolver.resolveFunctionCall(callresolver.java:312)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getResolvedCallForFunction(CallExpressionResolver.java:79)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfoWithoutFinalTypeCheck(CallExpressionResolver.java:184)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getSelectorReturnTypeInfo(CallExpressionResolver.java:267)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getQualifIEdExpressionTypeInfo(CallExpressionResolver.java:296)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:683)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:88)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:249)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:36)    at org.jetbrains.jet.lang.psi.JetVisitor.visitExpression(JetVisitor.java:162)    at org.jetbrains.jet.lang.psi.JetVisitor.visitQualifIEdExpression(JetVisitor.java:262)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:136)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:103)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getTypeInfo(ExpressionTyPingServices.java:173)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getQualifIEdExpressionTypeInfo(CallExpressionResolver.java:287)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:683)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:88)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:249)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:36)    at org.jetbrains.jet.lang.psi.JetVisitor.visitExpression(JetVisitor.java:162)    at org.jetbrains.jet.lang.psi.JetVisitor.visitQualifIEdExpression(JetVisitor.java:262)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:136)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:103)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getTypeInfo(ExpressionTyPingServices.java:168)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getType(ExpressionTyPingServices.java:178)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.safeGetType(ExpressionTyPingServices.java:161)    at org.jetbrains.jet.lang.resolve.DescriptorResolver.resolveInitializerType(DescriptorResolver.java:1168)    at org.jetbrains.jet.lang.resolve.DescriptorResolver.getvariableType(DescriptorResolver.java:1066)    at org.jetbrains.jet.lang.resolve.DescriptorResolver.resolveLocalVariableDescriptor(DescriptorResolver.java:884)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitorForStatements.visitProperty(ExpressionTyPingVisitorForStatements.java:124)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitorForStatements.visitProperty(ExpressionTyPingVisitorForStatements.java:52)    at org.jetbrains.jet.lang.psi.JetProperty.accept(JetProperty.java:57)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:136)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:111)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getBlockReturnedTypeWithWritableScope(ExpressionTyPingServices.java:308)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getBlockReturnedType(ExpressionTyPingServices.java:244)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.getBlockReturnedType(ExpressionTyPingServices.java:210)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitorForStatements.visitBlockExpression(ExpressionTyPingVisitorForStatements.java:385)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitorForStatements.visitBlockExpression(ExpressionTyPingVisitorForStatements.java:52)    at org.jetbrains.jet.lang.psi.JetBlockExpression.accept(JetBlockExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:136)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:113)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.checkFunctionReturnType(ExpressionTyPingServices.java:205)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingServices.checkFunctionReturnType(ExpressionTyPingServices.java:190)    at org.jetbrains.jet.lang.resolve.BodyResolver.resolveFunctionBody(BodyResolver.java:618)    at org.jetbrains.jet.lang.resolve.BodyResolver.resolveFunctionBodIEs(BodyResolver.java:592)    at org.jetbrains.jet.lang.resolve.BodyResolver.resolveBehaviorDeclarationBodIEs(BodyResolver.java:124)    at org.jetbrains.jet.lang.resolve.BodyResolver.resolveBodIEs(BodyResolver.java:135)    at org.jetbrains.jet.lang.resolve.LazytopDownAnalyzer.analyzeDeclarations(LazytopDownAnalyzer.java:330)    at org.jetbrains.jet.plugin.caches.resolve.KotlinResolveDataProvIDer.analyze(KotlinResolveCache.kt:258)    at org.jetbrains.jet.plugin.caches.resolve.PerfileAnalysisCache.analyze(KotlinResolveCache.kt:179)    at org.jetbrains.jet.plugin.caches.resolve.PerfileAnalysisCache.analyze$b(KotlinResolveCache.kt:126)    at org.jetbrains.jet.plugin.caches.resolve.PerfileAnalysisCache.getAnalysisResults(KotlinResolveCache.kt:164)    at org.jetbrains.jet.plugin.caches.resolve.KotlinResolveCache.getAnalysisResultsForElements(KotlinResolveCache.kt:114)    at org.jetbrains.jet.plugin.caches.resolve.KotlinCacheService$getResolutionFacade.analyzefullyAndGetResult(KotlinCacheService.kt:66)    at org.jetbrains.jet.plugin.caches.resolve.ResolvePackage$resolutionAPI9eb6cc.analyzefullyAndGetResult(resolutionAPI.kt:58)    at org.jetbrains.jet.plugin.Highlighter.JetPsiChecker.annotate(JetPsiChecker.kt:63)    at org.jetbrains.jet.plugin.Highlighter.JetPsiCheckerAndHighlightingUpdater.annotate(JetPsiCheckerAndHighlightingUpdater.java:29)    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:160)    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:103)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.run(GeneralHighlightingPass.java:312)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:397)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access0(GeneralHighlightingPass.java:64)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.run(GeneralHighlightingPass.java:403)    at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:87)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:400)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.access0(GeneralHighlightingPass.java:64)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.run(GeneralHighlightingPass.java:403)    at com.intellij.codeInsight.daemon.impl.RefCountHolder.analyze(RefCountHolder.java:318)    at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.analyze(HighlightVisitorImpl.java:173)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:400)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:388)    at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectinformationWithProgress(GeneralHighlightingPass.java:230)    at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectinformation(ProgressableTextEditorHighlightingPass.java:86)    at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectinformation(TextEditorHighlightingPass.java:62)    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:380)    at com.intellij.openAPI.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1154)    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:371)    at com.intellij.openAPI.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209)    at com.intellij.openAPI.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:368)    at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:344)    at com.intellij.concurrency.JobLauncherImpl$VoIDForkJoinTask.exec(JobLauncherImpl.java:193)    at Jsr166e.ForkJoinTask.doExec(ForkJoinTask.java:260)    at Jsr166e.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:858)    at Jsr166e.ForkJoinPool.scan(ForkJoinPool.java:1687)    at Jsr166e.ForkJoinPool.runWorker(ForkJoinPool.java:1642)    at Jsr166e.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:109)Caused by: java.lang.IllegalArgumentException: invalID IDentifIEr:     at org.jetbrains.jet.lang.resolve.name.name.IDentifIEr(name.java:56)    at org.jetbrains.jet.lang.resolve.java.structure.impl.JavaMemberImpl.getname(JavaMemberImpl.java:43)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.ClassMemberIndex$fIElds.invoke(MemberIndex.kt:48)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.ClassMemberIndex$fIElds.invoke(MemberIndex.kt:41)    at org.jetbrains.jet.utils.UtilsPackage$collectionsc8c85b0.valuesToMap(collections.kt:29)    at org.jetbrains.jet.utils.UtilsPackage.valuesToMap(UnkNown Source)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.ClassMemberIndex.<init>(MemberIndex.kt:48)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.LazyJavaStaticclassScope.computeMemberIndex(LazyJavaStaticclassScope.kt:35)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.LazyJavaMemberScope$memberIndex.invoke(LazyJavaMemberScope.kt:68)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.LazyJavaMemberScope$memberIndex.invoke(LazyJavaMemberScope.kt:51)    at org.jetbrains.jet.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:314)    at org.jetbrains.jet.storage.LockBasedStorageManager$LockBasednotNullLazyValue.invoke(LockBasedStorageManager.java:355)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.LazyJavaMemberScope$propertIEs.invoke(LazyJavaMemberScope.kt:229)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.LazyJavaMemberScope$propertIEs.invoke(LazyJavaMemberScope.kt:51)    at org.jetbrains.jet.storage.LockBasedStorageManager$MapBasedMemoizedFunction.invoke(LockBasedStorageManager.java:385)    at org.jetbrains.jet.storage.LockBasedStorageManager$MapBasedMemoizedFunctionToNotNull.invoke(LockBasedStorageManager.java:428)    at org.jetbrains.jet.lang.resolve.java.lazy.descriptors.LazyJavaMemberScope.getPropertIEs(LazyJavaMemberScope.kt:292)    at org.jetbrains.jet.lang.resolve.scopes.JetScopeSelectorUtil.get(JetScopeSelectorUtil.java:92)    at org.jetbrains.jet.lang.resolve.scopes.JetScopeSelectorUtil.getFromAllScopes(JetScopeSelectorUtil.java:123)    at org.jetbrains.jet.lang.resolve.scopes.ChainedScope.getPropertIEs(ChainedScope.kt:42)    at org.jetbrains.jet.lang.resolve.scopes.ChainedScope.getPropertIEs(ChainedScope.kt:27)    at org.jetbrains.jet.lang.resolve.calls.tasks.collectors.VariableCollector.getNonExtensionsByname(CallableDescriptorCollectors.kt:109)    at org.jetbrains.jet.lang.resolve.calls.tasks.collectors.FilteredCollector.getNonExtensionsByname(CallableDescriptorCollectors.kt:156)    at org.jetbrains.jet.lang.resolve.calls.tasks.TaskPrioritizer.addCandIDatesFornoreceiver(TaskPrioritizer.kt:229)    at org.jetbrains.jet.lang.resolve.calls.tasks.TaskPrioritizer.doComputeTasks(TaskPrioritizer.kt:102)    at org.jetbrains.jet.lang.resolve.calls.tasks.TaskPrioritizer.computePrioritizedTasks(TaskPrioritizer.kt:75)    at org.jetbrains.jet.lang.resolve.calls.callresolver.resolveSimpleProperty(callresolver.java:123)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getvariableType(CallExpressionResolver.java:101)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getSimplenameExpressionTypeInfo(CallExpressionResolver.java:137)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getSelectorReturnTypeInfo(CallExpressionResolver.java:271)    at org.jetbrains.jet.lang.resolve.calls.CallExpressionResolver.getQualifIEdExpressionTypeInfo(CallExpressionResolver.java:296)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:683)    at org.jetbrains.jet.lang.types.Expressions.BasicExpressionTyPingVisitor.visitQualifIEdExpression(BasicExpressionTyPingVisitor.java:88)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:249)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.visitJetElement(ExpressionTyPingVisitordispatcher.java:36)    at org.jetbrains.jet.lang.psi.JetVisitor.visitExpression(JetVisitor.java:162)    at org.jetbrains.jet.lang.psi.JetVisitor.visitQualifIEdExpression(JetVisitor.java:262)    at org.jetbrains.jet.lang.psi.JetVisitor.visitDotQualifIEdExpression(JetVisitor.java:270)    at org.jetbrains.jet.lang.psi.JetDotQualifIEdExpression.accept(JetDotQualifIEdExpression.java:44)    at org.jetbrains.jet.lang.types.Expressions.ExpressionTyPingVisitordispatcher.getTypeInfo(ExpressionTyPingVisitordispatcher.java:136)    ... 144 more
解决方法 在0.10.206.7版本的kotlin插件中正常工作 总结

以上是内存溢出为你收集整理的android-studio – 在Android Studio中访问R.drawable会引发KotlinFrontEndException全部内容,希望文章能够帮你解决android-studio – 在Android Studio中访问R.drawable会引发KotlinFrontEndException所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1125385.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-30
下一篇 2022-05-30

发表评论

登录后才能评论

评论列表(0条)

保存