Android react native 嵌入到现有的原生应用遇到的问题
2017-06-15 16:35
555 查看
问题1:
解决方法:修改 app/build.gradle
compile 'com.android.support:appcompat-v7:23.0.1'
问题2:
解决方法:添加或修改maven的路径:项目根目录的build.gradle下
Caused by: java.lang.IllegalAccessError: Method 'void android.support.v4.net.ConnectivityManagerCompat.<init>()' is inaccessible to class 'com.facebook.react.modules.netinfo.NetInfoModule' (declaration of 'com.facebook.react.modules.netinfo.NetInfoModule' appears in /data/app/xxc.application1-1/base.apk
解决方法:修改 app/build.gradle
compile 'com.android.support:appcompat-v7:23.0.1'
问题2:
Native: Got JS Exception: TypeError: undefined is not a function (evaluating '(bridgeConfig.remoteModuleConfig||[]).forEach') 11-05 12:20:24.257 4879-5218/xxc.application1 E/unknown:React: Exception in native call from JS com.facebook.react.bridge.JSExecutionException: TypeError: undefined is not a function (evaluating '(bridgeConfig.remoteModuleConfig||[]).forEach')
解决方法:添加或修改maven的路径:项目根目录的build.gradle下
allprojects { repositories { jcenter() maven { // All of React Native (JS, Android binaries) is installed from npm url "$rootDir/node_modules/react-native/android" } } }
相关文章推荐
- react native 嵌入原生Android应用中的问题
- React Native嵌入到现有原生应用
- 原生Android 嵌入 React Native 使用 Jenkins 打包遇到的坑
- React native学习第八章:嵌入到现有原生应用
- react native 学习笔记----将react native嵌入到Android原生应用
- 如何把React Native嵌入到原生android应用中
- 开发Android应用的时候遇到的问题
- android design 全方位学习,应用实战遇到的问题。
- 设计模式-单例模式(Singleton)在Android中的应用场景和实际使用遇到的问题
- Unity3D 原生Android结合UnityPlayerActivity开发遇到的问题
- Android原生嵌入React Native
- 获取android应用缓存目录时遇到的问题
- React Native 集成Android原生应用:Didn't find class "com.facebook.jni.IteratorHelper"
- Ant 多渠道 多项目应用library 打包Android项目遇到问题总结
- [置顶] 设计模式-单例模式(Singleton)在Android中的应用场景和实际使用遇到的问题
- React Native 学习笔记十二(嵌入原生应用 甚是坑啊)
- 关于开发Android应用时写从图库选择头像功能时遇到的一些问题。
- Android原生嵌入React Native
- Android应用开发环境搭建遇到的若干问题
- React Native官方实例UIExplorer项目(for android)运行遇到的问题