【发布时间】:2018-12-07 11:57:53
【问题描述】:
ResultReceiver是哪个新的AndroidX依赖?
我试过androidx.legacy:legacy-support-v4:1.0.0-alpha1,假设它可能在v4之下,因为它之前依赖android.support.v4.os.ResultReceiver。
我也试过这些:
implementation 'androidx.core:core:1.0.0-alpha3'
implementation 'androidx.legacy:legacy-support-v13:1.0.0-alpha3'
我认为必须有一种更智能的方法来找出新的依赖关系?
编辑、搜索开发者 API...
TraceCompat
接收者结果
难道新系统里没有?
【问题讨论】:
-
我不知道它在旧系统中。我还没有看到
android.support.v4.os.ResultReceiver。它在什么神器里? -
包是
android.support.v4.os.ResultReceiver,它在工件com.android.support:support-compat:27.1.1中。你可以找到它here(或在最新的 28 alpha 中)。 -
奇怪的是他们在 JavaDocs 中不再有
android.support.v4.os.ResultReceiver。奇怪的是,如果我手动查看androidx:core:1.0.0-alpha3AAR,我会看到android.support.v4.os.ResultReceiver。所以,我不知道他们的计划是什么。 -
@Knossos - 你知道要为 ResultReceiver 添加哪个依赖项
标签: java android android-support-library androidx android-jetpack