Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.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
React native 任务';的执行失败:react native pjsip:compileReleaseJavaWithJavac';_React Native_React Native Android - Fatal编程技术网

React native 任务';的执行失败:react native pjsip:compileReleaseJavaWithJavac';

React native 任务';的执行失败:react native pjsip:compileReleaseJavaWithJavac';,react-native,react-native-android,React Native,React Native Android,我正在尝试构建一个从github克隆的react本地项目 在npm安装之后。我尝试了react native run android,结果是: /var/www/html/test/sipsip/react-native-pjsip-app/node_modules/react-native-pjsip/android/src/main/java/com/carusto/ReactNativePjSip/PjSipModulePackage.java:12: error: PjSipModule

我正在尝试构建一个从github克隆的react本地项目

npm安装之后
。我尝试了
react native run android
,结果是:

/var/www/html/test/sipsip/react-native-pjsip-app/node_modules/react-native-pjsip/android/src/main/java/com/carusto/ReactNativePjSip/PjSipModulePackage.java:12: error: PjSipModulePackage is not abstract and does not override abstract method createJSModules() in ReactPackage
public class PjSipModulePackage implements ReactPackage {
       ^
/var/www/html/test/sipsip/react-native-pjsip-app/node_modules/react-native-pjsip/android/src/main/java/com/carusto/ReactNativePjSip/PjActions.java:307: error: cannot find symbol
                    value.put(mapKey, map.getArray(mapKey).toArrayList());
                                                          ^
  symbol:   method toArrayList()
  location: interface ReadableArray
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
:react-native-pjsip:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 24.355 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
我尝试了很多解决方案,但都没有解决我的问题。你知道怎么解决这个问题吗

其他信息:
反应本机版本:

react-native-cli: 2.0.1
react-native: 0.41.2

我今天也遇到了同样的问题,通过使用

react-native-git-upgrade  
如果您尚未安装(升级程序),您可以致电

npm install -g react-native-git-upgrade

当然,有数千个梯度需要更新,而.js文件失败(仍在处理),但至少我已经通过了您描述的失败。

删除/ios和/android文件夹
然后运行
react native eject