npx jetify -r 命令行中-r是什么意思

问题描述

npx jetify -r 命令行中的-r是什么

我需要知道 npx jetify -r 有什么作用?

我在 package.json 中设置了一个脚本

postinstall: npx jetify -r

注意:我使用的是最新的 react-native (0.63)

但它已通过所有本地构建。但是在应用圈的云构建中失败了。

我需要解决以下问题

    node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/RNCalendarEvents.java:104: error: cannot find symbol
    
            int writePermission = ContextCompat.checkSelfPermission(reactContext,Manifest.permission.WRITE_CALENDAR)
node_modules/react-native-calendar-events/android/src/main/java/com/calendarevents/RNCalendarEvents.java:13: error: package android.support.v4.content does not exist

import android.support.v4.content.ContextCompat;

解决方法

-r 表示 reverse mode

什么reverse mode

就像你还不能迁移到 AndroidX,但库迁移和使用 AndroidX 发布

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...