错误: 找不到符号 import androidx.annotation.Nullable;

一、概述

    ReactNative 运行报错: 

            错误: 找不到符号 import androidx.annotation.Nullable;

            或者

            Error: cannot find symbol import androidx. The annotation. Nullable.

二、解决方法

        在 android/gradle.properties(没有这个文件可以创建一个) 中插入如下内容:

        android.useAndroidX=true

        android.enableJetifier=true

你可能感兴趣的:(错误: 找不到符号 import androidx.annotation.Nullable;)