【问题标题】:I have a problem with installing react-native-push-notification我在安装 react-native-push-notification 时遇到问题
【发布时间】:2019-07-10 12:50:54
【问题描述】:

我安装了 react-native-push-notification 并收到此错误。我手动链接了它

> Task :app:compileDebugJavaWithJavac FAILED
C:\Users\Zarzu Victor\PayReminder1\android\app\src\main\java\com\payreminder1\MainApplication.java:16: error: package com.dieam.reactnativepushnotification does not exist
import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;
                                            ^
C:\Users\Zarzu Victor\PayReminder1\android\app\src\main\java\com\payreminder1\MainApplication.java:39: error: cannot find symbol
            new ReactNativePushNotificationPackage()
                ^
  symbol: class ReactNativePushNotificationPackage
2 errors

FAILURE: Build failed with an exception.

【问题讨论】:

标签: react-native react-native-push-notification


【解决方案1】:

我找到了答案 实际上在 package.json 依赖项中 即使在安装后,这两个依赖项也丢失了

  "react-native-permissions": "^2.1.5",
"react-native-push-notification": "^3.5.2"

【讨论】:

    猜你喜欢
    • 2020-01-04
    • 1970-01-01
    • 2021-11-30
    • 1970-01-01
    • 2021-07-04
    • 2021-11-11
    • 2023-03-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多