flutter 启动Patrol测试带来“Serializer for class 'ConfigureRequest' is not found”错误

lyr7nygr  于 2023-10-22  发布在  Flutter
关注(0)|答案(1)|浏览(135)

我刚刚从Patrol 2.2.5切换到2.3.0,当我尝试运行测试时,我得到了这个错误:

Patrol (native): trying to configure() again in 1 second
        Patrol (native): configure() started
        Patrol (native): configure() failed
        Patrol (native): configure() failed: (NativeAutomatorClientException: configure() failed with Invalid response: 500 kotlinx.serialization.SerializationException: Serializer for class 'ConfigureRequest' is not found.
        Please ensure that class is marked as '@Serializable' and that the serialization compiler plugin is applied.

                at kotlinx.serialization.internal.Platform_commonKt.serializerNotRegistered(Platform.common.kt:91)
                at kotlinx.serialization.internal.PlatformKt.platformSpecificSerializerNotRegistered(Platform.kt:28)
                at kotlinx.serialization.SerializersKt__SerializersKt.serializer(Serializers.kt:134)
                at kotlinx.serialization.SerializersKt.serializer(Unknown Source:1)
                at pl.leancode.patrol.contracts.NativeAutomatorServer$router$2.invoke(NativeAutomatorServer.kt:211)
                at pl.leancode.patrol.contracts.NativeAutomatorServer$router$2.invoke(NativeAutomatorServer.kt:57)
                at pl.leancode.patrol.PatrolServerFiltersKt$catcher$1$1.invoke(PatrolServerFilters.kt:30)
                at pl.leancode.patrol.PatrolServerFiltersKt$cat
        Patrol (native): trying to configure() again in 1 second

有办法解决吗?

相关问题