Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/194.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 错误:未知的命名模块";react native webrtc“;_Android_React Native_React Native Webrtc - Fatal编程技术网

Android 错误:未知的命名模块";react native webrtc“;

Android 错误:未知的命名模块";react native webrtc“;,android,react-native,react-native-webrtc,Android,React Native,React Native Webrtc,在发布之前,我在android上的react原生应用程序中看到了这个错误。我还没有在iOS上测试过 这是我的地铁 BUNDLE ./index.js WARN AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storag

在发布之前,我在android上的react原生应用程序中看到了这个错误。我还没有在iOS上测试过

这是我的地铁

 BUNDLE  ./index.js

 WARN  AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage
 ERROR  Error: Unknown named module: "react-native-webrtc"
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
 ERROR  Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
      This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
我的index.js

/**
 * @format
 */

import {AppRegistry} from 'react-native';
import MainProject from './App';
import {name as appName} from './app.json';
import {Provider} from 'react-redux';
import {Provider as PaperProvider} from 'react-native-paper'
import store from './videocall/store'
import 'react-native-gesture-handler'
const AppRedux = () => (
    <Provider {...{store}}>
        <PaperProvider>
            <MainProject />
        </PaperProvider>
    </Provider>
)
AppRegistry.registerComponent(appName, () => AppRedux);

意识到它只发生在1.89.1

降到1.84.1对我来说很有效

"react": "17.0.1",
"react-native": "0.64.0",
"react-native-peerjs": "^1.0.4",
"react-native-webrtc": "1.89.1