0

我安装了 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.
4

1 回答 1

0

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

  "react-native-permissions": "^2.1.5",
"react-native-push-notification": "^3.5.2"
于 2020-06-19T10:34:38.347 回答