我目前正在尝试在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页面上的内容进行故障排除,但这些似乎都不起作用。有没有人有任何想法?
答案 0 :(得分:0)
事实证明,问题是有一个依赖项对android没有用。当我WM_NCCREATE
编辑依赖项时,它还在项目的android部分中安装了它。一旦我将它从那里移除它就像一个魅力。