任务':app:kaptGenerateStubsFossDebugKotlin'的执行失败。 >内部编译器错误

时间:2019-05-30 21:23:38

标签: android kotlin circleci circleci-2.0

我已经创建了espresso UI测试,并设置了CircleCI来运行它们。这些测试已在我的计算机上的本地模拟器以及真实设备上成功运行。但是,当我尝试在CircleCI上运行它们时,构建失败,并且任务':app:kaptGenerateStubsFossDebugKotlin'的执行失败。当CircleCI运行命令./gradlew connectedAndroidTest时,将出现错误。 您可以获取更多详细信息here

  
    

任务:app:kaptGenerateStubsFossDebugKotlin失败     e:org.jetbrains.kotlin.util.KotlinFrontEndException:分析/ home / circleci / project / app / src / main / java / chat / rocket / android / authentication / registerusername / presentation /中(43,44)处的表达式时发生异常RegisterUsernamePresenter.kt         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.logOrThrowException(ExpressionTypingVisitorDispatcher.java:241)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.lambda $ getTypeInfo $ 0(ExpressionTypingVisitorDispatcher.java:212)中         在org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:91)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:162)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:133)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.getTypeInfo(ExpressionTypingVisitorDispatcher.java:145)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingServices.getTypeInfo(ExpressionTypingServices.java:111)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingServices.getTypeInfo(ExpressionTypingServices.java:90)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingServices.getType(ExpressionTypingServices.java:127)         在org.jetbrains.kotlin.resolve.BodyResolver.resolvePropertyInitializer(BodyResolver.java:880)         在org.jetbrains.kotlin.resolve.BodyResolver.resolveProperty(BodyResolver.java:750)         在org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension $ doAnalysis $ 1.invoke(PartialAnalysisHandlerExtension.kt:84)         在org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension $ doAnalysis $ 1.invoke(PartialAnalysisHandlerExtension.kt:34)         在org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension.doForEachDeclaration(PartialAnalysisHandlerExtension.kt:121)处         在org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension.doForEachDeclaration(PartialAnalysisHandlerExtension.kt:125)处         在org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension.doForEachDeclaration(PartialAnalysisHandlerExtension.kt:135)处         在org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension.doAnalysis(PartialAnalysisHandlerExtension.kt:63)上         在org.jetbrains.kotlin.kapt3.AbstractKapt3Extension.doAnalysis(Kapt3Extension.kt:145)         在org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.kt:104)         在org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration $ default(TopDownAnalyzerFacadeForJVM.kt:82)         在org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler $ analyze $ 1.invoke(KotlinToJVMBytecodeCompiler.kt:384)         在org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler $ analyze $ 1.invoke(KotlinToJVMBytecodeCompiler.kt:70)         在org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:107)         在org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:375)         在org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules $ cli(KotlinToJVMBytecodeCompiler.kt:123)         在org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:131)         在org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:54)         在org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:84)         在org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:42)         在org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:103)         在org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:364)         在org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:105)         在org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:237)         在org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.access $ compileIncrementally(IncrementalCompilerRunner.kt:37)         在org.jetbrains.kotlin.incremental.IncrementalCompilerRunner $ compile $ 2.invoke(IncrementalCompilerRunner.kt:79)         在org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:91)         在org.jetbrains.kotlin.daemon.CompileServiceImpl.execIncrementalCompiler(CompileServiceImpl.kt:597)         在org.jetbrains.kotlin.daemon.CompileServiceImpl.access $ execIncrementalCompiler(CompileServiceImpl.kt:102)         在org.jetbrains.kotlin.daemon.CompileServiceImpl $ compile $$ inlined $ ifAlive $ lambda $ 2.invoke(CompileServiceImpl.kt:455)         在org.jetbrains.kotlin.daemon.CompileServiceImpl $ compile $$ inlined $ ifAlive $ lambda $ 2.invoke(CompileServiceImpl.kt:102)中         在org.jetbrains.kotlin.daemon.CompileServiceImpl $ doCompile $$ inlined $ ifAlive $ lambda $ 2.invoke(CompileServiceImpl.kt:1023)         在org.jetbrains.kotlin.daemon.CompileServiceImpl $ doCompile $$ inlined $ ifAlive $ lambda $ 2.invoke(CompileServiceImpl.kt:102)         在org.jetbrains.kotlin.daemon.common.DummyProfiler.withMeasure(PerfUtils.kt:137)         在org.jetbrains.kotlin.daemon.CompileServiceImpl.checkedCompile(CompileServiceImpl.kt:1065)         在org.jetbrains.kotlin.daemon.CompileServiceImpl.doCompile(CompileServiceImpl.kt:1022)         在org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:454)         在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处         在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)         在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)         在java.lang.reflect.Method.invoke(Method.java:498)         在sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:357)         在sun.rmi.transport.Transport $ 1.run(Transport.java:200)         在sun.rmi.transport.Transport $ 1.run(Transport.java:197)         在java.security.AccessController.doPrivileged(本机方法)         在sun.rmi.transport.Transport.serviceCall(Transport.java:196)         在sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:573)         在sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run0(TCPTransport.java:834)         在sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.lambda $ run $ 0(TCPTransport.java:688)         在java.security.AccessController.doPrivileged(本机方法)         在sun.rmi.transport.tcp.TCPTransport $ ConnectionHandler.run(TCPTransport.java:687)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)         在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)         在java.lang.Thread.run(Thread.java:748)     由以下原因引起:java.lang.IllegalStateException:不应为错误类型创建SimpleTypeImpl:ErrorScope {带有参数的类的错误范围:org.jetbrains.kotlin.types.IndexedParametersSubstitution@3822e4c9}     [错误:值]         在org.jetbrains.kotlin.types.SimpleTypeImpl。(KotlinTypeFactory.kt:119)         在org.jetbrains.kotlin.types.KotlinTypeFactory.simpleTypeWithNonTrivialMemberScope(KotlinTypeFactory.kt:64)         在org.jetbrains.kotlin.types.KotlinTypeFactory.simpleType(KotlinTypeFactory.kt:53)         在org.jetbrains.kotlin.types.TypeSubstitutionKt.replace(TypeSubstitution.kt:141)         在org.jetbrains.kotlin.types.TypeSubstitutionKt.replace(TypeSubstitution.kt:126)         在org.jetbrains.kotlin.types.TypeSubstitutionKt.replace $ default(TypeSubstitution.kt:118)         在org.jetbrains.kotlin.kapt3.KaptAnonymousTypeTransformer.convertPossfullyAnonymousType(KaptAnonymousTypeTransformer.kt:64)         在org.jetbrains.kotlin.kapt3.KaptAnonymousTypeTransformer.convertPossfullyAnonymousType(KaptAnonymousTypeTransformer.kt:61)         在org.jetbrains.kotlin.kapt3.KaptAnonymousTypeTransformer.transformAnonymousType(KaptAnonymousTypeTransformer.kt:24)         在org.jetbrains.kotlin.resolve.DescriptorResolver.transformAnonymousTypeIfNeeded(DescriptorResolver.java:1011)         在org.jetbrains.kotlin.resolve.DescriptorResolver.lambda $ inferReturnTypeFromExpressionBody $ 4(DescriptorResolver.java:1205)中         在org.jetbrains.kotlin.storage.LockBasedStorageManager $ LockBasedLazyValue.invoke(LockBasedStorageManager.java:346)         在org.jetbrains.kotlin.storage.LockBasedStorageManager $ LockBasedNotNullLazyValue.invoke(LockBasedStorageManager.java:402)         在org.jetbrains.kotlin.types.DeferredType.getDelegate(DeferredType.java:78)         在org.jetbrains.kotlin.types.WrappedType.getConstructor(KotlinType.kt:76)         在org.jetbrains.kotlin.builtins.KotlinBuiltIns.isConstructedFromGivenClass(KotlinBuiltIns.java:823)中         在org.jetbrains.kotlin.builtins.KotlinBuiltIns.isArray(KotlinBuiltIns.java:781)         在org.jetbrains.kotlin.types.typeUtil.TypeUtilsKt.isArrayOfNothing(TypeUtils.kt:87)         在org.jetbrains.kotlin.resolve.calls.checkers.CallReturnsArrayOfNothingChecker.containsArrayOfNothing(CallReturnsArrayOfNothingChecker.kt:35)处         在org.jetbrains.kotlin.resolve.calls.checkers.CallReturnsArrayOfNothingChecker.check(CallReturnsArrayOfNothingChecker.kt:27)         在org.jetbrains.kotlin.resolve.calls.CallCompleter.completeCall(CallCompleter.kt:88)         在org.jetbrains.kotlin.resolve.calls.CallResolver.doResolveCallOrGetCachedResults(CallResolver.java:609)         在org.jetbrains.kotlin.resolve.calls.CallResolver.lambda $ computeTasksAndResolveCall $ 0(CallResolver.java:208)         在org.jetbrains.kotlin.util.PerformanceCounter.time(PerformanceCounter.kt:91)         在org.jetbrains.kotlin.resolve.calls.CallResolver.computeTasksAndResolveCall(CallResolver.java:206)         在org.jetbrains.kotlin.resolve.calls.CallResolver.computeTasksAndResolveCall(CallResolver.java:196)         在org.jetbrains.kotlin.resolve.calls.CallResolver.resolveFunctionCall(CallResolver.java:322)         在org.jetbrains.kotlin.resolve.calls.CallExpressionResolver.getResolvedCallForFunction(CallExpressionResolver.kt:95)         在org.jetbrains.kotlin.resolve.calls.CallExpressionResolver.getCallExpressionTypeInfoWithoutFinalTypeCheck(CallExpressionResolver.kt:217)         在org.jetbrains.kotlin.resolve.calls.CallExpressionResolver.getUnsafeSelectorTypeInfo(CallExpressionResolver.kt:332)         在org.jetbrains.kotlin.resolve.calls.CallExpressionResolver.getSafeOrUnsafeSelectorTypeInfo(CallExpressionResolver.kt:369)         在org.jetbrains.kotlin.resolve.calls.CallExpressionResolver.getQualifiedExpressionTypeInfo(CallExpressionResolver.kt:462)         在org.jetbrains.kotlin.types.expressions.BasicExpressionTypingVisitor.visitQualifiedExpression(BasicExpressionTypingVisitor.java:715)处         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.visitQualifiedExpression(ExpressionTypingVisitorDispatcher.java:371)处         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher $ ForDeclarations.visitQualifiedExpression(ExpressionTypingVisitorDispatcher.java:45)处         在org.jetbrains.kotlin.psi.KtVisitor.visitDotQualifiedExpression(KtVisitor.java:302)         在org.jetbrains.kotlin.psi.KtDotQualifiedExpression.accept(KtDotQualifiedExpression.kt:31)         在org.jetbrains.kotlin.types.expressions.ExpressionTypingVisitorDispatcher.lambda $ getTypeInfo $ 0(ExpressionTypingVisitorDispatcher.java:173)中         ...还有61

  

0 个答案:

没有答案