一、概述
? ? ReactNative 運(yùn)行報(bào)錯(cuò):?
????????????錯(cuò)誤: 找不到符號(hào) import androidx.annotation.Nullable;
? ? ? ? ? ? 或者
? ??????????Error: cannot find symbol import androidx. The annotation. Nullable.
二、解決方法
? ? ? ? 在?android/gradle.properties(沒有這個(gè)文件可以創(chuàng)建一個(gè)) 中插入如下內(nèi)容:
? ??????android.useAndroidX=true
????????android.enableJetifier=true