error: package com.android.annotations does not exist

后端 未结 13 2363
南旧
南旧 2020-12-13 11:55

I have the following class

import com.android.annotations.NonNullByDefault;

@NonNullByDefault
public final class Log {
    ...
}

and here

13条回答
  •  无人及你
    2020-12-13 12:33

    In my case I had to use

    import androidx.annotation...
    

    instead of

    import android.annotation...
    

    I migrated to AndroidX and forgot to change that.

提交回复
热议问题