Closed
Description
i upgrade from 59.8 to 60.4 and now i want to generate apk release when run ./gradlew assembleRelease and enable Hermes and enable inline reqiure to happen :
React Native version:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
Memory: 1.03 GB / 12.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.13.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.7.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 23, 26, 27, 28
Build Tools: 23.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.2, 28.0.3
System Images: android-23 | Google APIs Intel x86 Atom, android-27 | Android TV Intel x86 Atom, android-27 | Intel x86 Atom, android-27 | Intel x86 Atom_64, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.4 AI-183.6156.11.34.5522156
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.4 => 0.60.4`
Steps To Reproduce
1- cd android && ./gradlew assembleRelease
info Writing bundle output to:, /Users/iSafir/Desktop/novinCinema/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /Users/iSafir/Desktop/novinCinema/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing sourcemap output
info Done writing unbundle output
info Copying 299 asset files
info Done copying assets
/Users/iSafir/Desktop/novinCinema/node_modules/react-native/scripts/compose-source-maps.js:41
throw new Error(
^
Error: Random Access Bundle (RAM) format is not supported by this tool; it cannot process the `x_facebook_offsets` field provided in the base and/or target source map(s)
at Object.<anonymous> (/Users/iSafir/Desktop/novinCinema/node_modules/react-native/scripts/compose-source-maps.js:41:11)
at Module._compile (internal/modules/cjs/loader.js:805:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
at Module.load (internal/modules/cjs/loader.js:672:32)
at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
at Function.Module._load (internal/modules/cjs/loader.js:604:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:868:12)
at internal/main/run_main_module.js:21:11
> Task :app:bundleReleaseJsAndAssets FAILED
FAILURE: Build failed with an exception.
* Where:
Script '/Users/iSafir/Desktop/novinCinema/node_modules/react-native/react.gradle' line: 160
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1m 51s
metro.config.js
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
},
};
app/build.gradle
project.ext.react = [
entryFile: "index.js",
bundleCommand: "ram-bundle",
bundleConfig: "./metro.config.js",
enableHermes: true
]
android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true