software-mansion / react-native-ide

VSCode extension that turns your editor into a fully fledged IDE for React Native and Expo.
https://ide.swmansion.com
Other
798 stars 28 forks source link

Build success but project not running in device #338

Open favaztechcurve opened 2 months ago

favaztechcurve commented 2 months ago

*Description A clear and concise description of what the bug is.

Environment

LukasMod commented 2 months ago

I have same problem, bare rn project with few years now. After selecting Google Pixel 7 it starts building and last log is:

2024-06-04 07:34:37.066 [info] 
2024-06-04 07:34:37.066 [info] BUILD SUCCESSFUL in 4m 10s
2024-06-04 07:34:37.066 [info] 1688 actionable tasks: 1423 executed, 265 up-to-date

But in IDE there is only message with "Cannot run project. Open build logs to find out what went wrong." which navigate to same successful logs.

Our project is using multiple product flavors in /app/build.gradle.

"react-native": "^0.73.6", vsc: 1.89.1 rn ide: v0.0.14

EDIT:

After I add /.vscode/launch.json as in docs and specify flavor it is working on android

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "react-native-ide",
            "request": "launch",
            "name": "React Native IDE panel",
            "android": {
                "buildType": "debug",
                "productFlavor": "pl"
            },
        }
    ]
}
jakub-gonet commented 2 months ago

@favaztechcurve Can you please provide us some logs? It's not debuggable by this description only.

@LukasMod Can you please show the logs from the React Native IDE tab? View -> Output -> React Native IDE tab.

LukasMod commented 2 months ago

@jakub-gonet

As I said, it worked after I add launch.json. These are logs from success build:

