无法在具有React-Native-Maps依赖关系的Android设备或模拟器上运行React Native Project

时间:2017-01-06 19:30:40

标签: android react-native react-native-maps

我目前正在尝试在Android上构建和运行我的项目,但它仍然失败。我遵循了正确设置android环境的所有说明,因为我能够让我的其他应用程序在模拟器上工作。我在这个项目中使用React本机映射依赖项,出于某种原因,每当我运行react-native run-android时,它都会因此错误而崩溃: error: constructor ActionSheetPackage in class ActionSheetPackage cannot be applied to given types; new ActionSheetPackage() ^ required: FragmentActivity found: no arguments reason: actual and formal argument lists differ in length 1 error :app:compileDebugJavaWithJavac FAILED
其次是: What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the compiler error output for details.

我已经尝试使用react-native-maps github页面上的内容进行故障排除,但这些似乎都不起作用。有没有人有任何想法?

1 个答案:

答案 0 :(得分:0)

事实证明,问题是有一个依赖项对android没有用。当我WM_NCCREATE编辑依赖项时,它还在项目的android部分中安装了它。一旦我将它从那里移除它就像一个魅力。