flexn-io / renative

🚀🚀🚀 Unified Development Platform for iOS, tvOS, Android, Android TV, Android Wear, Web, Tizen TV, Tizen Watch, Tizen Mobile, LG webOS, macOS/OSX, Windows, KaiOS, FirefoxOS Firefox TV platforms
https://renative.org
MIT License
1.82k stars 180 forks source link

Bundlers seem to not exit when killing RNV #1219

Closed mihaiblaga89 closed 3 months ago

mihaiblaga89 commented 1 year ago

Describe the bug image

If the native build fails after the start of the bundler, the bundler does not exit and running the command again will ask to kill the bundler process.

Reproduction steps:

make native android build fail (set "enableAndroidX": false, add any string to a Kotlin file, etc) run app -> app fails with error run app again -> bundler is running issue

pauliusguzas commented 10 months ago

got this error while testing https://github.com/flexn-io/renative/issues/1297

steps:

  1. set "enableAndroidX": false
  2. run app -> app fails with error
  3. run app again -> bundler is running issue
pauliusguzas@MacBook-Pro-de-Flexn template-starter % npx rnv run -p android -r

┌──────────────────────────────────────────────────────────────────────────────┐
│                                                                              │
│        ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗       │
│        ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝       │
│        ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗         │
│        ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝         │
│        ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗       │
│        ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝       │
│                                                                              │
│        Version: 1.0.0-rc.8                                                   │
│        https://renative.org                                                  │
│        🚀 Firing up!...                                                      │
│        $ npx rnv run -p android -r                                           │
│        Start Time: 1/11/2024, 10:20:39 AM                                    │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

