我们的应用程序有许多网络请求,我们使用的协程与Retrofit类似: suspend fun fetchAccountInfo() { val versionResponse = api.getVersionAsync().await()} 问题是,当设备未连接到internert时,Retrofit将抛出异常,应用程序将崩溃。我发现this lin
我用的是Retroef2.7.1和Kotlin协同器。我有一个Retrofit服务定义如下:suspend fun updateUserProfile(kotlin.KotlinNullPointerException: Response from com.philsoft.test.api.UserApiService.updateUserProfilewa