@react-native-firebase\dynamic-links 找不到符号

Posted

技术标签:

【中文标题】@react-native-firebase\\dynamic-links 找不到符号【英文标题】:@react-native-firebase\dynamic-links cannot find symbol@react-native-firebase\dynamic-links 找不到符号 【发布时间】:2021-11-25 10:16:17 【问题描述】:

使用npm install @react-native-firebase/dynamic-links 后出现以下错误。我无法解决这个问题,有什么解决方案吗?

D:\myapp\node_modules\@react-native-firebase\dynamic-links\android\src\main\java\io\invertase\firebase\dynamiclinks\ReactNativeFirebaseDynamicLinksModule.java:227: error: cannot find symbol
                    Bundle linkUtmParameters = linkData.getUtmParameters();
                                                       ^
  symbol:   method getUtmParameters()
  location: variable linkData of type PendingDynamicLinkData
D:\myapp\node_modules\@react-native-firebase\dynamic-links\android\src\main\java\io\invertase\firebase\dynamiclinks\ReactNativeFirebaseDynamicLinksModule.java:458: error: cannot find symbol
                                      pendingDynamicLinkData.getUtmParameters()))));
                                                            ^
  symbol:   method getUtmParameters()
  location: variable pendingDynamicLinkData of type PendingDynamicLinkData
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-firebase_dynamic-links:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

【问题讨论】:

【参考方案1】:

可能是@react-native-firebase/app@react-native-firebase/dynamic-links的版本不一样。所以请确保您的项目包含相同版本的@react-native-firebase/app@react-native-firebase/dynamic-links

【讨论】:

以上是关于@react-native-firebase\dynamic-links 找不到符号的主要内容,如果未能解决你的问题,请参考以下文章