Org.jetbrains.kotlin.util.KotlinFrontEndException:Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Org.jetbrains.kotlin.util.KotlinFrontEndException:

Сообщение Anonymous »

Ошибка: org.jetbrains.kotlin.util.KotlinFrontEndException: внутренняя ошибка внешнего интерфейса: не удалось проанализировать объявление
Причина: kotlin.KotlinNullPointerException
После обновления студии Android невозможно запускать проекты. как исправить эту ошибку? Используемая версия студии Android — 3.3, а версия kotlin-stdlib — 1.3.0. это ошибка версии Kotlin или ошибка студии Android?
org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration
Cause: kotlin.KotlinNullPointerException
File being compiled at position: (48,1) in /CountrySelectActivity.kt
The root cause was thrown at: K t Q u a l i f i e d E x p r e s s i o n . k t : 3 5 < b r / > a t o r g . j e t b r a i n s . k o t l i n . r e s o l v e . E x c e p t i o n W r a p p i n g K t V i s i t o r V o i d . v i s i t D e c l a r a t i o n ( E x c e p t i o n W r a p p i n g K t V i s i t o r V o i d . k t : 4 3 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t D e c l a r a t i o n ( K t V i s i t o r V o i d . j a v a : 4 5 3 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t D e c l a r a t i o n ( K t V i s i t o r V o i d . j a v a : 2 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r . v i s i t N a m e d D e c l a r a t i o n ( K t V i s i t o r . j a v a : 3 9 8 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t N a m e d D e c l a r a t i o n ( K t V i s i t o r V o i d . j a v a : 3 8 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t N a m e d D e c l a r a t i o n ( K t V i s i t o r V o i d . j a v a : 9 5 9 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t N a m e d D e c l a r a t i o n ( K t V i s i t o r V o i d . j a v a : 2 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r . v i s i t C l a s s O r O b j e c t ( K t V i s i t o r . j a v a : 4 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t C l a s s O r O b j e c t ( K t V i s i t o r V o i d . j a v a : 3 7 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t C l a s s O r O b j e c t ( K t V i s i t o r V o i d . j a v a : 4 6 5 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t C l a s s O r O b j e c t ( K t V i s i t o r V o i d . j a v a : 2 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r . v i s i t C l a s s ( K t V i s i t o r . j a v a : 3 3 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t C l a s s ( K t V i s i t o r V o i d . j a v a : 3 3 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t C l a s s ( K t V i s i t o r V o i d . j a v a : 4 5 9 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t C l a s s ( K t V i s i t o r V o i d . j a v a : 2 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t C l a s s . a c c e p t ( K t C l a s s . k t : 3 4 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t E l e m e n t I m p l S t u b . a c c e p t ( K t E l e m e n t I m p l S t u b . j a v a : 5 9 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . r e s o l v e . L a z y T o p D o w n A n a l y z e r $ a n a l y z e D e c l a r a t i o n s $ 1 . r e g i s t e r D e c l a r a t i o n s ( L a z y T o p D o w n A n a l y z e r . k t : 7 8 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . r e s o l v e . L a z y T o p D o w n A n a l y z e r $ a n a l y z e D e c l a r a t i o n s $ 1 . v i s i t K t F i l e ( L a z y T o p D o w n A n a l y z e r . k t : 9 6 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t K t F i l e ( K t V i s i t o r V o i d . j a v a : 5 1 3 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r V o i d . v i s i t K t F i l e ( K t V i s i t o r V o i d . j a v a : 2 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t F i l e . a c c e p t ( K t F i l e . k t : 2 2 1 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t F i l e . a c c e p t ( K t F i l e . k t : 2 0 8 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . r e s o l v e . E x c e p t i o n W r a p p i n g K t V i s i t o r V o i d . v i s i t E l e m e n t ( E x c e p t i o n W r a p p i n g K t V i s i t o r V o i d . k t : 2 7 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . c o m . i n t e l l i j . p s i . P s i E l e m e n t V i s i t o r . v i s i t F i l e ( P s i E l e m e n t V i s i t o r . j a v a : 3 4 ) < b r / > a t o r g . j e t b r a i n s . k o t l i n . p s i . K t V i s i t o r . v i s i t K t F i l e ( K t V i s i t o r . j a v a : 7 3 ) < b r />at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:69)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:513)
at org.jetbrains.kotlin.psi.KtVisitorVoid.visitKtFile(KtVisitorVoid.java:21)
at org.jetbrains.kotlin.psi.KtFile.accept(KtFile.kt:221)
at org.jetbrains.kotlin.psi.KtFile.accept(KtFile.kt:208)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations(LazyTopDownAnalyzer.kt:201)
at org.jetbrains.kotlin.resolve.LazyTopDownAnalyzer.analyzeDeclarations$default(LazyTopDownAnalyzer.kt:60)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:110)
at org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration$default(TopDownAnalyzerFacadeForJVM.kt:82)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:375)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.invoke(KotlinToJVMBytecodeCompiler.kt:67)
at org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:107)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:366)
at org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules$cli(KotlinToJVMBytecodeCompiler.kt:120)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:161)
at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:57)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:96)
at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.java:52)
at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:93)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:362)
at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:102)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:225)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.access$compileIncrementally(IncrementalCompilerRunner.kt:39)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner$compile$2.invoke(IncrementalCompilerRunner.kt:91)
at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:103)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.execIncrementalCompiler(CompileServiceImpl.kt:606)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.access$execIncrementalCompiler(CompileServiceImpl.kt:102)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:455)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$compile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:102)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:1029)
at org.jetbrains.kotlin.daemon.CompileServiceImpl$doCompile$$inlined$ifAlive$lambda$2.invoke(CompileServiceImpl.kt:102)
at org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:1071)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:1028)
at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:454)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:835)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:687)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: kotlin.KotlinNullPointerException
at org.jetbrains.kotlin.psi.KtQualifiedExpression$DefaultImpls.getOperationTokenNode(KtQualifiedExpression.kt:35)
at org.jetbrains.kotlin.psi.KtDotQualifiedExpression.getOperationTokenNode(KtDotQualifiedExpression.kt:25)
at org.jetbrains.kotlin.psi.KtQualifiedExpression$DefaultImpls.getExpression(KtQualifiedExpression.kt:41)
at org.jetbrains.kotlin.psi.KtQualifiedExpression$DefaultImpls.getSelectorExpression(KtQualifiedExpression.kt:32)
at org.jetbrains.kotlin.psi.KtDotQualifiedExpression.getSelectorExpression(KtDotQualifiedExpression.kt:55)
at org.jetbrains.kotlin.psi.KtPackageDirective.getPackageNames(KtPackageDirective.java:61)
at org.jetbrains.kotlin.psi.KtPackageDirective.getQualifiedNameOf(KtPackageDirective.java:158)
at org.jetbrains.kotlin.psi.KtPackageDirective.getQualifiedName(KtPackageDirective.java:149)
at org.jetbrains.kotlin.psi.KtPackageDirective.getFqName(KtPackageDirective.java:111)
at org.jetbrains.kotlin.psi.KtFile.getPackageFqNameByTree(KtFile.kt:95)
at org.jetbrains.kotlin.psi.KtFile.getPackageFqName(KtFile.kt:83)
at org.jetbrains.kotlin.resolve.lazy.declarations.FileBasedDeclarationProviderFactory.computeFilesByPackage(FileBasedDeclarationProviderFactory.java:54)
at org.jetbrains.kotlin.resolve.lazy.declarations.FileBasedDeclarationProviderFactory.lambda$new$0(FileBasedDeclarationProviderFactory.java:47)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedLazyValue.invoke(LockBasedStorageManager.java:354)
at org.jetbrains.kotlin.storage.LockBasedStorageManager$LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:410)
at org.jetbrains.kotlin.resolve.lazy.declarations.FileBasedDeclarationProviderFactory.packageExists(FileBasedDeclarationProviderFactory.java:70)
at org.jetbrains.kotlin.resolve.lazy.declarations.AbstractDeclarationProviderFactory.getPackageMemberDeclarationProvider(AbstractDeclarationProviderFactory.java:41)
at org.jetbrains.kotlin.resolve.lazy.ResolveSession.getPackageFragment(ResolveSession.java:213)


Подробнее здесь: https://stackoverflow.com/questions/545 ... dexception
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»