命令行react-native run-androID遇到如下错误:
Could not resolve project :react-native-camera
用下列命令行安装依赖后问题仍旧存在:
npm install --save react-native-camera
在这里链接里找到了解决方案:
https://github.com/react-native-community/react-native-camera/blob/master/docs/migrationV2.md#androID
androID { compileSdkVersion rootProject.ext.compileSdkVersion compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } defaultConfig { applicationID "com.bacardi" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionname "1.0" missingDimensionStrategy 'react-native-camera', 'general' } splits { abi { reset() enable enableSeparateBuildPercpuArchitecture universalApk false // If true, also generate a universal APK include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" } } buildTypes { release { MinifyEnabled enableProguardInReleaseBuilds proguardfiles getDefaultProguardfile("proguard-androID.txt"), "proguard-rules.pro" } }
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
以上是内存溢出为你收集整理的windows环境里React-Native运行失败的原因之一,缺少依赖全部内容,希望文章能够帮你解决windows环境里React-Native运行失败的原因之一,缺少依赖所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)