error: package com.android.annotations does not exist

后端 未结 13 2315
南旧
南旧 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:21

    I had similar issues when migrating to androidx. this issue comes due to the Old Butter Knife library dependency.

    if you are using butter knife then you should use at least butter knife version 9.0.0-SNAPSHOT or above.

    implementation 'com.jakewharton:butterknife:9.0.0-SNAPSHOT' annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-SNAPSHOT'

提交回复
热议问题