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
739 stars 24 forks source link

Cannot run project Open build logs to find out what went wrong. #345

Open zekoliman opened 1 month ago

zekoliman commented 1 month ago
Screenshot 2024-06-04 at 14 26 15

React Native IDE Android LOG

2024-06-04 14:22:42.862 [info] 
2024-06-04 14:22:42.862 [info] > Task :react-native-screens:compileDebugJavaWithJavac
2024-06-04 14:22:42.862 [info] 
2024-06-04 14:22:42.862 [info] > Task :react-native-screens:bundleLibCompileToJarDebug
2024-06-04 14:22:42.862 [info] > Task :react-native-screens:processDebugJavaRes
2024-06-04 14:22:42.862 [info] > Task :react-native-screens:bundleLibRuntimeToJarDebug
2024-06-04 14:22:42.862 [info] > Task :react-native-screens:extractDebugAnnotations
2024-06-04 14:22:42.862 [info] > Task :react-native-screens:mergeDebugGeneratedProguardFiles UP-TO-DATE
2024-06-04 14:22:42.862 [info] > Task :react-native-screens:mergeDebugConsumerProguardFiles UP-TO-DATE
2024-06-04 14:22:42.862 [info] Note: /Users/zekican/Desktop/repolarim/techasay/sohoApp/node_modules/react-native-screens/android/src/paper/java/com/swmansion/rnscreens/NativeScreensModuleSpec.java uses or overrides a deprecated API.
2024-06-04 14:22:42.862 [info] Note: Recompile with -Xlint:deprecation for details.
2024-06-04 14:22:42.959 [info] > Task :react-native-screens:mergeDebugJavaResource
2024-06-04 14:22:42.960 [info] > Task :react-native-screens:syncDebugLibJars
2024-06-04 14:22:42.960 [info] > Task :react-native-screens:bundleDebugAar
2024-06-04 14:22:42.960 [info] > Task :react-native-screens:assembleDebug
2024-06-04 14:22:43.758 [info] > Task :app:mergeLibDexDebug
2024-06-04 14:22:43.758 [info] > Task :app:compileDebugKotlin
2024-06-04 14:22:43.862 [info] > Task :app:compileDebugJavaWithJavac
2024-06-04 14:22:44.258 [info] > Task :app:dexBuilderDebug
2024-06-04 14:22:44.258 [info] > Task :app:processDebugJavaRes
2024-06-04 14:22:44.258 [info] > Task :app:mergeDebugGlobalSynthetics
2024-06-04 14:22:44.359 [info] > Task :app:mergeProjectDexDebug
2024-06-04 14:22:44.660 [info] > Task :app:mergeDebugJavaResource
2024-06-04 14:22:46.857 [info] > Task :app:packageDebug
2024-06-04 14:22:46.857 [info] > Task :app:createDebugApkListingFileRedirect
2024-06-04 14:22:46.857 [info] > Task :app:assembleDebug
2024-06-04 14:22:46.857 [info] 
2024-06-04 14:22:46.857 [info] BUILD SUCCESSFUL in 30s
2024-06-04 14:22:46.857 [info] 255 actionable tasks: 217 executed, 38 up-to-date

React Native IDE LOG

