腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(251)
视频
沙龙
2
回答
Kotlin
Coroutines
挂起
fun
+
retrofit
抛出
"No
Retrofit
annotation
found
“
错误
android
、
kotlin
、
retrofit
、
coroutine
我试图在2.5.1-SNAPSHOT中使用
retrofit
的协程支持,但我总是得到一个奇怪的异常。我的翻新服务类有: @GET("weather") suspend
fun
getForecast(@Query("q") query: String, @Query("num_of_days") numDays27477/com.my.app E/MainPresenter$onResume$$inlined$CoroutineExceptionHandler: Somethin
浏览 73
提问于2019-05-19
得票数 5
回答已采纳
2
回答
改造中从AsyncTask到
Coroutines
的转换: IllegalArgumentException
android
、
retrofit2
、
kotlin-coroutines
在对从IllegalArgumentException (前)到
Kotlin
Coroutines
(后)的转换中进行最小的更改时,我一直会得到
错误
的
Kotlin
Coroutines
。更改前的:@FormUrlEncoded
fun
activitySignUp( @Field("activity_id"activity_id") activityId:
浏览 5
提问于2019-12-02
得票数 3
回答已采纳
1
回答
当我使用协同线时
Kotlin
找不到类
android
、
kotlin
、
retrofit2
、
kotlin-coroutines
:
kotlin
.
coroutines
.Continuation<?: class User
kotlin
.
coroutines
.Continuation' apply plugin: '
浏览 1
提问于2020-05-24
得票数 1
1
回答
java.lang.IllegalArgumentException:找不到重新调整批注。(参数#4)
android
、
kotlin
、
mvvm
、
retrofit
application/x-www-form-urlencoded") suspend
fun
API = ServiceBuilder.buildWebService(WebService::class.java) return object :
浏览 6
提问于2020-03-02
得票数 0
回答已采纳
2
回答
调用
Kotlin
代码从java -> java.lang.NoClassDefFoundError:失败的决议:Ljava/util/并发/完成未来;
android
、
kotlin-coroutines
:
retrofit
:$
RETROFIT
_VERSION" implementation 'org.jetbrains.kotlinx:kotl
浏览 0
提问于2019-07-15
得票数 1
1
回答
当我从Android studio运行时,应用运行正常,但从playstore安装时,应用程序崩溃
android
我从Crashlytics得到的日志如下: com.phoenix.gmspunch.Login$1.onResponse (Login.java:2)
retrofit
2.com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130) 然而,当我从android stud
浏览 24
提问于2021-09-07
得票数 0
回答已采纳
1
回答
用
Retrofit
,Moshi和
Kotlin
拆开信封的响应
android
、
kotlin
、
retrofit
、
retrofit2
、
moshi
class Envelope<T>(val data: T)object EnvelopeConverter : Converter.Factory() { type: Type,
retrofit
:
Retrofit
) : Converter<ResponseBody, T> {
浏览 0
提问于2019-12-22
得票数 5
回答已采纳
2
回答
另一个例外情况是: java.lang.IllegalArgumentException:
annotation
注释找到。(参数#2)在ApiService.login中
android
、
kotlin
、
retrofit
、
kotlin-coroutines
、
illegalargumentexception
堆栈跟踪: atconst val BASE_URL = "<url>" private val client = OkHttpClient.
浏览 5
提问于2021-12-24
得票数 1
回答已采纳
1
回答
如何使用
Retrofit
的
挂起
函数的AS 4.0和组合启用?
android
、
android-studio
、
retrofit
、
retrofit2
、
android-jetpack-compose
:
kotlin
-stdlib-jdk7:$
kotlin
_version" implementation 'org.jetbrains.kotlinx:kotlinx-
coroutines
-android:1.3.0' suspend
fun
l
浏览 3
提问于2019-12-10
得票数 5
2
回答
无法为kotlinx.
coroutines
.flow.Flow创建转换器,不能为kotlinx.
coroutines
.flow.Flow创建JsonAdapter
android
、
kotlin
、
kotlin-coroutines
、
dagger-hilt
、
moshi
在这个演示应用程序中,我使用了一种改进,Moshi,MVVM,dagger hilt和
kotlin
coroutine,我被困在这个异常中,我试图更改PokemonApiService中
挂起
的乐趣的结构(
Retrofit
.java:202) at java.lang.reflect.Proxy.invokecom.mml.pokemonkotlin.view
浏览 25
提问于2022-06-07
得票数 0
回答已采纳
2
回答
更新2请求不能给我数据
java
、
android
、
kotlin
、
retrofit
、
retrofit2
API服务import
retrofit
2.
Retrofit
import
retrofit
2.converter.moshi.MoshiConverterFactorywi
浏览 2
提问于2019-10-26
得票数 0
回答已采纳
1
回答
Retrofit
2 whit
api
、
kotlin
、
retrofit2
我试图在
Kotlin
中读取一个带有
retrofit
2的API,但是我不明白为什么它会返回一个
错误
。如果能帮助我理解问题所在,我将不胜感激。谢谢。interface ApiService {
fun
getPricesByData(@Url url:String):Response<ApiResponse>..import kotlinx.
coroutines
.Dispatchers import kotlinx.
coroutines
.launc
浏览 2
提问于2021-02-25
得票数 0
1
回答
提高协同误差的可读性
android
、
retrofit
、
kotlin-coroutines
我有一个更新请求,它返回
挂起
功能:我是这样处理的: val responsereadText() } handleError(e)问题是:有时我的日志中有
错误
,无法读取到问题,例如: viewModel.getItems.invokeSuspend(Unknown Source:222
浏览 4
提问于2021-12-22
得票数 1
1
回答
改进:如何获取被调用服务方法的名称?
java
、
android
、
retrofit
、
retrofit2
在本例中,我的Interceptor
抛出
一个IllegalArgumentException,指出缺少的注释。不幸的是,在异常消息中并不清楚调用了哪个服务方法。我想提供被调用的服务方法的名称。下面是我的(
kotlin
)代码: @Throws(IOException::class) override
fun
intercept(chain: Interceptor.Chain)throw IllegalArgumentException("Missing
annotation
>@Header
浏览 10
提问于2019-04-02
得票数 0
回答已采纳
2
回答
执行org.jetbrains.
kotlin
.gradle.internal.KaptExecution机房数据库时发生故障
kotlin
、
kapt
我已经和这个
错误
斗争了好几个小时,并且能够追溯到它第一次出现的时候。一旦我将@Database注释添加到我的数据库类中,我就会看到一个
错误
,上面写着“在执行org.jetbrains.
kotlin
.gradle.internal.KaptExecution”时发生了故障:1.8.0" implementation "com.squareup.
retrofit
2:
retrofit
浏览 3
提问于2020-07-31
得票数 1
2
回答
改装: java.lang.IllegalStateException:关闭
android
、
retrofit2
50, TimeUnit.SECONDS) }
fun
getConfigFile(@Query("type") type: String): Call<ResponseBody>at a
浏览 8
提问于2020-03-13
得票数 28
回答已采纳
3
回答
匕首2无法进入改装
android
、
kotlin
、
retrofit2
、
dagger-2
、
dagger
我正在尝试使用Dagger 2(与Android模块)向我的存储库提供
Retrofit
实例。买我正面临
错误
: @Module@Singleton return}e: error: cannot access
Retrofit
e:
浏览 0
提问于2017-11-05
得票数 23
回答已采纳
19
回答
无法为类example.Simple创建调用适配器
java
、
rest
、
retrofit
、
simple-framework
使用此代码时(转换形式为预2.0.0代码): .addConverterFactory(SimpleXmlConverterFactory.create(Utils.java:201) at
retrofit
.MethodHandler.create(MethodHandler.
浏览 10
提问于2015-08-28
得票数 155
回答已采纳
1
回答
java.lang.IllegalArgumentException:没有找到
Retrofit
注释。(参数2)
kotlin
、
retrofit
、
retrofit2
.http.* suspend
fun
item.itemId){ } }我知道这个
错误
annotation
found
.com.example.
浏览 9
提问于2022-05-02
得票数 1
1
回答
如何求解
kotlin
协同流的误差?
kotlin
、
mvvm
我尝试在MVVM模型中使用NetworkBoundResource,在学习了一些教程之后,我看到了一个
错误
at
kotlin</em
浏览 4
提问于2020-10-21
得票数 1
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
深入浅出Kotlin协程
JetBrains开发者日见闻(二)之Kotlin1.3的新特性(Contract契约与协程篇
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券