Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这些导入语句说无法解析符号
import android.annotation.MainThread; import android.annotation.Nullable; import android.annotation.WorkerThread;
尝试在您的应用程序 gradle 中添加以下依赖项:-
implementation 'com.android.support:support-annotations:24.2.0'
使用我们使用的支持库(上图),您的导入应该如下所示:-
import android.support.annotation.NonNull;