Closed IsaiahTek closed 2 years ago
i have the same problem. npx react-native doctor gives me:
Common
✓ Node.js
✓ yarn
Android
✖ JDK
- Version found: N/A
- Version supported: 1.8.x || >= 9
✖ Android Studio - Required for building and installing your app on Android
✖ Android SDK - Required for building and installing your app on Android
- Versions found: N/A
- Version supported: 31.0.0
✖ ANDROID_HOME
Errors: 4
Warnings: 0
echo $ANDROID_SDK_ROOT:
/home/damian/Android/Sdk
echo $PATH:
/home/damian/.nvm/versions/node/v18.7.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/damian/Android/Sdk/emulator:/home/damian/Android/Sdk/platform-toolseval:/home/damian/Android/Sdk/emulator:/home/damian/Android/Sdk/platform-tools
what am i supposed to get?
I couldn't figure it out so I switched the code base to kotlin.
I may never visit Reactnative anytime soon
It finishes without any error but doesn't bundle the app at all
Can you clarify what do you mean with 'doesn't bundle the app at all'. The app is bundled in the android/app/build/outputs
folder.
Version
8.0.4
Also this is not a React Native version. Can you clarify on which version are you at the moment.
I may never visit Reactnative anytime soon
If you don't need furhter support, please close this issue @IsaiahTek
It finishes without any error but doesn't bundle the app at all
Can you clarify what do you mean with 'doesn't bundle the app at all'. The app is bundled in the
android/app/build/outputs
folder.Version
8.0.4
Also this is not a React Native version. Can you clarify on which version are you at the moment.
I may never visit Reactnative anytime soon
If you don't need furhter support, please close this issue @IsaiahTek
As shown in the imagine, the reactnative version is 0.69.3
It finishes without any error but doesn't bundle the app at all
Can you clarify what do you mean with 'doesn't bundle the app at all'. The app is bundled in the
android/app/build/outputs
folder.Version
8.0.4
Also this is not a React Native version. Can you clarify on which version are you at the moment.
I may never visit Reactnative anytime soon
If you don't need furhter support, please close this issue @IsaiahTek
I get it is bundled in the folder android/app/build/outputs
folder. That is main issue. When I get into the folder, I can't seem to see the bundled files there.
See imagine below for clarification
That is main issue. When I get into the folder, I can't seem to see the bundled files there. See imagine below for clarification
Could you share your whole build log from the terminal as a text (not as an image)?
That is main issue. When I get into the folder, I can't seem to see the bundled files there. See imagine below for clarification
Could you share your whole build log from the terminal as a text (not as an image)?
Here it is
Note: The log below is for the latest ReactNative version (i.e 0.70.1). So even the latest version doesn't build apps for release. It builds for debug.
Moving into the android directory with cd android
and building release version with ./gradlew buildRelease
gives the following:
> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Welcome to Metro v0.72.3
Fast - Scalable - Integrated
info Writing bundle output to:, /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle
info Writing sourcemap output to:, /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 1 asset files
info Done copying assets
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:2030:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow"
return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true;
^~~~~~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:5831:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
setTimeout(function () {
^~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:4179:23: warning: the variable "clearTimeout" was not declared in anonymous function " 89#"
cancelTimeout = clearTimeout;
^~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:8826:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 89#"
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:8844:146: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 118#"
null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2]).UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args));
^~~~~~~~~~~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:9807:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13343:12: warning: the variable "fetch" was not declared in anonymous function " 290#"
fetch: fetch,
^~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13344:14: warning: the variable "Headers" was not declared in anonymous function " 290#"
Headers: Headers,
^~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13345:14: warning: the variable "Request" was not declared in anonymous function " 290#"
Request: Request,
^~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13346:15: warning: the variable "Response" was not declared in anonymous function " 290#"
Response: Response
^~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13522:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13567:36: warning: the variable "Blob" was not declared in anonymous function " 301#"
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
^~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13569:40: warning: the variable "FormData" was not declared in anonymous function " 301#"
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
^~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13571:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 301#"
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
^~~~~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13848:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 310#"
var xhr = new XMLHttpRequest();
^~~~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13355:76: warning: the variable "self" was not declared in anonymous function " 293#"
var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global;
^~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22407:27: warning: the variable "performance" was not declared in anonymous function " 494#"
if ("object" === typeof performance && "function" === typeof performance.now) {
^~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22433:26: warning: the variable "navigator" was not declared in anonymous function " 494#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && undefined !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling);
^~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22513:37: warning: the variable "MessageChannel" was not declared in anonymous function " 494#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~~~~~~~~~
/media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:31210:32: warning: the variable "requestAnimationFrame" was not declared in function "onUpdate"
this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~~~~~~~~~~~~~~~~~
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 1m
Moving into the android directory with
cd android
and building release version with./gradlew buildRelease
gives the following:
The problem is because you're invoking the wrong task.
You should invoke ./gradlew bundleRelease
for App bundles and ./gradlew assembleRelease
for APKs
Moving into the android directory with
cd android
and building release version with./gradlew buildRelease
gives the following:The problem is because you're invoking the wrong task.
You should invoke
./gradlew bundleRelease
for App bundles and./gradlew assembleRelease
for APKs
Is this specific to version 0.70.1 or to all versions?
Is this specific to version 0.70.1 or to all versions?
Is specific to all versions. It's actually part of the Android framework.
OK. Thanks
That is main issue. When I get into the folder, I can't seem to see the bundled files there. See imagine below for clarification
Could you share your whole build log from the terminal as a text (not as an image)?
Here it is
Note: The log below is for the latest ReactNative version (i.e 0.70.1). So even the latest version doesn't build apps for release. It builds for debug.
Moving into the android directory with
cd android
and building release version with./gradlew buildRelease
gives the following:> Task :app:bundleReleaseJsAndAssets warning: the transform cache was reset. Welcome to Metro v0.72.3 Fast - Scalable - Integrated info Writing bundle output to:, /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle info Writing sourcemap output to:, /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map info Done writing bundle output info Done writing sourcemap output info Copying 1 asset files info Done copying assets /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:2030:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow" return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true; ^~~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:5831:7: warning: the variable "setTimeout" was not declared in function "logCapturedError" setTimeout(function () { ^~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:4179:23: warning: the variable "clearTimeout" was not declared in anonymous function " 89#" cancelTimeout = clearTimeout; ^~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:8826:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 89#" if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:8844:146: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 118#" null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2]).UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); ^~~~~~~~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:9807:5: warning: the variable "setImmediate" was not declared in function "handleResolved" setImmediate(function () { ^~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13343:12: warning: the variable "fetch" was not declared in anonymous function " 290#" fetch: fetch, ^~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13344:14: warning: the variable "Headers" was not declared in anonymous function " 290#" Headers: Headers, ^~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13345:14: warning: the variable "Request" was not declared in anonymous function " 290#" Request: Request, ^~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13346:15: warning: the variable "Response" was not declared in anonymous function " 290#" Response: Response ^~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13522:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer" var reader = new FileReader(); ^~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13567:36: warning: the variable "Blob" was not declared in anonymous function " 301#" } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { ^~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13569:40: warning: the variable "FormData" was not declared in anonymous function " 301#" } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { ^~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13571:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 301#" } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { ^~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13848:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 310#" var xhr = new XMLHttpRequest(); ^~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13355:76: warning: the variable "self" was not declared in anonymous function " 293#" var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global; ^~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22407:27: warning: the variable "performance" was not declared in anonymous function " 494#" if ("object" === typeof performance && "function" === typeof performance.now) { ^~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22433:26: warning: the variable "navigator" was not declared in anonymous function " 494#" "undefined" !== typeof navigator && undefined !== navigator.scheduling && undefined !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); ^~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22513:37: warning: the variable "MessageChannel" was not declared in anonymous function " 494#" };else if ("undefined" !== typeof MessageChannel) { ^~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:31210:32: warning: the variable "requestAnimationFrame" was not declared in function "onUpdate" this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); ^~~~~~~~~~~~~~~~~~~~~ Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 1m
I am able to build apk with the assembleRelease command but getting these warnings. So can someone please explain what are all these warnings?
I am using "react": "18.2.0", "react-native": "0.71.4",
@maxjerry0107 I have removed "react-native-svg" but still showing warning. you have any solution?
Moving into the android directory with
cd android
and building release version with./gradlew buildRelease
gives the following:The problem is because you're invoking the wrong task.
You should invoke
./gradlew bundleRelease
for App bundles and./gradlew assembleRelease
for APKs
ndroid\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:3373:18: warning: the variable "DebuggerInternal" was not declared in function "shouldPauseOnThrow"
typeof DebuggerInternal !== 'undefined' &&
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:4999:108: warning: the variable "nativeFabricUIManager" was not declared in function "onChange"
...lInstanceHandle ? (from && nativeFabricUIManager.setIsJSResponder(from.sta...
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:9361:30: warning: the variable "REACT_DEVTOOLS_GLOBAL_HOOK" was not declared in anonymous function " 164#"
if ("undefined" !== typeof REACT_DEVTOOLS_GLOBAL_HOOK__) {
^~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:11730:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16014:12: warning: the variable "fetch" was not declared in anonymous function " 401#"
fetch: fetch,
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16015:14: warning: the variable "Headers" was not declared in anonymous function " 401#"
Headers: Headers,
^~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16016:14: warning: the variable "Request" was not declared in anonymous function " 401#"
Request: Request,
^~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16017:15: warning: the variable "Response" was not declared in anonymous function " 401#"
Response: Response
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16174:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16225:36: warning: the variable "Blob" was not declared in anonymous function " 412#"
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16227:40: warning: the variable "FormData" was not declared in anonymous function " 412#"
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16229:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 412#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
^~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16348:26: warning: the variable "AbortController" was not declared in anonymous function " 418#"
var ctrl = new AbortController();
^~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16482:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 422#"
var xhr = new XMLHttpRequest();
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16027:71: warning: the variable "self" was not declared in anonymous function " 404#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26229:27: warning: the variable "performance" was not declared in anonymous function " 687#"
if ("object" === typeof performance && "function" === typeof performance.no...
^~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26252:26: warning: the variable "navigator" was not declared in anonymous function " 687#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26362:37: warning: the variable "MessageChannel" was not declared in anonymous function " 687#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26377:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 687#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:35621:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
... this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:61351:19: warning: the variable "_getAnimationTimestamp" was not declared in function "handleAndFlushAnimationFrame 1#"
var now = _getAnimationTimestamp();
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:61474:11: warning: the variable "_WORKLET" was not declared in function "runOnRuntime"
if (_WORKLET) {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:61479:18: warning: the variable "_scheduleOnRuntime" was not declared in anonymous function " 1614#"
return scheduleOnRuntime(workletRuntime, (0, $$_REQUIRE(_dependen...
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:61828:114: warning: the variable "location" was not declared in function "registerSensor 1#"
...E(_dependencyMap[4]).isWeb)() && location.protocol !== 'https:' ? ' Make s...
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:62350:26: warning: Direct call to eval(), but lexical scope is not supported.
workletFun = eval('(' + initData.code + '\n)');
^~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:62646:20: warning: the variable "_makeShareableClone" was not declared in function "cloneRecursive"
return _makeShareableClone(value);
^~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:63211:9: warning: the variable "_scheduleOnJS" was not declared in anonymous function " 1688#"
_scheduleOnJS(fun, args.length > 0 ?
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:63951:9: warning: the variable "_notifyAboutProgress" was not declared in anonymous function " 1716#"
_notifyAboutProgress(tag, sharedValue.value, isSharedTransition);
^~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:63969:7: warning: the variable "_notifyAboutEnd" was not declared in function "stopObservingProgress"
_notifyAboutEnd(tag, removeView);
^~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:69285:24: warning: the variable "MutationObserver" was not declared in function "addHTMLMutationObserver"
var observer = new MutationObserver(function (mutationsList) {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:71242:41: warning: the variable "getComputedStyle" was not declared in function "fixElementPosition"
...entBorderTopValue = parseInt(getComputedStyle(parent).borderTopWidth);
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:71412:45: warning: the variable "structuredClone" was not declared in function "handleLayoutTransition"
...ormCopy = existingTransform ? structuredClone(existingTransform) : [];
^~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:72073:11: warning: the variable "_updatePropsFabric" was not declared in function "flush"
_updatePropsFabric(operations);
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:72101:11: warning: the variable "_updatePropsPaper" was not declared in function "flush 1#"
_updatePropsPaper(operations);
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:81594:5: warning: the variable "jest" was not declared in function "beforeTest"
jest.useFakeTimers();
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:81741:7: warning: the variable "_dispatchCommandFabric" was not declared in function "dispatchCommandFabric"
_dispatchCommandFabric(shadowNodeWrapper, commandName, args);
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:81758:7: warning: the variable "_dispatchCommandPaper" was not declared in function "dispatchCommandPaper"
_dispatchCommandPaper(viewTag, commandName, args);
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:81860:22: warning: the variable "_measureFabric" was not declared in function "measureFabric"
var measured = _measureFabric(viewTag);
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:81892:22: warning: the variable "_measurePaper" was not declared in function "measurePaper"
var measured = _measurePaper(viewTag);
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:81982:7: warning: the variable "_scrollToPaper" was not declared in function "scrollToPaper"
_scrollToPaper(viewTag, x, y, animated);
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:82032:7: warning: the variable "_setGestureState" was not declared in function "setGestureStateNative"
_setGestureState(handlerTag, newState);
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:84023:7: warning: the variable "_removeFromPropsRegistry" was not declared in function "removeFromPropsRegistryOnUI"
removeFromPropsRegistry(viewTags);
^~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97140:5: warning: the property "Delete" was set multiple times in the object definition.
Delete: $$_REQUIRE(dependencyMap[145]),
^~~~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97137:5: note: The first definition was here.
Delete: $$_REQUIRE(dependencyMap[145]),
^~~~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97141:5: warning: the property "Search" was set multiple times in the object definition.
Search: $$_REQUIRE(dependencyMap[139]),
^~~~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97131:5: note: The first definition was here.
Search: $$_REQUIRE(dependencyMap[139]),
^~~~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97144:5: warning: the property "Add" was set multiple times in the object definition.
Add: $$_REQUIRE(dependencyMap[140]),
^~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97132:5: note: The first definition was here.
Add: $$_REQUIRE(dependencyMap[140]),
^~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97191:5: warning: the property "AddIcon" was set multiple times in the object definition.
AddIcon: $$_REQUIRE(dependencyMap[196]),
^~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97115:5: note: The first definition was here.
AddIcon: $$_REQUIRE(dependencyMap[123]),
^~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97286:5: warning: the property "UserWhite" was set multiple times in the object definition.
UserWhite: $$_REQUIRE(dependencyMap[233]),
^~~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97228:5: note: The first definition was here.
UserWhite: $$_REQUIRE(dependencyMap[233]),
^~~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97287:5: warning: the property "RefreshWhite" was set multiple times in the object definition.
RefreshWhite: $$_REQUIRE(dependencyMap[234]),
^~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97229:5: note: The first definition was here.
RefreshWhite: $$_REQUIRE(dependencyMap[234]),
^~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97290:5: warning: the property "RefreshIcon" was set multiple times in the object definition.
RefreshIcon: $$_REQUIRE(dependencyMap[279]),
^~~~~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:97050:5: note: The first definition was here.
RefreshIcon: $$_REQUIRE(_dependencyMap[60]),
I am able to build apk with the gradlew assembleRelease command but getting these warnings. can you help me
That is main issue. When I get into the folder, I can't seem to see the bundled files there. See imagine below for clarification
Could you share your whole build log from the terminal as a text (not as an image)?
Here it is Note: The log below is for the latest ReactNative version (i.e 0.70.1). So even the latest version doesn't build apps for release. It builds for debug. Moving into the android directory with
cd android
and building release version with./gradlew buildRelease
gives the following:> Task :app:bundleReleaseJsAndAssets warning: the transform cache was reset. Welcome to Metro v0.72.3 Fast - Scalable - Integrated info Writing bundle output to:, /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle info Writing sourcemap output to:, /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/intermediates/sourcemaps/react/release/index.android.bundle.packager.map info Done writing bundle output info Done writing sourcemap output info Copying 1 asset files info Done copying assets /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:2030:23: warning: the variable "DebuggerInternal" was not declared in function "__shouldPauseOnThrow" return typeof DebuggerInternal !== 'undefined' && DebuggerInternal.shouldPauseOnThrow === true; ^~~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:5831:7: warning: the variable "setTimeout" was not declared in function "logCapturedError" setTimeout(function () { ^~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:4179:23: warning: the variable "clearTimeout" was not declared in anonymous function " 89#" cancelTimeout = clearTimeout; ^~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:8826:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK__" was not declared in anonymous function " 89#" if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:8844:146: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 118#" null != handle._nativeTag && (null != handle._internalInstanceHandle ? (handle = handle._internalInstanceHandle.stateNode, null != handle && nativeFabricUIManager.dispatchCommand(handle.node, command, args)) : _$$_REQUIRE(_dependencyMap[2]).UIManager.dispatchViewManagerCommand(handle._nativeTag, command, args)); ^~~~~~~~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:9807:5: warning: the variable "setImmediate" was not declared in function "handleResolved" setImmediate(function () { ^~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13343:12: warning: the variable "fetch" was not declared in anonymous function " 290#" fetch: fetch, ^~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13344:14: warning: the variable "Headers" was not declared in anonymous function " 290#" Headers: Headers, ^~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13345:14: warning: the variable "Request" was not declared in anonymous function " 290#" Request: Request, ^~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13346:15: warning: the variable "Response" was not declared in anonymous function " 290#" Response: Response ^~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13522:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer" var reader = new FileReader(); ^~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13567:36: warning: the variable "Blob" was not declared in anonymous function " 301#" } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { ^~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13569:40: warning: the variable "FormData" was not declared in anonymous function " 301#" } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { ^~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13571:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 301#" } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { ^~~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13848:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 310#" var xhr = new XMLHttpRequest(); ^~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:13355:76: warning: the variable "self" was not declared in anonymous function " 293#" var global = typeof globalThis !== 'undefined' && globalThis || typeof self !== 'undefined' && self || typeof global !== 'undefined' && global; ^~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22407:27: warning: the variable "performance" was not declared in anonymous function " 494#" if ("object" === typeof performance && "function" === typeof performance.now) { ^~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22433:26: warning: the variable "navigator" was not declared in anonymous function " 494#" "undefined" !== typeof navigator && undefined !== navigator.scheduling && undefined !== navigator.scheduling.isInputPending && navigator.scheduling.isInputPending.bind(navigator.scheduling); ^~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:22513:37: warning: the variable "MessageChannel" was not declared in anonymous function " 494#" };else if ("undefined" !== typeof MessageChannel) { ^~~~~~~~~~~~~~ /media/isaiah/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/Mobile Apps/ReactNative Apps/QuizApp/android/app/build/generated/assets/react/release/index.android.bundle:31210:32: warning: the variable "requestAnimationFrame" was not declared in function "onUpdate" this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this)); ^~~~~~~~~~~~~~~~~~~~~ Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD SUCCESSFUL in 1m
I am able to build apk with the assembleRelease command but getting these warnings. So can someone please explain what are all these warnings?
I am using "react": "18.2.0", "react-native": "0.71.4",
Hi akash0912, Above warnings you have fixed? have any solution?
I also experienced the same warnings and failed my build because of the heap size. Can you please update the documentation on how to properly integrate with existing android native app? been 2 week and still no solution. I have multi module android app with kotlin DSL.
PS C:\Users\Elu Lozano\Desktop\esp8266\temporizador\Tempor\android> ./gradlew assembleRelease
Task :app:createBundleReleaseJsAndAssets debug Reading Metro config from C:\Users\Elu Lozano\Desktop\esp8266\temporizador\Tempor\metro.config.js warning: the transform cache was reset. Welcome to Metro v0.80.8 Fast - Scalable - Integrated
info Writing bundle output to:, android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle
info Writing sourcemap output to:, android\app\build\intermediates\sourcemaps\react\release\index.android.bundle.packager.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 1 asset files
info Done copying assets
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:1322:18: warning: the variable "DebuggerInternal" was not declared in function "shouldPauseOnThrow"
typeof DebuggerInternal !== 'undefined' &&
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:6583:7: warning: the variable "setTimeout" was not declared in function "logCapturedError"
setTimeout(function () {
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:4693:31: warning: the variable "nativeFabricUIManager" was not declared in anonymous function " 130#"
var _nativeFabricUIManage = nativeFabricUIManager,
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:4721:21: warning: the variable "clearTimeout" was not declared in anonymous function " 130#"
cancelTimeout = clearTimeout;
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:9351:30: warning: the variable "__REACT_DEVTOOLS_GLOBAL_HOOK" was not declared in anonymous function " 130#"
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
^~~~~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:11767:5: warning: the variable "setImmediate" was not declared in function "handleResolved"
setImmediate(function () {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16038:12: warning: the variable "fetch" was not declared in anonymous function " 366#"
fetch: fetch,
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16039:14: warning: the variable "Headers" was not declared in anonymous function " 366#"
Headers: Headers,
^~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16040:14: warning: the variable "Request" was not declared in anonymous function " 366#"
Request: Request,
^~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16041:15: warning: the variable "Response" was not declared in anonymous function " 366#"
Response: Response
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16198:24: warning: the variable "FileReader" was not declared in function "readBlobAsArrayBuffer"
var reader = new FileReader();
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16249:36: warning: the variable "Blob" was not declared in anonymous function " 377#"
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16251:40: warning: the variable "FormData" was not declared in anonymous function " 377#"
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16253:44: warning: the variable "URLSearchParams" was not declared in anonymous function " 377#"
...e if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body...
^~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16372:26: warning: the variable "AbortController" was not declared in anonymous function " 383#"
var ctrl = new AbortController();
^~~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16506:23: warning: the variable "XMLHttpRequest" was not declared in anonymous function " 387#"
var xhr = new XMLHttpRequest();
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:16051:71: warning: the variable "self" was not declared in anonymous function " 369#"
...undefined' && globalThis || typeof self !== 'undefined' && self ||
^~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26316:27: warning: the variable "performance" was not declared in anonymous function " 682#"
if ("object" === typeof performance && "function" === typeof performance.no...
^~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26339:26: warning: the variable "navigator" was not declared in anonymous function " 682#"
"undefined" !== typeof navigator && undefined !== navigator.scheduling && u...
^~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26449:37: warning: the variable "MessageChannel" was not declared in anonymous function " 682#"
};else if ("undefined" !== typeof MessageChannel) {
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:26464:34: warning: the variable "nativeRuntimeScheduler" was not declared in anonymous function " 682#"
... = "undefined" !== typeof nativeRuntimeScheduler ? nativeRuntimeScheduler....
^~~~~~
android\app\build\generated\assets\createBundleReleaseJsAndAssets\index.android.bundle:35561:34: warning: the variable "requestAnimationFrame" was not declared in function "start 9#"
... this._animationFrame = requestAnimationFrame(this.onUpdate.bind(this));
^~~~~
BUILD SUCCESSFUL in 2m 19s 44 actionable tasks: 22 executed, 22 up-to-date Yo quiero realizar una solicitud post a un http://... , que es un modulo esp01s, prendido como punto de acceso, pero mi app funciona bien en desarollo, que cuando obtengo el app ya no sirbe en protocolo http
+1
+1
+1, any solution for this?
+1
Facing the same issue in react-native@0.74.5
yep, in react-native@0.75.3 too
Description
After I created my project and build bundle release twice, I started encountering this issue of not generating a bundled app for release.
I followed the steps of first
cd android
Then I do:./gradlew buildRelease
It finishes without any error but doesn't bundle the app at all
Version
0.69.3
Output of
npx react-native info
Fetching system and libraries information... System: OS: Linux 5.15 Deepin 20.6 20.6 CPU: (4) x64 Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz Memory: 6.00 GB / 15.51 GB Shell: 5.0.3 - /bin/bash Binaries: Node: 16.16.0 - ~/.config/nvm/versions/node/v16.16.0/bin/node Yarn: Not Found npm: 8.11.0 - ~/.config/nvm/versions/node/v16.16.0/bin/npm Watchman: 20220821.200817.0 - /usr/local/bin/watchman SDKs: Android SDK: Not Found IDEs: Android Studio: Not Found Languages: Java: 18.0.2 - /home/user/Development/jdk-18.0.2/bin/javac npmPackages: @react-native-community/cli: Not Found react: Not Found react-native: Not Found npmGlobalPackages: react-native: Not Found
NOTE
I have Android Studio installed on my machine and followed the steps to add to PATH as documented in the official react-native website. But when I
npx react-native info
it keeps giving the Android SDK: Not Found. However,npx react-native start
andnpx react-native run-android
are both working fine and even working with the emulator perfectly.Steps to reproduce
Create a new app on Deepin 2.6 Try to build bundle (aab) release. If you can build the bundle release (aab) subsequently then help me with how you got that done
Snack, code example, screenshot, or link to a repository
info Writing bundle output to:, /media/user/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/ReactNative Apps/APP/android/app/build/generated/assets/react/release/index.android.bundle info Writing sourcemap output to:, /media/user/5230AE8E30AE789D/SHARED_STORAGE/DEV-APPS/ReactNative Apps/APP/android/app/build/generated/sourcemaps/react/release/index.android.bundle.map info Done writing bundle output info Done writing sourcemap output