2024-06-12 17:46:15.818 [info] Found app root folder: /Users/user/CODE/companyBrand/app-mobile
2024-06-12 17:46:26.918 [info] Setup dependency checker listeners.
2024-06-12 17:46:26.918 [info] Setup dependency installer listeners.
2024-06-12 17:46:26.918 [info] Launching devtools
2024-06-12 17:46:26.918 [info] Launching metro
2024-06-12 17:46:26.927 [info] Devtools started on port 64151
2024-06-12 17:46:26.969 [info] Selected device is ready
2024-06-12 17:46:27.076 [info] Received checkNodejsInstalled command.
2024-06-12 17:46:27.077 [info] Received checkAndroidEmulatorInstalled command.
2024-06-12 17:46:27.077 [info] Android Emulator installed: true
2024-06-12 17:46:27.079 [info] Received checkXcodeInstalled command.
2024-06-12 17:46:27.081 [info] Received checkCocoaPodsInstalled command.
2024-06-12 17:46:27.082 [info] Received checkReactNativeInstalled command.
2024-06-12 17:46:27.082 [info] Check react-native module version. Version found: 0.73.8. Minimum version: 0.71.0
2024-06-12 17:46:27.082 [info] Minimum React Native version installed: true
2024-06-12 17:46:27.082 [info] Received checkExpoInstalled command.
2024-06-12 17:46:27.082 [info] Check expo module version. Module not found.
2024-06-12 17:46:27.082 [info] Minimum Expo version installed: false
2024-06-12 17:46:27.082 [info] Received checkPodsInstalled command.
2024-06-12 17:46:27.082 [info] Check pods in /Users/user/CODE/companyBrand/app-mobile/ios /Users/user/CODE/companyBrand/app-mobile
2024-06-12 17:46:27.082 [info] Project pods installed: true
2024-06-12 17:46:27.092 [info] Nodejs installed: true
2024-06-12 17:46:27.339 [info] Xcode Command Line Tools installed: true
2024-06-12 17:46:27.599 [info] Metro info Welcome to React Native v0.73
2024-06-12 17:46:27.603 [info] Metro info Starting dev server on port 0...
2024-06-12 17:46:27.621 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"}
2024-06-12 17:46:27.622 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false}
2024-06-12 17:46:27.627 [info] Metro {"type":"RNIDE_initialize_done","port":64154}
2024-06-12 17:46:27.627 [info] Metro started on port 64154
2024-06-12 17:46:27.629 [info] Metro & devtools ready
2024-06-12 17:46:27.640 [info] Emulator output INFO    | Android emulator version 32.1.15.0 (build_id 10696886) (CL:N/A)
2024-06-12 17:46:27.640 [info] Emulator output INFO    | Found systemPath /Users/user/Library/Android/sdk/system-images/android-33/google_apis/arm64-v8a
2024-06-12 17:46:28.325 [info] CocoaPods installed: true
2024-06-12 17:46:28.568 [info] Metro {"type":"dep_graph_loaded"}
2024-06-12 17:46:28.568 [info] Metro {"type":"transformer_load_started"}
2024-06-12 17:46:28.637 [info] Metro {"type":"transformer_load_done"}
2024-06-12 17:46:28.637 [info] Metro {"type":"initialize_done","port":0}
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Storing crashdata in: /tmp/android-user/emu-crash.db, detection is enabled
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int) ((null):0, (null))
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_posture_selection_dialog() ((null):0, (null))
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_resizable_requested(PresetEmulatorSizeType) ((null):0, (null))
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_resizable_dialog() ((null):0, (null))
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Crash reports will be automatically uploaded to: https://clients2.google.com/cr/report
2024-06-12 17:46:29.092 [info] Emulator output INFO    | added library /Users/user/Library/Android/sdk/emulator/lib64/vulkan/libvulkan.dylib
2024-06-12 17:46:29.092 [info] Emulator output INFO    | Sending adb public key [key]
2024-06-12 17:46:29.167 [info] Emulator output INFO    | Started GRPC server at 127.0.0.1:8554, security: Local, auth: +token
2024-06-12 17:46:29.167 [info] Emulator output INFO    | Advertising in: /Users/user/Library/Caches/TemporaryItems/avd/running/pid_40079.ini
2024-06-12 17:46:29.168 [info] Parsing ini file /Users/user/Library/Caches/TemporaryItems/avd/running/pid_40079.ini
2024-06-12 17:46:29.183 [info] Emulator output INFO    | Setting display: 0 configuration to: 1080x2400, dpi: 420x420
2024-06-12 17:46:40.293 [info] Starting Android build
2024-06-12 17:46:42.260 [info] Subprocess /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 wait-for-device shell while [[ -z $(getprop sys.boot_completed) ]]; do sleep 0.5; done; input keyevent 82 produced error output: * daemon not running; starting now at tcp:5037
* daemon started successfully
2024-06-12 17:46:44.016 [info] Emulator output INFO    | Boot completed in 16150 ms
2024-06-12 17:46:44.016 [info] Emulator output INFO    | Increasing screen off timeout, logcat buffer size to 2M.
2024-06-12 17:46:44.017 [info] Emulator output INFO    | Revoking microphone permissions for Google App.
2024-06-12 17:48:18.895 [info] Android build sucessful
2024-06-12 17:48:21.744 [info] Subprocess /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell monkey -p com.company -c android.intent.category.LAUNCHER 1 produced error output: args: [-p, com.company, -c, android.intent.category.LAUNCHER, 1]
arg: "-p"
arg: "com.company"
arg: "-c"
arg: "android.intent.category.LAUNCHER"
arg: "1"
data="com.company"
data="android.intent.category.LAUNCHER"
2024-06-12 17:48:21.752 [info] Launch preview /Users/user/.vscode/extensions/swmansion.react-native-ide-0.0.14-darwin-arm64/dist/sim-server android,emulator-5554
2024-06-12 17:48:21.752 [info] Will wait for app ready and for preview
2024-06-12 17:48:22.014 [info] Preview server: Server running...
2024-06-12 17:48:22.014 [info] Preview server: Dropped: 0 over 1718207301.99 sec - recv 1
2024-06-12 17:48:22.041 [info] Preview server ready http://localhost:65417/stream.mjpeg
2024-06-12 17:48:22.041 [info] Preview server: http://localhost:65417/stream.mjpeg
2024-06-12 17:48:23.008 [info] Preview server: Dropped: 0 over 1.01 sec - recv 58
2024-06-12 17:48:25.161 [info] Preview server: Dropped: 0 over 1.11 sec - recv 7
2024-06-12 17:48:26.543 [info] Preview server: Dropped: 0 over 1.38 sec - recv 1
2024-06-12 17:48:27.563 [info] Preview server: Dropped: 0 over 1.02 sec - recv 1
2024-06-12 17:48:28.743 [info] Preview server: Dropped: 0 over 1.18 sec - recv 12
2024-06-12 17:48:29.751 [info] Preview server: Dropped: 0 over 1.01 sec - recv 34
2024-06-12 17:48:30.825 [info] Preview server: Dropped: 0 over 1.08 sec - recv 22
2024-06-12 17:48:31.876 [info] Preview server: Dropped: 0 over 1.04 sec - recv 3
2024-06-12 17:48:32.930 [info] Preview server: Dropped: 0 over 1.06 sec - recv 6
2024-06-12 17:48:35.119 [info] Preview server: Dropped: 0 over 2.19 sec - recv 3
2024-06-12 17:48:37.916 [info] Preview server: Dropped: 0 over 2.80 sec - recv 6
2024-06-12 17:48:39.273 [info] Preview server: Dropped: 0 over 1.35 sec - recv 4
2024-06-12 17:48:40.613 [info] Preview server: Dropped: 0 over 1.35 sec - recv 2
2024-06-12 17:48:41.803 [info] Preview server: Dropped: 0 over 1.18 sec - recv 3
2024-06-12 17:48:43.226 [info] Preview server: Dropped: 0 over 1.43 sec - recv 4
2024-06-12 17:48:44.226 [info] Preview server: Dropped: 0 over 1.01 sec - recv 3
2024-06-12 17:48:44.749 [info] Metro {"buildID":"2","type":"bundle_build_done"}
2024-06-12 17:48:45.581 [info] Preview server: Dropped: 0 over 1.35 sec - recv 4
2024-06-12 17:48:46.455 [info] Devtools client connected
2024-06-12 17:49:06.127 [info] Preview server: Dropped: 0 over 20.54 sec - recv 2
2024-06-12 17:49:07.342 [info] Preview server: Dropped: 0 over 1.22 sec - recv 1
2024-06-12 17:49:07.880 [info] App ready
2024-06-12 17:49:07.885 [info] App and preview ready, moving on...
2024-06-12 17:49:08.943 [info] Conencted to debbuger, moving on...
2024-06-12 17:49:08.943 [info] Device session started
2024-06-12 17:49:10.692 [info] Metro {"buildID":"5","type":"bundle_build_done"}
2024-06-12 17:49:11.669 [info] Preview server: Dropped: 0 over 4.33 sec - recv 18
2024-06-12 17:49:13.369 [info] Preview server: Dropped: 0 over 1.70 sec - recv 5
2024-06-12 17:49:18.643 [info] Preview server: Dropped: 0 over 5.28 sec - recv 2
favaztechcurve commented 2 months ago

