腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(5055)
视频
沙龙
2
回答
返回
null
getrequest
retrofit
kotlin
android
、
kotlin
、
retrofit
、
get-request
但是当我调用函数时fetchAllLocations从片段中,此函数
返回
null
。但是在onResponse方法列表位置不为空。我不知道为什么位置在onResponse方法。=
null
call?.
浏览 120
提问于2021-02-25
得票数 0
回答已采纳
2
回答
如何将
Retrofit
client从
Kotlin
转换为Java保留单例?
java
、
android
、
kotlin
、
singleton
、
retrofit2
我正在尝试将Java
Retrofit
Api客户端代码转换为
Kotlin
。下面是我们在Java中所拥有的:public class RetrofitClient { if (
retrofit
==
浏览 0
提问于2018-06-12
得票数 0
1
回答
Kotlin
Retrofit
response.body()
返回
null
android
、
kotlin
、
retrofit
orderID=A001获取一个API, val error: Error?=
null
, val nip: String?AppCompatActivity)) })正如您在上面看到的,我使用Log.i尝试在LogCat中打印re
浏览 46
提问于2020-06-05
得票数 2
回答已采纳
2
回答
如何从
Retrofit
()更新活动/片段UI?
java
、
android
、
rest
、
retrofit2
我想在我的下一个Android项目中使用
Retrofit
2.1.0。;BalanceRestClient.java .baseUrl("http://hovermind.com&
浏览 7
提问于2016-12-15
得票数 2
回答已采纳
4
回答
如何处理在改造中使用
Kotlin
Coroutines的204响应?
android
、
retrofit
、
retrofit2
、
kotlin-coroutines
我用的是Retroef2.7.1和
Kotlin
协同器。我有一个
Retrofit
服务定义如下:suspend fun updateUserProfile( @Query("display_name") displayName: String) : Void 此调用
返回
一个HTTP204no内容响应,这将导致<e
浏览 0
提问于2020-01-07
得票数 44
回答已采纳
1
回答
asp.net核心应用程序接口从
kotlin
获取空值
kotlin
、
retrofit
、
asp.net-core-webapi
但是当我使用
Kotlin
和
Retrofit
传递数据时,API得到空值。所有数据都通过
Kotlin
fine发送到服务器。
Kotlin
和ASP.net核心中的所有模型都是相同的。这是我的
Retrofit
类: companion object{ var baseUrl = "http://10.
浏览 8
提问于2021-02-22
得票数 0
回答已采纳
2
回答
OpenIdProvider.
GetRequest
()
返回
null
c#
、
asp.net
、
.net
、
openid
、
dotnetopenauth
我导航到我的依赖方代码并创建请求,但是当我的提供者收到请求时,OpenIdProvider.
GetRequest
()
返回
null
。return new EmptyResult();提供商:{ IRequest request = OpenIdProvider.
GetRequest
行IRequest i_request = OpenIdProvider.
GetRequest
();运行良好,但当我尝试转换它:IAuthentication
浏览 1
提问于2012-09-20
得票数 2
回答已采纳
2
回答
Kotlin
和
Retrofit
:如何处理HTTP 400响应?
android
、
kotlin
、
retrofit
、
okhttp
我正在使用Android上的
Retrofit
(2.6)来实现一个连接到web服务器的服务,该服务要求服务器进行一些工作。MyStartWorkResponse// instance of
Retrofit
. var service: MyService =
retrofit
.cr
浏览 1
提问于2020-01-08
得票数 1
回答已采纳
1
回答
用
Retrofit
,Moshi和
Kotlin
拆开信封的响应
android
、
kotlin
、
retrofit
、
retrofit2
、
moshi
我正在使用一个API,该API
返回
如下响应: "irrelevantStuff": {},} }}val
retrofit
:
Retrofit
=
Retrofit
.Builder() .baseUrl(currentEndpoint.url(EnvelopeConverter.kt:19
浏览 0
提问于2019-12-22
得票数 5
回答已采纳
1
回答
在Square.
Retrofit
上,如何设置CallAdapter.Factory以便重新配置使用my CallAdapter<T,Foo<Bar<T>>>
android
、
retrofit
、
retrofit2
= Flow::class.java) { } return
null
return MyCallAdapter(flowType)serialization of
Kotlin
classes without using
kotlin
-reflect has undefined and unexp
浏览 8
提问于2021-10-13
得票数 1
2
回答
如何将java接口代码转换成
kotlin
代码?
java
、
android
、
kotlin
我想把一些java代码转换成
kotlin
。这是我想要转换的代码。class RetrofitClientInstance { var BASE_URL = "10.80.7.30:3000" if (
retrofit
==
null
) {
re
浏览 0
提问于2019-10-03
得票数 0
2
回答
加装2请求总是失败-科特林
android
、
api
、
kotlin
、
retrofit
、
retrofit2
我试着同时了解
kotlin
和
retrofit
2。我有这个密码。@Expose@Expose @SerializedName("body"
浏览 0
提问于2018-12-20
得票数 1
2
回答
使用带改造的android反序列化日期时间字符串
android
、
retrofit
我正在尝试使用修改和在
kotlin
中定义的模型来反序列化JSON。然而,我无法让它发挥作用。我一直有一些不可序列化的错误。
浏览 0
提问于2020-05-14
得票数 0
回答已采纳
2
回答
kotlin
.UninitializedPropertyAccessException: lateinit属性compositeDiposable尚未初始化
java
、
android
、
kotlin
、
rx-java
、
retrofit2
我还添加了列出的所有
kotlin
插件: 应用插件:'
kotlin
-android‘ 应用插件:'
kotlin
-android-extensions‘ 应用插件:'
kotlin
-kapt‘ package' compileSdkVersion
浏览 20
提问于2019-04-14
得票数 0
回答已采纳
1
回答
ServletActionContext.
getRequest
()
返回
NULL
servlets
、
struts2
所以我打电话给你获取HttpRequest,然后在该struts操作类中获取session。但始终
返回
NULL
。 是不是因为它不会被web调用。
浏览 0
提问于2011-02-07
得票数 1
回答已采纳
2
回答
错误: IllegalArgumentException:无法为追溯式2.Response创建调用适配器
android
、
retrofit2
、
android-sensors
、
restful-architecture
但是我遇到了一个错误,“无法为追溯器2.
retrofit
2.Response创建调用适配器” restURL = extras.getString(MainActivity.URL); e.printStackTrace()
浏览 5
提问于2017-01-24
得票数 0
回答已采纳
1
回答
用
kotlin
改造转换器:类型推断失败
generics
、
kotlin
、
retrofit
:
Retrofit
): Converter<ResponseBody, *>?:
Retrofit
): Converter<*, RequestBody>?hasJSONRPCAnnotation(methodAnnotations)) return
null
return JSONRPCRequestBodyConverter(gson在Java中,只
返回
new JSONRPCResponseBodyConverter<>(gson)是可能的。然而,在
kot
浏览 0
提问于2018-12-13
得票数 2
回答已采纳
1
回答
当我使用协同线时
Kotlin
找不到类
android
、
kotlin
、
retrofit2
、
kotlin-coroutines
=
null
get() = user !=
null
user =
null
user =
null
apply plugin: '
kotlin
-android' apply plugin: '
浏览 1
提问于2020-05-24
得票数 1
5
回答
如何在Retroeft-2.0+ android中设置超时
android
、
retrofit
、
retrofit2
--我指的是 ,但我似乎不能为自己的实现 compile 'com.squareup.
retrofit
2:
retrofit
:2.0.2' private static
Retrofit
retrofit
=
null
浏览 4
提问于2016-05-11
得票数 47
回答已采纳
1
回答
Kotlin
Retrofit
在recylerView中向.enqueue
返回
null
android
、
kotlin
、
retrofit2
com.marcusneo.stockportfolio.MainActivity$getPortData$1.onResponse(MainActivity.kt:191) response.body()!!.
浏览 2
提问于2022-06-26
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
简述多种Kotlin语法小技巧
Kotlin项目下的Retrofit2网络请求框架
Android Weekly Notes Issue#320
Kotlin Part 6:API 搭建—Retrofit&Kotlin
为什么 HTTP Code 204 会导致 Retrofit 出现 NullPointerException?
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券