我的新 kotlin 项目默认使用 androidx,并android.useAndroidX=true
在android.enableJetifier=true
根项目的gradle.properties
. 但它也依赖于使用库的模块support.v4
库。
Jetifier 不应该自动将这些依赖项转换为 androidx 吗?为什么我仍然收到此错误:
error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;
error: cannot find symbol
@DrawableRes int resId,
^
symbol: class DrawableRes
location: class BitmapUtil
error: package android.support.annotation does not exist
import android.support.annotation.ColorRes;
error: cannot find symbol
public static GDWrapper rect(@ColorRes int colorId, float... radii) {
^
symbol: class ColorRes
location: class XmlDrawableUtil