I have same problem, bare rn project with few years now. After selecting Google Pixel 7 it starts building and last log is:

2024-06-04 07:34:37.066 [info] 
2024-06-04 07:34:37.066 [info] BUILD SUCCESSFUL in 4m 10s
2024-06-04 07:34:37.066 [info] 1688 actionable tasks: 1423 executed, 265 up-to-date

But in IDE there is only message with "Cannot run project. Open build logs to find out what went wrong." which navigate to same successful logs.

Our project is using multiple product flavors in /app/build.gradle.

"react-native": "^0.73.6", vsc: 1.89.1 rn ide: v0.0.14

EDIT:

After I add /.vscode/launch.json as in docs and specify flavor it is working on android

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "react-native-ide",
            "request": "launch",
            "name": "React Native IDE panel",
            "android": {
                "buildType": "debug",
                "productFlavor": "pl"
            },
        }
    ]
}

2024-06-13 10:13:44.777 [info] Found app root folder: /Users/favaz/techcurve/superstar 2024-06-13 10:13:50.147 [info] Setup dependency checker listeners. 2024-06-13 10:13:50.147 [info] Setup dependency installer listeners. 2024-06-13 10:13:50.147 [info] Launching devtools 2024-06-13 10:13:50.147 [info] Launching metro 2024-06-13 10:13:50.158 [info] Devtools started on port 50541 2024-06-13 10:13:50.194 [info] Selected device is ready 2024-06-13 10:13:50.289 [info] Received checkNodejsInstalled command. 2024-06-13 10:13:50.289 [info] Received checkAndroidEmulatorInstalled command. 2024-06-13 10:13:50.289 [info] Android Emulator installed: true 2024-06-13 10:13:50.291 [info] Received checkXcodeInstalled command. 2024-06-13 10:13:50.292 [info] Received checkCocoaPodsInstalled command. 2024-06-13 10:13:50.293 [info] Received checkReactNativeInstalled command. 2024-06-13 10:13:50.293 [info] Check react-native module version. Version found: 0.71.14. Minimum version: 0.71.0 2024-06-13 10:13:50.293 [info] Minimum React Native version installed: true 2024-06-13 10:13:50.293 [info] Received checkExpoInstalled command. 2024-06-13 10:13:50.293 [info] Check expo module version. Module not found. 2024-06-13 10:13:50.293 [info] Minimum Expo version installed: false 2024-06-13 10:13:50.294 [info] Received checkPodsInstalled command. 2024-06-13 10:13:50.294 [info] Check pods in /Users/favaz/techcurve/superstar/ios /Users/favaz/techcurve/superstar 2024-06-13 10:13:50.294 [info] Project pods installed: false 2024-06-13 10:13:50.311 [info] Nodejs installed: true 2024-06-13 10:13:50.520 [info] Xcode Command Line Tools installed: true 2024-06-13 10:13:50.587 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"} 2024-06-13 10:13:50.587 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false} 2024-06-13 10:13:50.615 [info] Metro {"type":"RNIDE_initialize_done","port":50545} 2024-06-13 10:13:50.615 [info] Metro started on port 50545 2024-06-13 10:13:50.617 [info] Metro & devtools ready 2024-06-13 10:13:50.634 [info] Emulator output INFO | Storing crashdata in: /tmp/android-favaz/emu-crash-34.2.13.db, detection is enabled for process: 18930 2024-06-13 10:13:50.634 [info] Emulator output INFO | Android emulator version 34.2.13.0 (build_id 11772612) (CL:N/A) 2024-06-13 10:13:50.634 [info] Emulator output INFO | Found systemPath /Users/favaz/Library/Android/sdk/system-images/android-34/google_apis/arm64-v8a 2024-06-13 10:13:50.777 [info] Metro {"type":"watcher_status","status":{"type":"watchman_warning","warning":"Recrawled this watch 13 times, most recently because:\nMustScanSubDirs UserDroppedTo resolve, please review the information on\nhttps://facebook.github.io/watchman/docs/troubleshooting.html#recrawl\nTo clear this warning, run:\nwatchman watch-del '/Users/favaz/techcurve/superstar' ; watchman watch-project '/Users/favaz/techcurve/superstar'\n","command":"watch-project"}} 2024-06-13 10:13:50.939 [info] Metro {"type":"watcher_status","status":{"type":"watchman_warning","warning":"Recrawled this watch 13 times, most recently because:\nMustScanSubDirs UserDroppedTo resolve, please review the information on\nhttps://facebook.github.io/watchman/docs/troubleshooting.html#recrawl\nTo clear this warning, run:\nwatchman watch-del '/Users/favaz/techcurve/superstar' ; watchman watch-project '/Users/favaz/techcurve/superstar'\n","command":"query"}} 2024-06-13 10:13:51.164 [info] Metro {"type":"dep_graph_loaded"} 2024-06-13 10:13:51.164 [info] Metro {"type":"transformer_load_started"} 2024-06-13 10:13:51.224 [info] Metro {"type":"transformer_load_done"} 2024-06-13 10:13:51.224 [info] Metro {"type":"initialize_done","port":0} 2024-06-13 10:13:51.229 [info] Emulator output INFO | Storing crashdata in: /tmp/android-favaz/emu-crash-34.2.13.db, detection is enabled for process: 18930 2024-06-13 10:13:51.229 [info] Emulator output INFO | Duplicate loglines will be removed, if you wish to see each individual line launch with the -log-nofilter flag. 2024-06-13 10:13:51.229 [info] Emulator output INFO | Increasing RAM size to 2048MB 2024-06-13 10:13:51.411 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_posture_requested(int) ((null):0, (null)) 2024-06-13 10:13:51.411 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_posture_selection_dialog() ((null):0, (null)) 2024-06-13 10:13:51.411 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_new_resizable_requested(PresetEmulatorSizeType) ((null):0, (null)) 2024-06-13 10:13:51.411 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_dismiss_resizable_dialog() ((null):0, (null)) 2024-06-13 10:13:51.411 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_sleep_timer_done() ((null):0, (null)) 2024-06-13 10:13:51.411 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_unfold_timer_done() ((null):0, (null)) 2024-06-13 10:13:51.442 [info] Emulator output library_mode host gpu mode host 2024-06-13 10:13:51.442 [info] Emulator output INFO | Initializing hardware OpenGLES emulation support 2024-06-13 10:13:51.617 [info] Emulator output android_startOpenglesRenderer: gpu infoI0613 10:13:51.617580 3e8fac0 HealthMonitor.cpp:279] HealthMonitor disabled. 2024-06-13 10:13:51.652 [info] Emulator output createGlobalVkEmulation:995 Selecting Vulkan device: SwiftShader Device (LLVM 10.0.0) 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697891 3e8fac0 VkCommonOperations.cpp:1276] Initializing VkEmulation features: 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697915 3e8fac0 VkCommonOperations.cpp:1277] glInteropSupported: false 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697918 3e8fac0 VkCommonOperations.cpp:1278] useDeferredCommands: true 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697919 3e8fac0 VkCommonOperations.cpp:1280] createResourceWithRequirements: true 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697921 3e8fac0 VkCommonOperations.cpp:1281] useVulkanComposition: false 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697923 3e8fac0 VkCommonOperations.cpp:1282] useVulkanNativeSwapchain: false 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697925 3e8fac0 VkCommonOperations.cpp:1283] enable guestRenderDoc: false 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697926 3e8fac0 VkCommonOperations.cpp:1284] ASTC LDR emulation mode: 2 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697928 3e8fac0 VkCommonOperations.cpp:1285] enable ETC2 emulation: true 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697929 3e8fac0 VkCommonOperations.cpp:1286] enable Ycbcr emulation: false 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697931 3e8fac0 VkCommonOperations.cpp:1287] guestUsesAngle: false 2024-06-13 10:13:51.698 [info] Emulator output I0613 10:13:51.697932 3e8fac0 VkCommonOperations.cpp:1288] useDedicatedAllocations: false 2024-06-13 10:13:51.699 [info] Emulator output I0613 10:13:51.699021 3e8fac0 FrameBuffer.cpp:506] Graphics Adapter Vendor Google (Apple) 2024-06-13 10:13:51.699 [info] Emulator output I0613 10:13:51.699028 3e8fac0 FrameBuffer.cpp:507] Graphics Adapter Android Emulator OpenGL ES Translator (Apple M1 Pro) 2024-06-13 10:13:51.699 [info] Emulator output I0613 10:13:51.699031 3e8fac0 FrameBuffer.cpp:508] Graphics API Version OpenGL ES 3.0 (4.1 Metal - 88) 2024-06-13 10:13:51.699 [info] Emulator output I0613 10:13:51.699032 3e8fac0 FrameBuffer.cpp:509] Graphics API Extensions GL_OES_EGL_sync GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_depth24 GL_OES_depth32 GL_OES_element_index_uint GL_OES_texture_float GL_OES_texture_float_linear GL_OES_compressed_paletted_texture GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_texture_npot GL_OES_rgb8_rgba8 GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_texture_format_BGRA8888 GL_APPLE_texture_format_BGRA8888 2024-06-13 10:13:51.699 [info] Emulator output I0613 10:13:51.699035 3e8fac0 FrameBuffer.cpp:510] Graphics Device Extensions N/A 2024-06-13 10:13:51.705 [info] Emulator output INFO | Sending adb public key [QAAAANckOyIZ8W2ttK0KK3izDvHRfvY2WFMyVThbayWZRijGBpzqYVOrjBhSx8mUSsr58/Q3xyHQjR5aB7TWWdSnwCHuCxJ4BinEmjlZLwFSlr6/X1TDzSeKtViajmE9kqEuiXKIdsIjVN8ClV4Skv5IkVj9IXnzl82pf889Hxt35CRjTjB6BeBqPnyVANpQIUMMQLMyzyLEIVyf0Yrbv0lCaF/T8XuBQqJuR+cHM4x45KslTx3YCRfyl5KDN+y6mMkw8INKwrLBEtsRqlhFkQKCKxAmYz1Sxh9Zch04ZJYVhJzX4jiKhlYx+eUJ2czatY8xCtpBugAzWjEI2s+YrEb++4CgEVukd8398z6/IIeQFAqyVvnHQ9cQKcErMpkE1J6QNLKe1wmakaR67jryBhzfrvM9mg8oUOzxgZou9W5zJr4Ck/s0Hvlyo9Zqk1qebmbjj7kkRhJmvfLk9F53vLmHT+OfXSC73EvCwJ3keHTbIv1pjaeM6i+PWa9pLC/V7aXNiSOhPmUK+Wmxte/M6e2+7zCmPBtkFB5FwKf8dCOUjPOe5C2ffkJuSI28bFgSXUq8BAKC96T+XgUE2AJU0uoOrjonM1lYWhyYutbHU7Qq+4HXw/vN3kseX+ke+EtASZ2Tta21+IbH5NTSjYrYc4UkDNDZaef7wHoAp7RdEmrdwTmE2SU+ZwEAAQA= favaz@unknown] 2024-06-13 10:13:51.928 [info] Emulator output INFO | Monitoring duration of emulator setup. 2024-06-13 10:13:51.934 [info] Emulator output INFO | Using security allow list from: /Users/favaz/Library/Android/sdk/emulator/lib/emulator_access.json 2024-06-13 10:13:51.943 [info] Emulator output INFO | The active JSON Web Key Sets can be found here: /Users/favaz/Library/Caches/TemporaryItems/avd/running/18930/jwks/b7e3193b-c276-4774-9b77-93ae49d8c384/active.jwk 2024-06-13 10:13:51.943 [info] Emulator output INFO | Scanning /Users/favaz/Library/Caches/TemporaryItems/avd/running/18930/jwks/b7e3193b-c276-4774-9b77-93ae49d8c384 for jwk keys. 2024-06-13 10:13:51.949 [info] Emulator output INFO | Started GRPC server at 127.0.0.1:8554, security: Local, auth: +token 2024-06-13 10:13:51.951 [info] Emulator output INFO | Advertising in: /Users/favaz/Library/Caches/TemporaryItems/avd/running/pid_18930.ini 2024-06-13 10:13:51.952 [info] Parsing ini file /Users/favaz/Library/Caches/TemporaryItems/avd/running/pid_18930.ini 2024-06-13 10:13:51.959 [info] Emulator output I0613 10:13:51.959377 7047000 FrameBuffer.cpp:2853] setDisplayConfigs w 1080 h 2400 dpiX 420 dpiY 420 2024-06-13 10:13:51.959 [info] Emulator output I0613 10:13:51.959403 7047000 FrameBuffer.cpp:2866] setDisplayActiveConfig 0 2024-06-13 10:13:52.094 [info] Emulator output INFO | Loading snapshot 'default_boot'... 2024-06-13 10:13:52.885 [info] Emulator output INFO | Activated packet streamer for bluetooth emulation 2024-06-13 10:13:54.042 [info] CocoaPods installed: true 2024-06-13 10:14:00.883 [info] Starting Android build 2024-06-13 10:14:03.262 [info] Emulator output INFO | Boot completed in 12446 ms 2024-06-13 10:14:03.262 [info] Emulator output INFO | Increasing screen off timeout, logcat buffer size to 2M. 2024-06-13 10:14:33.128 [info] Android build sucessful 2024-06-13 10:14:33.142 [error] Subprocess /Users/favaz/Library/Android/sdk/build-tools/34.0.0/aapt dump badging /Users/favaz/techcurve/superstar/android/app/build/outputs/apk/debug/app-debug.apk execution resulted in an error: Command failed with exit code 1: /Users/favaz/Library/Android/sdk/build-tools/34.0.0/aapt dump badging /Users/favaz/techcurve/superstar/android/app/build/outputs/apk/debug/app-debug.apk asset W 06-13 10:14:33 20369 60290] Asset path /Users/favaz/techcurve/superstar/android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1). ERROR: dump failed because assets could not be loaded 2024-06-13 10:14:33.143 [error] Couldn't start device session Command failed with exit code 1: /Users/favaz/Library/Android/sdk/build-tools/34.0.0/aapt dump badging /Users/favaz/techcurve/superstar/android/app/build/outputs/apk/debug/app-debug.apk asset W 06-13 10:14:33 20369 60290] Asset path /Users/favaz/techcurve/superstar/android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1). ERROR: dump failed because assets could not be loaded 2024-06-13 10:32:45.672 [error] Metro exited unexpectedly Command was killed with SIGKILL (Forced termination): node /Users/favaz/techcurve/superstar/node_modules/react-native/cli.js start --no-interactive --port 0 --config /Users/favaz/.vscode/extensions/swmansion.react-native-ide-0.0.14-darwin-arm64/lib/metro_config.js --customLogReporterPath /Users/favaz/.vscode/extensions/swmansion.react-native-ide-0.0.14-darwin-arm64/lib/metro_reporter.js 2024-06-13 10:32:45.672 [info] Subprocess node was terminated with SIGKILL 2024-06-13 10:32:45.812 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_rgbcSensorValueWidget_valueChanged() ((null):0, (null)) 2024-06-13 10:32:45.812 [info] Emulator output INFO | Warning: QMetaObject::connectSlotsByName: No matching signal for on_posture_valueChanged(int) ((null):0, (null)) 2024-06-13 10:32:46.124 [info] Emulator output INFO | Wait for emulator (pid 18930) 20 seconds to shutdown gracefully before kill;you can set environment variable ANDROID_EMULATOR_WAIT_TIME_BEFORE_KILL(in seconds) to change the default value (20 seconds) 2024-06-13 10:32:51.218 [info] Subprocess /Users/favaz/Library/Android/sdk/emulator/emulator was terminated with SIGKILL

