error: package com.android.annotations does not exist

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

    For Ionic, try this:

    ionic cordova plugin add cordova-plugin-androidx
    ionic cordova plugin add cordova-plugin-androidx-adapter
    

    The error comes because this app is not using androidX but these plugins solve errors.

提交回复
热议问题