java - 迁移到 AndroidX - ResultReceiver 在哪里
问题描述
在哪个新的 AndroidX 依赖项中ResultReceiver
?
我试过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'
我认为必须有一种更聪明的方法来找出新的依赖关系?
来源:迁移到 AndroidX
编辑,搜索开发者 API...
TraceCompat
接收结果
难道新系统里没有?
解决方案
我有它implementation 'androidx.core:core:1.0.2'
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package android.support.v4.os;
import android.os.Bundle;
import android.os.Handler;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import android.os.Parcelable.Creator;
import android.support.v4.os.IResultReceiver.Stub;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.Scope;
@RestrictTo({Scope.LIBRARY_GROUP})
public class ResultReceiver implements Parcelable {
...
还有这个:
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package android.os;
import android.os.Parcelable.Creator;
public class ResultReceiver implements Parcelable {
推荐阅读
- typescript - 与打字稿转换器共享数据
- laravel - 嵌套查询结果的laravel分页
- python - 在 Python 中手动将 RGB 图像转换为灰度(不使用外部库)
- javascript - React 中的条件渲染(以 Chart.js 为特色)
- c++ - 初始化 C++ 11 风格的单例
- powershell - Powershell - 需要帮助根据部分匹配名称将分组文件放入哈希表
- python - Plotly dash - 从上传的 csv 中选择列作为下拉列表
- python - Pyqt5 QLCDNumber 不显示秒(第三个对象)
- amazon-web-services - 能够在 Amazon CloudWatch Events 规则中指定唯一参数
- html - 如何使两个左浮动div不重叠?