2024-06-04 14:20:28.339 [info] Found app root folder: /Users/zekican/Desktop/repolarim/techasay/sohoApp
2024-06-04 14:20:28.339 [info] Setup dependency checker listeners.
2024-06-04 14:20:28.339 [info] Setup dependency installer listeners.
2024-06-04 14:20:28.340 [info] Launching devtools
2024-06-04 14:20:28.340 [info] Launching metro
2024-06-04 14:20:28.361 [info] Devtools started on port 49234
2024-06-04 14:20:28.717 [info] Selected device is ready
2024-06-04 14:20:31.125 [info] Received checkNodejsInstalled command.
2024-06-04 14:20:31.127 [info] Received checkAndroidEmulatorInstalled command.
2024-06-04 14:20:31.128 [info] Android Emulator installed: true
2024-06-04 14:20:31.181 [info] Received checkXcodeInstalled command.
2024-06-04 14:20:31.196 [info] Received checkCocoaPodsInstalled command.
2024-06-04 14:20:31.198 [info] Received checkReactNativeInstalled command.
2024-06-04 14:20:31.198 [info] Check react-native module version. Version found: 0.74.0. Minimum version: 0.71.0
2024-06-04 14:20:31.198 [info] Minimum React Native version installed: true
2024-06-04 14:20:31.199 [info] Received checkExpoInstalled command.
2024-06-04 14:20:31.199 [info] Check expo module version. Module not found.
2024-06-04 14:20:31.199 [info] Minimum Expo version installed: false
2024-06-04 14:20:31.199 [info] Received checkPodsInstalled command.
2024-06-04 14:20:31.199 [info] Check pods in /Users/zekican/Desktop/repolarim/techasay/sohoApp/ios /Users/zekican/Desktop/repolarim/techasay/sohoApp
2024-06-04 14:20:31.199 [info] Project pods installed: false
2024-06-04 14:20:31.377 [info] Nodejs installed: true
2024-06-04 14:20:31.869 [info] Metro info Welcome to React Native v0.74
2024-06-04 14:20:31.869 [info] Metro info Starting dev server on port 0...
2024-06-04 14:20:31.897 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"}
2024-06-04 14:20:31.900 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false}
2024-06-04 14:20:32.334 [info] Metro {"type":"RNIDE_initialize_done","port":49248}
2024-06-04 14:20:32.335 [info] Metro started on port 49248
2024-06-04 14:20:32.338 [info] Metro & devtools ready
2024-06-04 14:20:32.352 [info] Emulator output INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
2024-06-04 14:20:32.352 [info] Emulator output INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
2024-06-04 14:20:35.014 [info] Metro info React Native v0.74.1 is now available (your project is running on v0.74.0).
2024-06-04 14:20:35.014 [info] Metro info Changelog: https://github.com/facebook/react-native/releases/tag/v0.74.1
2024-06-04 14:20:35.014 [info] Metro info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.0
2024-06-04 14:20:35.014 [info] Metro info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
2024-06-04 14:20:35.014 [info] Emulator output INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
2024-06-04 14:20:35.014 [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-04 14:20:36.618 [error] Subprocess /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save execution resulted in an error: Command failed with exit code 1: /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save
WARNING | Please update the emulator to one that supports the feature(s): SupportPixelFold
ERROR   | No initial system image for this configuration!
INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2024-06-04 14:20:36.618 [error] Couldn't start device session Command failed with exit code 1: /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save
WARNING | Please update the emulator to one that supports the feature(s): SupportPixelFold
ERROR   | No initial system image for this configuration!
INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2024-06-04 14:20:50.083 [info] Command pod --version produced error output: Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5
2024-06-04 14:20:50.083 [info] CocoaPods installed: true
2024-06-04 14:20:51.111 [info] Starting Android build
2024-06-04 14:20:51.127 [info] Metro {"type":"dep_graph_loaded"}
2024-06-04 14:20:51.127 [info] Metro {"type":"transformer_load_started"}
2024-06-04 14:20:51.322 [info] Metro {"type":"transformer_load_done"}
2024-06-04 14:20:51.322 [info] Metro {"type":"initialize_done","port":0}
2024-06-04 14:21:08.512 [info] Xcode Command Line Tools installed: true
2024-06-04 14:21:54.993 [info] Launching devtools
2024-06-04 14:21:54.993 [info] Launching metro
2024-06-04 14:21:55.000 [info] Devtools started on port 49468
2024-06-04 14:21:55.017 [error] Metro exited unexpectedly Command was killed with SIGKILL (Forced termination): node /Users/zekican/Desktop/repolarim/techasay/sohoApp/node_modules/react-native/cli.js start --no-interactive --port 0 --config /Users/zekican/.vscode/extensions/swmansion.react-native-ide-0.0.14/lib/metro_config.js --customLogReporterPath /Users/zekican/.vscode/extensions/swmansion.react-native-ide-0.0.14/lib/metro_reporter.js
2024-06-04 14:21:55.017 [info] Subprocess node was terminated with SIGKILL
2024-06-04 14:21:55.122 [info] Selected device is ready
2024-06-04 14:21:55.127 [info] Subprocess ./gradlew was terminated with SIGKILL
2024-06-04 14:21:55.128 [error] Unhandled promise rejection Command was killed with SIGKILL (Forced termination): ./gradlew -x lint -PreactNativeArchitectures=arm64-v8a assembleDebug --init-script /Users/zekican/.vscode/extensions/swmansion.react-native-ide-0.0.14/lib/android/buildProgressEvaluation.initscript.gradle
2024-06-04 14:21:56.943 [info] Metro info Welcome to React Native v0.74
2024-06-04 14:21:56.947 [info] Metro info Starting dev server on port 0...
2024-06-04 14:21:56.968 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"}
2024-06-04 14:21:57.041 [info] Metro {"type":"transform_cache_reset"}
2024-06-04 14:21:57.041 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false}
2024-06-04 14:21:57.148 [info] Metro {"type":"RNIDE_initialize_done","port":49471}
2024-06-04 14:21:57.149 [info] Metro started on port 49471
2024-06-04 14:21:57.151 [info] Metro & devtools ready
2024-06-04 14:21:57.199 [info] Emulator output INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
2024-06-04 14:21:57.199 [info] Emulator output INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
2024-06-04 14:21:57.620 [info] Metro info React Native v0.74.1 is now available (your project is running on v0.74.0).
2024-06-04 14:21:57.621 [info] Metro info Changelog: https://github.com/facebook/react-native/releases/tag/v0.74.1
2024-06-04 14:21:57.621 [info] Metro info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.0
2024-06-04 14:21:57.621 [info] Metro info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
2024-06-04 14:21:58.786 [info] Emulator output INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
2024-06-04 14:21:58.786 [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-04 14:21:58.793 [error] Subprocess /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save execution resulted in an error: Command failed with exit code 1: /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save
WARNING | Please update the emulator to one that supports the feature(s): SupportPixelFold
ERROR   | No initial system image for this configuration!
INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2024-06-04 14:21:58.793 [error] Couldn't start device session Command failed with exit code 1: /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save
WARNING | Please update the emulator to one that supports the feature(s): SupportPixelFold
ERROR   | No initial system image for this configuration!
INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2024-06-04 14:22:04.396 [info] Starting Android build
2024-06-04 14:22:04.893 [info] Metro {"type":"dep_graph_loaded"}
2024-06-04 14:22:04.893 [info] Metro {"type":"transformer_load_started"}
2024-06-04 14:22:05.060 [info] Metro {"type":"transformer_load_done"}
2024-06-04 14:22:05.060 [info] Metro {"type":"initialize_done","port":0}
2024-06-04 14:22:08.378 [info] Launching devtools
2024-06-04 14:22:08.378 [info] Launching metro
2024-06-04 14:22:08.380 [info] Devtools started on port 49490
2024-06-04 14:22:08.398 [error] Metro exited unexpectedly Command was killed with SIGKILL (Forced termination): node /Users/zekican/Desktop/repolarim/techasay/sohoApp/node_modules/react-native/cli.js start --reset-cache --no-interactive --port 0 --config /Users/zekican/.vscode/extensions/swmansion.react-native-ide-0.0.14/lib/metro_config.js --customLogReporterPath /Users/zekican/.vscode/extensions/swmansion.react-native-ide-0.0.14/lib/metro_reporter.js
2024-06-04 14:22:08.398 [info] Subprocess node was terminated with SIGKILL
2024-06-04 14:22:08.413 [info] Selected device is ready
2024-06-04 14:22:08.419 [info] Subprocess ./gradlew was terminated with SIGKILL
2024-06-04 14:22:08.420 [error] Unhandled promise rejection Command was killed with SIGKILL (Forced termination): ./gradlew -x lint -PreactNativeArchitectures=arm64-v8a clean assembleDebug --init-script /Users/zekican/.vscode/extensions/swmansion.react-native-ide-0.0.14/lib/android/buildProgressEvaluation.initscript.gradle
2024-06-04 14:22:09.735 [info] Metro info Welcome to React Native v0.74
2024-06-04 14:22:09.738 [info] Metro info Starting dev server on port 0...
2024-06-04 14:22:09.754 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"}
2024-06-04 14:22:09.822 [info] Metro {"type":"transform_cache_reset"}
2024-06-04 14:22:09.822 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false}
2024-06-04 14:22:09.899 [info] Metro {"type":"RNIDE_initialize_done","port":49494}
2024-06-04 14:22:09.899 [info] Metro started on port 49494
2024-06-04 14:22:09.903 [info] Metro & devtools ready
2024-06-04 14:22:09.929 [info] Emulator output INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
2024-06-04 14:22:09.929 [info] Emulator output INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
2024-06-04 14:22:10.475 [info] Metro info React Native v0.74.1 is now available (your project is running on v0.74.0).
2024-06-04 14:22:10.477 [info] Metro info Changelog: https://github.com/facebook/react-native/releases/tag/v0.74.1
2024-06-04 14:22:10.478 [info] Metro info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.0
2024-06-04 14:22:10.479 [info] Metro info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
2024-06-04 14:22:10.759 [info] Emulator output INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
2024-06-04 14:22:10.759 [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-04 14:22:10.766 [error] Subprocess /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save execution resulted in an error: Command failed with exit code 1: /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save
WARNING | Please update the emulator to one that supports the feature(s): SupportPixelFold
ERROR   | No initial system image for this configuration!
INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2024-06-04 14:22:10.766 [error] Couldn't start device session Command failed with exit code 1: /Users/zekican/Library/Android/sdk/emulator/emulator -avd 8b92eb79-887d-47b9-82b3-0d6378088e09 -qt-hide-window -no-audio -no-boot-anim -grpc-use-token -no-snapshot-save
WARNING | Please update the emulator to one that supports the feature(s): SupportPixelFold
ERROR   | No initial system image for this configuration!
INFO    | Android emulator version 32.1.13.0 (build_id 10086546) (CL:N/A)
INFO    | Found systemPath /Users/zekican/Library/Android/sdk/system-images/android-34/google_apis_playstore/arm64-v8a
INFO    | Storing crashdata in: /tmp/android-zekican/emu-crash.db, detection is enabled
INFO    | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
2024-06-04 14:22:16.590 [info] Starting Android build
2024-06-04 14:22:17.638 [info] Metro {"type":"dep_graph_loaded"}
2024-06-04 14:22:17.639 [info] Metro {"type":"transformer_load_started"}
2024-06-04 14:22:17.736 [info] Metro {"type":"transformer_load_done"}
2024-06-04 14:22:17.738 [info] Metro {"type":"initialize_done","port":0}
2024-06-04 14:22:47.266 [info] Android build sucessful

Package JSON

{
  "name": "sohoApp",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "lint": "eslint .",
    "start": "react-native start",
    "test": "jest"
  },
  "dependencies": {
    "@mindinventory/react-native-tab-bar-interaction": "^2.2.3",
    "@react-native-async-storage/async-storage": "^1.23.1",
    "@react-native-community/netinfo": "^11.3.1",
    "@react-native-community/slider": "^4.5.2",
    "@react-navigation/bottom-tabs": "^6.5.20",
    "@react-navigation/native": "^6.1.17",
    "@react-navigation/native-stack": "^6.9.26",
    "@reduxjs/toolkit": "^2.2.3",
    "@types/lodash": "^4.17.0",
    "axios": "^1.6.8",
    "formik": "^2.4.6",
    "lodash": "^4.17.21",
    "lottie-react-native": "^6.7.2",
    "react": "18.2.0",
    "react-minimal-pie-chart": "^8.4.0",
    "react-native": "0.74.0",
    "react-native-chart-kit": "^6.12.0",
    "react-native-gifted-charts": "^1.4.10",
    "react-native-keyboard-aware-scroll-view": "^0.9.5",
    "react-native-motion-slider": "^1.0.3",
    "react-native-safe-area-context": "^4.10.1",
    "react-native-screens": "^3.31.1",
    "react-native-svg": "^15.2.0",
    "react-redux": "^9.1.1",
    "reactotron-react-native": "^5.1.6",
    "victory-native": "^37.0.2",
    "yup": "^1.4.0"
  },
  "resolutions": {
    "react-native-svg": "15.2.0"  
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@react-native/babel-preset": "0.74.81",
    "@react-native/eslint-config": "0.74.81",
    "@react-native/metro-config": "0.74.81",
    "@react-native/typescript-config": "0.74.81",
    "@types/react": "^18.2.6",
    "@types/react-test-renderer": "^18.0.0",
    "babel-jest": "^29.6.3",
    "babel-plugin-module-resolver": "^5.0.2",
    "eslint": "^8.19.0",
    "jest": "^29.6.3",
    "prettier": "2.8.8",
    "react-native-svg-transformer": "^1.3.0",
    "react-test-renderer": "18.2.0",
    "typescript": "5.0.4"
  },
  "engines": {
    "node": ">=18"
  }
}
jakub-gonet commented 1 month ago

Does the project works without React Native IDE? Have you tried recreating Android emulator?

terrysahaidak commented 4 weeks ago

I looks like it's trying to create an emulator with specific version but there is no AVD on the device with this version so it needs to download it in the android studio.