Android原生集成RN 打包失败
其实_挺好 2019-06-13 02:06:42 Android原生集成ReactNative 在同一目录下,进行打包 打包失败
gradle assembleRelease
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :mzbanner:processReleaseManifest
StudioProjects/duojiaRnAndroid/mzbanner/src/main/AndroidManifest.xml:6:5-11:19 Warning:
application@android:allowBackup was tagged at AndroidManifest.xml:6 to replace other declarations but no other declaration present
> Task :app:bundleReleaseJsAndAssets FAILED
internal/modules/cjs/loader.js:613
throw err;
^
Error: Cannot find module '/StudioProjects/node_modules/react-native/cli.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:610:15)
at Function.Module._load (internal/modules/cjs/loader.js:526:27)
at Function.Module.runMain (internal/modules/cjs/loader.js:824:10)
at internal/main/run_main_module.js:17:11
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'node'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 41s
24 actionable tasks: 24 executed
根据上面的提示 是位置没找对 但是得修改配置文件 不知道具体为那个配置文件