iOS

错误: 找不到符号 import androidx.annota

2020-02-26  本文已影响0人  光脚丫的孩子

一、概述

    ReactNative 运行报错: 

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

            或者

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

二、解决方法

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

        android.useAndroidX=true

        android.enableJetifier=true

上一篇 下一篇

猜你喜欢

热点阅读