cuttlas commented 2 months ago

I'm experiencing the same. the android build is successful but I get this error:

[error] Subprocess /Users/../Library/Android/sdk/build-tools/34.0.0/aapt dump badging /Users/../workspace/../android/app/build/outputs/apk/debug/app-debug.apk execution resulted in an error: Command failed with exit code 1: /Users/danielpare/Library/Android/sdk/build-tools/34.0.0/aapt dump badging /Users/../workspace/../android/app/build/outputs/apk/debug/app-debug.apk
asset W 06-14 18:42:11 67578 10707280] Asset path /Users/../workspace/../android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1).
ERROR: dump failed because assets could not be loaded
2024-06-14 18:42:11.541 [error] Couldn't start device session Command failed with exit code 1: /Users/danielpare/Library/Android/sdk/build-tools/34.0.0/aapt dump badging /Users/danielpare/workspace/everydaycheckmobile/android/app/build/outputs/apk/debug/app-debug.apk
asset W 06-14 18:42:11 67578 10707280] Asset path /Users/../workspace/../android/app/build/outputs/apk/debug/app-debug.apk is neither a directory nor file (type=1).
ERROR: dump failed because assets could not be loaded
jakub-gonet commented 1 month ago

@favaztechcurve, @cuttlas do you use custom flavors and/or build types? From logs it seems that it looks for app-debug.apk but it can't find it in the <project root>/android/app/build/outputs/apk/debug/ directory. Can you check if setting the options in the IDE doesn't help?