[ task ] registerEngine:engine-core[1]
[ task ] configureRuntimeDefaults[1] appId:undefined
[ task ] checkAndMigrateProject[1]
[ task ] loadPluginTemplates[1]
[ task ] parseRenativeConfigs[1]
[ task ] getWorkspaceDirPath[1]
[ task ] generatePlatformTemplatePaths[1]
[ task ] checkAndBootstrapIfRequired[1]
[ task ] loadIntegrations[1]
[ task ] loadEngines[1]
[ task ] loadEnginePluginDeps[1]
[ task ] loadEnginePackageDeps[1]
[ task ] registerEngine:engine-rn[1]
[ task ] findSuitableTask[1]
[ info ] Current Engine: engine-rn path: /Users/pauliusguzas/Desktop/renative/renative/packages/engine-rn
[ task ] registerMissingPlatformEngines[1]
[ task ] initializeTask[1] run
[ task ] => [run]
[ task ] [run] checkIfProjectAndNodeModulesExists[1]
[ hook ] [run] executePipe ('run:before')
[ hook ] [run] buildHooks Build hooks not complied. BUILDING...
[ task ] [run] taskRnvRun[1] parent:undefined port:NaN hosted:undefined
[ task ] => [run] => [configure]
[ hook ] [configure] executePipe ('configure:before')
[ task ] [configure] taskRnvConfigure[1]
[ task ] => [configure] => [platform configure]
[ hook ] [platform configure] executePipe ('platform:configure:before')
[ task ] [platform configure] taskRnvPlatformConfigure[1]
[ task ] => [platform configure] => [project configure]
[ hook ] [project configure] executePipe ('project:configure:before')
[ task ] [project configure] taskRnvProjectConfigure[1]
[ task ] [project configure] checkAndMigrateProject[2]
[ task ] [project configure] loadPluginTemplates[2]
[ task ] [project configure] parseRenativeConfigs[2]
[ task ] [project configure] getWorkspaceDirPath[2]
[ task ] [project configure] generatePlatformTemplatePaths[2]
[ task ] => [project configure] => [workspace configure]
[ task ] [workspace configure] taskRnvWorkspaceConfigure[1]
[ task ] <= [project configure] <= workspace configure
[ task ] [project configure] checkIfTemplateConfigured[1]
[ task ] => [project configure] => [install]
[ hook ] [install] executePipe ('install:before')
[ task ] [install] taskRnvInstall[1] requiresInstall:false:true
[ hook ] [install] executePipe ('install:after')
[ task ] <= [project configure] <= install
[ task ] [project configure] checkCrypto[1]
[ task ] [project configure] configureRuntimeDefaults[2] appId:template
[ task ] [project configure] applyTemplate[1] @rnv/template-starter=>undefined
[ task ] [project configure] configureRuntimeDefaults[3] appId:template
[ task ] => [project configure] => [install]
[ hook ] [install] executePipe ('install:before')
[ task ] [install] taskRnvInstall[2] requiresInstall:false:true
[ hook ] [install] executePipe ('install:after')
[ task ] <= [project configure] <= install
[ task ] => [project configure] => [app configure]
[ hook ] [app configure] executePipe ('app:configure:before')
[ task ] [app configure] taskRnvAppConfigure[1]
[ task ] [app configure] listAppConfigsFoldersSync[1] ignoreHiddenConfigs:true
[ task ] [app configure] loadPluginTemplates[3]
[ task ] [app configure] parseRenativeConfigs[3]
[ task ] [app configure] generateBuildConfig[1] size:195.42 KB
[ task ] [app configure] getWorkspaceDirPath[3]
[ task ] [app configure] generateBuildConfig[2] size:195.42 KB
[ task ] [app configure] generateBuildConfig[3] size:195.42 KB
[ task ] [app configure] generateBuildConfig[4] size:195.42 KB
[ task ] [app configure] generatePlatformTemplatePaths[3]
[ task ] [app configure] generateBuildConfig[5] size:208.95 KB
[ task ] [app configure] generateBuildConfig[6] size:208.95 KB
[ task ] [app configure] getWorkspaceDirPath[4]
[ task ] [app configure] generateBuildConfig[7] size:208.95 KB
[ task ] [app configure] generateLocalConfig[1] resetAppId:false
[ task ] [app configure] generateBuildConfig[8] size:208.95 KB
[ info ] [app configure] Current App Config: template
[ hook ] [app configure] executePipe ('app:configure:after')
[ task ] <= [project configure] <= app configure
[ task ] [project configure] versionCheck[1]
[ task ] [project configure] versionCheck:rnvRunner:1.0.0-rc.8,rnvProject:1.0.0-rc.8[1]
[ task ] [project configure] configureEngines[1]
[ task ] [project configure] resolvePluginDependants[1]
[ task ] [project configure] configurePlugins[1]
[ task ] [project configure] configureRuntimeDefaults[4] appId:template
[ task ] [project configure] copyRuntimeAssets[1]
[ task ] [project configure] configureTemplateFiles[1]
[ task ] [project configure] checkAndCreateGitignore[1]
[ task ] [project configure] generateRuntimeConfig[1]
[ task ] [project configure] overrideTemplatePlugins[1]
[ task ] [project configure] parsePlugins[1]
[ info ] [project configure] /react-native-gesture-handler/ios/Handlers/RNHoverHandler.m overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/react-native-gesture-handler/overrides.json
[ info ] [project configure] /react-native-gesture-handler/ios/RNGestureHandlerButtonComponentView.mm overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/react-native-gesture-handler/overrides.json
[ info ] [project configure] /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
[ info ] [project configure] /@react-native-community/cli-platform-ios/build/tools/findMatchingSimulator.js overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
[ info ] [project configure] /@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
[ info ] [project configure] Plugin overrides disabled for: next with disablePluginTemplateOverrides. SKIPPING
[ task ] [project configure] parseFonts[1]
[ task ] [project configure] parsePlugins[2]
[ hook ] [project configure] executePipe ('project:configure:after')
[ task ] <= [platform configure] <= project configure
[ task ] [platform configure] isPlatformSupported[1]
[ task ] [platform configure] isBuildSchemeSupported[1]
[ info ] [platform configure] Current Build Scheme: debug
[ task ] [platform configure] checkAndConfigureSdks[1]
[ task ] [platform configure] checkAndConfigureAndroidSdks[1] (/Users/pauliusguzas/Library/Android/sdk)
[ task ] [platform configure] checkSdk[1]
[ task ] [platform configure] checkAndroidSdk[1]
[ task ] [platform configure] _isSdkInstalled[1]
[ task ] [platform configure] checkAndConfigureAndroidSdks[2] (/Users/pauliusguzas/Library/Android/sdk)
[ task ] [platform configure] configureRuntimeDefaults[5] appId:template
[ task ] => [platform configure] => [install]
[ hook ] [install] executePipe ('install:before')
[ task ] [install] taskRnvInstall[3] requiresInstall:false:true
[ hook ] [install] executePipe ('install:after')
[ task ] <= [platform configure] <= install
[ task ] [platform configure] [1] taskRnvPlatformConfigure hasBuildFolderPresent:true
[ info ] [platform configure] You passed -r argument. "./platformBuilds/template_android" CLEANING...DONE
[ task ] [platform configure] cleanPlatformBuild[1]
[ task ] [platform configure] createPlatformBuild[1]
[ task ] [platform configure] injectPlatformDependencies[1]
[ hook ] [platform configure] executePipe ('platform:configure:after')
[ task ] <= [configure] <= platform configure
[ task ] [configure] configureEntryPoint[1]
[ task ] [configure] configureGradleProject[1]
[ task ] [configure] copyAssetsFolder[1]
[ info ] [configure] Found custom assetSources at /Users/pauliusguzas/Desktop/renative/renative/node_modules/@flexn/assets-renative-outline/assets/android. Will be used to generate assets.
[ task ] [configure] configureAndroidProperties[1]
[ task ] [configure] configureProject[1]
[ task ] [configure] parsePlugins[3]
[ task ] [configure] parseFonts[2]
[ task ] [configure] parsePlugins[4]
[ task ] [configure] parseAppBuildGradleSync[1]
[ task ] [configure] parseGradleWrapperSync[1]
[ task ] [configure] copyGradleProjectTemplate[1]
[ task ] [configure] parseAndroidManifestSync[1]
[ task ] [configure] parsePlugins[5]
[ task ] [configure] _checkSigningCerts[1]
[ task ] [configure] copyBuildsFolder[1]
[ task ] [configure] copyTemplatePluginsSync[1] (./platformBuilds/template_android)
[ task ] [configure] parsePlugins[6]
[ task ] [configure] jetifyIfRequired[1]
[ task ] [configure] parseFonts[3]
[ task ] [configure] parsePlugins[7]
[ hook ] [configure] executePipe ('configure:after')
[ task ] <= [run] <= configure
[ task ] [run] getAndroidDeviceToRunOn[1] default:Pixel_4_API_29
[ task ] [run] getAndroidTargets[1] skipDevices:false skipAvds:false deviceOnly:false
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb devices -l
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/emulator/emulator -list-avds
✔ Waiting for emulator to boot...
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm size
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm density
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[ task ] [run] startBundlerIfRequired[1]
[ task ] [run] isBundlerActive[1] (http://0.0.0.0:8083)
[ task ] => [run] => [start]
[ hook ] [start] executePipe ('start:before')
[ task ] [start] taskRnvStart[1] parent:run port:8083 hosted:false
[ task ] [start] startReactNative[1]
[ info ] [start] You passed -r argument. --reset-cache will be applied to react-native

Dev server running at: http://0.0.0.0:8083/index.bundle?platform=android

[ hook ] [start] executePipe ('start:after')
[ task ] <= [run] <= start
⠋ Waiting for bundler to finish...[ task ] [run] _isBundlerRunning[1]
[ task ] [run] _isBundlerRunning[2] (NO)
⠹ Waiting for bundler to finish...[ task ] [run] _isBundlerRunning[3]
[ task ] [run] _isBundlerRunning[4] (NO)
⠋ Waiting for bundler to finish...warn From React Native 0.72, your metro.config.js file should extend'@react-native/metro-config'. Please see the React Native 0.72 changelog, or copy the template at:
https://github.com/facebook/react-native/blob/main/packages/react-native/template/metro.config.js
warn Falling back to internal defaults.

                        ▒▒▓▓▓▓▒▒
                     ▒▓▓▓▒▒░░▒▒▓▓▓▒
                  ▒▓▓▓▓░░░▒▒▒▒░░░▓▓▓▓▒
                 ▓▓▒▒▒▓▓▓▓▓▓▓▓▓▓▓▓▒▒▒▓▓
                 ▓▓░░░░░▒▓▓▓▓▓▓▒░░░░░▓▓
                 ▓▓░░▓▓▒░░░▒▒░░░▒▓▒░░▓▓
                 ▓▓░░▓▓▓▓▓▒▒▒▒▓▓▓▓▒░░▓▓
                 ▓▓░░▓▓▓▓▓▓▓▓▓▓▓▓▓▒░░▓▓
                 ▓▓▒░░▒▒▓▓▓▓▓▓▓▓▒░░░▒▓▓
                  ▒▓▓▓▒░░░▒▓▓▒░░░▒▓▓▓▒
                     ▒▓▓▓▒░░░░▒▓▓▓▒
                        ▒▒▓▓▓▓▒▒

warning: the transform cache was reset.
                Welcome to Metro v0.76.7
              Fast - Scalable - Integrated

⠼ Waiting for bundler to finish...[ task ] [run] _isBundlerRunning[5]
⠴ Waiting for bundler to finish...[ task ] [run] _isBundlerRunning[6] (YES)
✔ Waiting for bundler to finish...
[ task ] [run] runAndroid[1] target:emulator-5554
[ task ] [run] _runGradleApp[1]
warning: Watchman `watch-project` returned a warning: Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/pauliusguzas/Desktop/renative/renative' ; watchman watch-project '/Users/pauliusguzas/Desktop/renative/renative'`

warning: Watchman `watch-project` returned a warning: Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/pauliusguzas/Desktop/renative/renative' ; watchman watch-project '/Users/pauliusguzas/Desktop/renative/renative'`

warning: Watchman `watch-project` returned a warning: Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/pauliusguzas/Desktop/renative/renative' ; watchman watch-project '/Users/pauliusguzas/Desktop/renative/renative'`

warning: Watchman `watch-project` returned a warning: Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/pauliusguzas/Desktop/renative/renative' ; watchman watch-project '/Users/pauliusguzas/Desktop/renative/renative'`

warning: Watchman `query` returned a warning: Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/pauliusguzas/Desktop/renative/renative' ; watchman watch-project '/Users/pauliusguzas/Desktop/renative/renative'`

Recrawled this watch 9 times, most recently because:
MustScanSubDirs UserDroppedTo resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del '/Users/pauliusguzas/Desktop/renative/renative' ; watchman watch-project '/Users/pauliusguzas/Desktop/renative/renative'`

info Building the app...

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Configuration `:app:debugRuntimeClasspath` contains AndroidX dependencies, but the `android.useAndroidX` property is not enabled, which may cause runtime issues.
  Set `android.useAndroidX=true` in the `gradle.properties` file and retry.
  The following AndroidX dependencies are detected:
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1
  :app:debugRuntimeClasspath -> com.facebook.react:hermes-android:0.72.4 -> androidx.annotation:annotation:1.3.0
  :app:debugRuntimeClasspath -> project :react-native-gesture-handler -> androidx.core:core-ktx:1.6.0 -> androidx.core:core:1.7.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6 -> androidx.annotation:annotation-experimental:1.1.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.lifecycle:lifecycle-runtime:2.4.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6 -> androidx.loader:loader:1.0.0 -> androidx.lifecycle:lifecycle-livedata:2.0.0 -> androidx.arch.core:core-runtime:2.1.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.savedstate:savedstate:1.1.0 -> androidx.arch.core:core-common:2.1.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.savedstate:savedstate:1.1.0 -> androidx.lifecycle:lifecycle-common:2.4.0
  :app:debugRuntimeClasspath -> project :react-native-gesture-handler -> androidx.core:core-ktx:1.6.0 -> androidx.core:core:1.7.0 -> androidx.versionedparcelable:versionedparcelable:1.1.1
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.collection:collection:1.1.0
  :app:debugRuntimeClasspath -> project :react-native-gesture-handler -> androidx.core:core-ktx:1.6.0 -> androidx.core:core:1.7.0 -> androidx.concurrent:concurrent-futures:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.cursoradapter:cursoradapter:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.activity:activity:1.2.4
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.lifecycle:lifecycle-viewmodel:2.3.1
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.savedstate:savedstate:1.1.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6 -> androidx.lifecycle:lifecycle-viewmodel-savedstate:2.3.1
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6 -> androidx.lifecycle:lifecycle-livedata-core:2.3.1
  :app:debugRuntimeClasspath -> com.facebook.react:react-android:0.72.4 -> androidx.tracing:tracing:1.1.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6 -> androidx.viewpager:viewpager:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.drawerlayout:drawerlayout:1.0.0 -> androidx.customview:customview:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6 -> androidx.loader:loader:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.fragment:fragment:1.3.6 -> androidx.loader:loader:1.0.0 -> androidx.lifecycle:lifecycle-livedata:2.0.0
  :app:debugRuntimeClasspath -> com.facebook.react:react-android:0.72.4 -> androidx.appcompat:appcompat-resources:1.4.1
  :app:debugRuntimeClasspath -> com.facebook.react:react-android:0.72.4 -> androidx.appcompat:appcompat-resources:1.4.1 -> androidx.vectordrawable:vectordrawable:1.1.0
  :app:debugRuntimeClasspath -> com.facebook.react:react-android:0.72.4 -> androidx.appcompat:appcompat-resources:1.4.1 -> androidx.vectordrawable:vectordrawable-animated:1.1.0
  :app:debugRuntimeClasspath -> com.facebook.react:react-android:0.72.4 -> androidx.swiperefreshlayout:swiperefreshlayout:1.0.0 -> androidx.interpolator:interpolator:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.drawerlayout:drawerlayout:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.emoji2:emoji2:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.emoji2:emoji2:1.0.0 -> androidx.lifecycle:lifecycle-process:2.4.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.emoji2:emoji2:1.0.0 -> androidx.startup:startup-runtime:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.emoji2:emoji2-views-helper:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.appcompat:appcompat:1.4.1 -> androidx.resourceinspection:resourceinspection-annotation:1.0.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.sqlite:sqlite-framework:2.2.0
  :app:debugRuntimeClasspath -> com.facebook.flipper:flipper:0.182.0 -> androidx.sqlite:sqlite-framework:2.2.0 -> androidx.sqlite:sqlite:2.2.0
  :app:debugRuntimeClasspath -> com.facebook.react:react-android:0.72.4 -> androidx.autofill:autofill:1.1.0
  :app:debugRuntimeClasspath -> com.facebook.react:react-android:0.72.4 -> androidx.swiperefreshlayout:swiperefreshlayout:1.0.0
  :app:debugRuntimeClasspath -> project :react-native-gesture-handler -> androidx.core:core-ktx:1.6.0

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 5s
5 actionable tasks: 5 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

error Failed to build the app.
Error: Command failed with exit code 1: ./gradlew app:installDebug -x lint -PreactNativeDevServerPort=8083
    at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
    at Function.module.exports.sync (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:194:17)
    at build (/Users/pauliusguzas/Desktop/renative/renative/node_modules/@react-native-community/cli-platform-android/build/commands/buildAndroid/index.js:95:22)
    at runOnSpecificDevice (/Users/pauliusguzas/Desktop/renative/renative/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:205:33)
    at buildAndRun (/Users/pauliusguzas/Desktop/renative/renative/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:167:12)
    at Object.runAndroid [as func] (/Users/pauliusguzas/Desktop/renative/renative/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js:100:10)
    at Command.handleAction (/Users/pauliusguzas/Desktop/renative/renative/node_modules/@react-native-community/cli/build/index.js:111:9)
info Run CLI with --verbose flag for more details.
┌──────────────────────────────────────────────────────────────────────────────┐
│  🚀  SUMMARY | 1/11/2024, 10:21:00 AM                                        │
│  $ npx rnv run -p android -r                                                 │
├──────────────────────────────────────────────────────────────────────────────┤
│  ReNative Version: 1.0.0-rc.8                                                │
│  Project Name ($package.name): @rnv/template-starter                         │
│  Project Version ($package.version): 1.0.0-rc.8                              │
│  Workspace ($.workspaceID): rnv                                              │
│  Platform (-p): android                                                      │
│  Engine ($.platforms.android.engine): engine-rn                              │
│  App Config (-c): template                                                   │
│  Build Scheme (-s): debug                                                    │
│  Target (-t): Pixel_4_API_29                                                 │
│  Reset Project (-r): true                                                    │
│  Supported Platforms: android                                                │
│  Env Info: darwin | x64 | node v18.17.0                                      │
│  Executed Time: 0h:0m:20s:645ms                                              │
│                                                                              │
│ [ error ] [run] COMMAND:

npx react-native run-android --mode=Debug --no-packager --deviceId=emulator-5554

FAILED with ERROR:

Command failed with exit code 1: npx react-native run-android --mode=Debug --no-packager --deviceId=emulator-5554

Error: Command failed with exit code 1: npx react-native run-android --mode=Debug --no-packager --deviceId=emulator-5554
    at makeError (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/lib/error.js:60:11)
    at handlePromise (/Users/pauliusguzas/Desktop/renative/renative/node_modules/execa/index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

│                                                                              │
│  Project location:                                                           │
│  ./platformBuilds/template_android                                           │
└──────────────────────────────────────────────────────────────────────────────┘
pauliusguzas@MacBook-Pro-de-Flexn template-starter % npx rnv run -p android -r

┌──────────────────────────────────────────────────────────────────────────────┐
│                                                                              │
│        ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗       │
│        ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝       │
│        ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗         │
│        ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝         │
│        ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗       │
│        ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝       │
│                                                                              │
│        Version: 1.0.0-rc.8                                                   │
│        https://renative.org                                                  │
│        🚀 Firing up!...                                                      │
│        $ npx rnv run -p android -r                                           │
│        Start Time: 1/11/2024, 10:21:11 AM                                    │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

[ task ] registerEngine:engine-core[1]
[ task ] configureRuntimeDefaults[1] appId:undefined
[ task ] checkAndMigrateProject[1]
[ task ] loadPluginTemplates[1]
[ task ] parseRenativeConfigs[1]
[ task ] getWorkspaceDirPath[1]
[ task ] generatePlatformTemplatePaths[1]
[ task ] checkAndBootstrapIfRequired[1]
[ task ] loadIntegrations[1]
[ task ] loadEngines[1]
[ task ] loadEnginePluginDeps[1]
[ task ] loadEnginePackageDeps[1]
[ task ] registerEngine:engine-rn[1]
[ task ] findSuitableTask[1]
[ info ] Current Engine: engine-rn path: /Users/pauliusguzas/Desktop/renative/renative/packages/engine-rn
[ task ] registerMissingPlatformEngines[1]
[ task ] initializeTask[1] run
[ task ] => [run]
[ task ] [run] checkIfProjectAndNodeModulesExists[1]
[ hook ] [run] executePipe ('run:before')
[ hook ] [run] buildHooks Build hooks not complied. BUILDING...
[ task ] [run] taskRnvRun[1] parent:undefined port:NaN hosted:undefined
[ task ] => [run] => [configure]
[ hook ] [configure] executePipe ('configure:before')
[ task ] [configure] taskRnvConfigure[1]
[ task ] => [configure] => [platform configure]
[ hook ] [platform configure] executePipe ('platform:configure:before')
[ task ] [platform configure] taskRnvPlatformConfigure[1]
[ task ] => [platform configure] => [project configure]
[ hook ] [project configure] executePipe ('project:configure:before')
[ task ] [project configure] taskRnvProjectConfigure[1]
[ task ] [project configure] checkAndMigrateProject[2]
[ task ] [project configure] loadPluginTemplates[2]
[ task ] [project configure] parseRenativeConfigs[2]
[ task ] [project configure] getWorkspaceDirPath[2]
[ task ] [project configure] generatePlatformTemplatePaths[2]
[ task ] => [project configure] => [workspace configure]
[ task ] [workspace configure] taskRnvWorkspaceConfigure[1]
[ task ] <= [project configure] <= workspace configure
[ task ] [project configure] checkIfTemplateConfigured[1]
[ task ] => [project configure] => [install]
[ hook ] [install] executePipe ('install:before')
[ task ] [install] taskRnvInstall[1] requiresInstall:false:true
[ hook ] [install] executePipe ('install:after')
[ task ] <= [project configure] <= install
[ task ] [project configure] checkCrypto[1]
[ task ] [project configure] configureRuntimeDefaults[2] appId:template
[ task ] [project configure] applyTemplate[1] @rnv/template-starter=>undefined
[ task ] [project configure] configureRuntimeDefaults[3] appId:template
[ task ] => [project configure] => [install]
[ hook ] [install] executePipe ('install:before')
[ task ] [install] taskRnvInstall[2] requiresInstall:false:true
[ hook ] [install] executePipe ('install:after')
[ task ] <= [project configure] <= install
[ task ] => [project configure] => [app configure]
[ hook ] [app configure] executePipe ('app:configure:before')
[ task ] [app configure] taskRnvAppConfigure[1]
[ task ] [app configure] listAppConfigsFoldersSync[1] ignoreHiddenConfigs:true
[ task ] [app configure] loadPluginTemplates[3]
[ task ] [app configure] parseRenativeConfigs[3]
[ task ] [app configure] generateBuildConfig[1] size:195.42 KB
[ task ] [app configure] getWorkspaceDirPath[3]
[ task ] [app configure] generateBuildConfig[2] size:195.42 KB
[ task ] [app configure] generateBuildConfig[3] size:195.42 KB
[ task ] [app configure] generateBuildConfig[4] size:195.42 KB
[ task ] [app configure] generatePlatformTemplatePaths[3]
[ task ] [app configure] generateBuildConfig[5] size:208.95 KB
[ task ] [app configure] generateBuildConfig[6] size:208.95 KB
[ task ] [app configure] getWorkspaceDirPath[4]
[ task ] [app configure] generateBuildConfig[7] size:208.95 KB
[ task ] [app configure] generateLocalConfig[1] resetAppId:false
[ task ] [app configure] generateBuildConfig[8] size:208.95 KB
[ info ] [app configure] Current App Config: template
[ hook ] [app configure] executePipe ('app:configure:after')
[ task ] <= [project configure] <= app configure
[ task ] [project configure] versionCheck[1]
[ task ] [project configure] versionCheck:rnvRunner:1.0.0-rc.8,rnvProject:1.0.0-rc.8[1]
[ task ] [project configure] configureEngines[1]
[ task ] [project configure] resolvePluginDependants[1]
[ task ] [project configure] configurePlugins[1]
[ task ] [project configure] configureRuntimeDefaults[4] appId:template
[ task ] [project configure] copyRuntimeAssets[1]
[ task ] [project configure] configureTemplateFiles[1]
[ task ] [project configure] checkAndCreateGitignore[1]
[ task ] [project configure] generateRuntimeConfig[1]
[ task ] [project configure] overrideTemplatePlugins[1]
[ task ] [project configure] parsePlugins[1]
[ info ] [project configure] /react-native-gesture-handler/ios/Handlers/RNHoverHandler.m overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/react-native-gesture-handler/overrides.json
[ info ] [project configure] /react-native-gesture-handler/ios/RNGestureHandlerButtonComponentView.mm overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/react-native-gesture-handler/overrides.json
[ info ] [project configure] /@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
[ info ] [project configure] /@react-native-community/cli-platform-ios/build/tools/findMatchingSimulator.js overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
[ info ] [project configure] /@react-native-community/cli-platform-ios/build/commands/runIOS/index.js overriden by: /Users/pauliusguzas/Desktop/renative/renative/packages/rnv/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
[ info ] [project configure] Plugin overrides disabled for: next with disablePluginTemplateOverrides. SKIPPING
[ task ] [project configure] parseFonts[1]
[ task ] [project configure] parsePlugins[2]
[ hook ] [project configure] executePipe ('project:configure:after')
[ task ] <= [platform configure] <= project configure
[ task ] [platform configure] isPlatformSupported[1]
[ task ] [platform configure] isBuildSchemeSupported[1]
[ info ] [platform configure] Current Build Scheme: debug
[ task ] [platform configure] checkAndConfigureSdks[1]
[ task ] [platform configure] checkAndConfigureAndroidSdks[1] (/Users/pauliusguzas/Library/Android/sdk)
[ task ] [platform configure] checkSdk[1]
[ task ] [platform configure] checkAndroidSdk[1]
[ task ] [platform configure] _isSdkInstalled[1]
[ task ] [platform configure] checkAndConfigureAndroidSdks[2] (/Users/pauliusguzas/Library/Android/sdk)
[ task ] [platform configure] configureRuntimeDefaults[5] appId:template
[ task ] => [platform configure] => [install]
[ hook ] [install] executePipe ('install:before')
[ task ] [install] taskRnvInstall[3] requiresInstall:false:true
[ hook ] [install] executePipe ('install:after')
[ task ] <= [platform configure] <= install
[ task ] [platform configure] [1] taskRnvPlatformConfigure hasBuildFolderPresent:true
[ info ] [platform configure] You passed -r argument. "./platformBuilds/template_android" CLEANING...DONE
[ task ] [platform configure] cleanPlatformBuild[1]
[ task ] [platform configure] createPlatformBuild[1]
[ task ] [platform configure] injectPlatformDependencies[1]
[ hook ] [platform configure] executePipe ('platform:configure:after')
[ task ] <= [configure] <= platform configure
[ task ] [configure] configureEntryPoint[1]
[ task ] [configure] configureGradleProject[1]
[ task ] [configure] copyAssetsFolder[1]
[ info ] [configure] Found custom assetSources at /Users/pauliusguzas/Desktop/renative/renative/node_modules/@flexn/assets-renative-outline/assets/android. Will be used to generate assets.
[ task ] [configure] configureAndroidProperties[1]
[ task ] [configure] configureProject[1]
[ task ] [configure] parsePlugins[3]
[ task ] [configure] parseFonts[2]
[ task ] [configure] parsePlugins[4]
[ task ] [configure] parseAppBuildGradleSync[1]
[ task ] [configure] parseGradleWrapperSync[1]
[ task ] [configure] copyGradleProjectTemplate[1]
[ task ] [configure] parseAndroidManifestSync[1]
[ task ] [configure] parsePlugins[5]
[ task ] [configure] _checkSigningCerts[1]
[ task ] [configure] copyBuildsFolder[1]
[ task ] [configure] copyTemplatePluginsSync[1] (./platformBuilds/template_android)
[ task ] [configure] parsePlugins[6]
[ task ] [configure] jetifyIfRequired[1]
[ task ] [configure] parseFonts[3]
[ task ] [configure] parsePlugins[7]
[ hook ] [configure] executePipe ('configure:after')
[ task ] <= [run] <= configure
[ task ] [run] getAndroidDeviceToRunOn[1] default:Pixel_4_API_29
[ task ] [run] getAndroidTargets[1] skipDevices:false skipAvds:false deviceOnly:false
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb devices -l
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/emulator/emulator -list-avds
✔ Waiting for emulator to boot...
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm size
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm density
✔ Executing: /Users/pauliusguzas/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[ task ] [run] startBundlerIfRequired[1]
[ task ] [run] isBundlerActive[1] (http://0.0.0.0:8083)
[ warn ] [run] Another android server at port 8083 already running
? selectedOption: (Use arrow keys)
❯ Restart the server (recommended)
  Use existing session
RicardasN commented 6 months ago

@pauliusguzas @GabrieleKaceviciute I can no longer reproduce this issue when testing on 1.0. This needs to be checked if it's still an issue or am I missing something