我正在尝试建立反应原生项目的ios版本,android版本正在运行。我不能让ios版本在mac上运行,尝试使用expo,或者只使用模拟器。 ? 在运行expo start之后,以下是错误: Error: RNFirebase core module was not found natively on iOS, ensure you have correctly included the RNFirebase pod in your projects `Podfile` and have run `pod install`.
Invariant Violation: "main"
当我试图在Android中编译我的应用程序时,我对“react原生-地理定位-服务”有一个问题。
Cannot find a version of 'com.android.support:appcompat-v7' that satisfies the version constraints:
Dependency path 'UnalAR:react-native-geolocation-service:unspecified' --> 'com.android.support:appcompat-v7:26.1.0'
当我尝试使用react-native run-android命令运行react-native应用程序时,我得到了以下错误。我已经在网上搜索过了,还没有找到这个错误的解决方案 yarn run v1.22.4
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1088 file(s) to forward-je
我正在尝试在现有的React Native项目上设置测试。当我使用Jest运行测试时,测试失败并显示以下错误:
Test suite failed to run
...etc/__app__/node_modules/react-native/Libraries/polyfills/error-guard.js:14
type ErrorHandler = (error: mixed, isFatal: boolean) => void;
^^^^^^^^^^^^
SyntaxError: Unexpected identifier
尝试运行yarn test并尝试了许多节点版本(8和11)、react (57,58),但无法修复此错误。
FAIL __tests__/index.ios.js
● Test suite failed to run
/xyz/mobile-react/node_modules/react-native/jest/setup.js: babel-plugin-jest-hoist: The module factory of `jest.mock()` is not allowed to reference any out-of-scope variables.
In
我已经安装了react本机v0.46和安装了NativeBase,但是在组件中使用标记之后,没有显示图标,而是显示问号(Android,没有在iOS中测试)。
为了解决这个问题,我做了很多修改,如下所示:
rnpm link
react-native link react-native-vector-icons
NativeBase安装指南:
我的json包文件:{ "name": "Magazine", "version": "0.0.1", "private": t
一切都很正常,然后突然我在模拟器上运行应用程序时出现了以下错误。
1 error
:react-native-rw-get-gallery-image:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-rw-get-gallery-image:compileReleaseJavaWithJavac'.
> Compilation failed; se
我有一个react-native项目,在ios上一切都很好,但是当我试图在android上运行它时,我得到了这个错误':react-native-maps:compileReleaseJavaWithJavac' > Could not find tools.jar。我不知道这意味着什么,我已经做了一些研究,并发现了这个,然而,它似乎不是我的情况。
有人知道这个错误意味着什么吗?
build.gradle
dependencies {
compile project(':react-native-push-notification')
co
我不知道到底发生了什么,但我无法运行未发生错误的本机链接。
CLI输出:
react-native link --verbose
debug Available platforms: iOS, Android
debug Targeted platforms: iOS, Android
debug Getting project config for iOS...
debug Getting project config for Android...
error No package found. Are you sure this is a React Native project?
err
在运行npx时获取错误-- Android模拟器中的本机CLI
命令:npx react-native run-android
error: BUILD FAILED in 3s
at makeError (D:\TestProject\node_modules\@react-native-community\cli-platform-android\node_modules\execa\index.js:174:9)
at D:\TestProject\node_modules\@react-native-community\cli-platform-android\node
/i在环境变量中设置jdk路径。但该应用程序无法安装。我试过很多次了。但是如果有任何解决方案的话,bug仍然是there.do的回复。
D:\React Project\MyApp>react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-
jetifier"
flag.
Jetifier found 864 file(s) to forward-jeti
我有一个实现ActivityEventListener的React Native Android Native模块
在Android studio中,它会生成一个方法:
onActivityResult(int,int,IntentData)
但是当我将它导入react native并尝试运行android时,它会要求提供一个需要实现的onNewIntent(Intent intent),并且
CLass is not abstract and does not override abstract method onActivityResult(Activity,int,int,Intent)
react-native run-android在与react-native-ble-plx链接后失败
Task :react-native-ble-plx:compileDebugJavaWithJavac FAILED
这是一个新创建的应用程序,带有react-native init,除了min sdk没有改变任何东西。已经尝试清理项目,将min sdk设置为18,尝试使用android studio构建以获取更具体的错误,但仍然无法理解问题来自何处。
我得到的错误是:
Deprecated Gradle features were used in this build, making i
摇动android设备,点击Debug,每次都会崩溃。在Android中,它显示了没有加载源URL,您初始化了实例吗?
java.lang.AssertionError: No source URL loaded, have you initialised the instance?
at com.facebook.infer.annotation.Assertions.assertNotNull(Assertions.java:35)
at com.facebook.react.modules.debug.SourceCodeModule.getTypedExportedCo