Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Regression] [androidtv, firetv] error on cli when try to run app via npx rnv #1567

Open
GabrieleKaceviciute opened this issue May 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@GabrieleKaceviciute
Copy link
Collaborator

GabrieleKaceviciute commented May 22, 2024

Describe the bug
Error on cli when try to run androidtv/firetv app via npx rnv.
Note npx rnv run -p androidtv works without errors

To Reproduce
Steps to reproduce the behavior:

  1. Install rnv via npm
  2. Create new project
  3. Do npx rnv
  4. Choose run
  5. Pick androidtv or firetv platform -> app launches on simulator and error appears on cli

Screenshots or copy&paste

➜  naujas git:(master) ✗ npx rnv

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝ │
│ ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗   │
│ ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝   │
│ ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗ │
│ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝ │
│ $ npx rnv                                                       │
└─────────────────────────────────────────────────────────────────┘
? Pick a command run...
? Pick a platform androidtv
info: Current engine: @rnv/engine-rn (./node_modules/@rnv/engine-rn)
task: ○ run ↺1
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
task: ○ workspace configure ↺1
task: ✔ workspace configure
task: ○ app configure ↺1
info: Current app config: app
task: ✔ app configure
info: ./node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
info: ./node_modules/@react-native-community/cli/build/bin.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json
info: ./node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ./node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ./node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
task: ✔ project configure
info: Current Build Scheme: debug
task: ○ sdk configure ↺1
task: ✔ sdk configure
task: ✔ platform configure
info: Found custom assetFolderPlatform: android. Will use it instead of deafult androidtv
info: Found custom assetSources at ./node_modules/@flexn/assets-renative-outline/assets/android. Will be used to generate assets.
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/settings.gradle
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/build.gradle
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/build.gradle
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainActivity.kt
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainApplication.kt
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/SplashActivity.kt
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/res/values/strings.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/res/values/styles.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/res/values/colors.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/AndroidManifest.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/gradle.properties
task: ✔ configure
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
✔ Executing: /Users/gabriele/Library/Android/sdk/emulator/emulator -list-avds
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 1/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb kill-server
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb start-server
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
✔ Waiting for emulator to boot...
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm size
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm density
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
info: ✔ Found active emulator! emulator-5554. Will use it
task: ○ start ↺1
task: ○ configureSoft ↺1
task: ○ app configure ↺2
info: Current app config: app
task: ✔ app configure
info: Current Build Scheme: debug
task: ○ sdk configure ↺2
task: ✔ sdk configure
task: ✔ configureSoft

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

task: ✔ start
⠏ Waiting for bundler to finish...warn =================================================================================================
warn From React Native 0.73, your project's Metro config should extend '@react-native/metro-config'
warn or it will fail to build. Please copy the template at:
warn https://github.com/facebook/react-native/blob/main/packages/react-native/template/metro.config.js
warn This warning will be removed in future (https://github.com/facebook/metro/issues/1018).
warn =================================================================================================
info Welcome to React Native v0.73
info Starting dev server on port 8084...

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


                Welcome to Metro v0.80.9
              Fast - Scalable - Integrated


⠹ Waiting for bundler to finish...info React Native v0.74.1 is now available (your project is running on v0.73.4).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.74.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
✔ Waiting for bundler to finish...

  WARNING: You should run npx react-native@latest to ensure you're always using the most current version of the CLI. NPX has cached version (0.73.4) != current release (0.74.1)

info Building the app...

> Task :react-native-gesture-handler:processDebugManifest
package="com.swmansion.gesturehandler" found in source AndroidManifest.xml: /Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported, and the value is ignored.
Recommendation: remove package="com.swmansion.gesturehandler" from the source AndroidManifest.xml: /Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/AndroidManifest.xml.

> Task :react-native-gesture-handler:compileDebugKotlin
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/noreanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt:7:31 Parameter 'event' is never used
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/noreanimated/src/main/java/com/swmansion/gesturehandler/ReanimatedEventDispatcher.kt:7:41 Parameter 'reactApplicationContext' is never used
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandler.kt:770:11 Name shadowed: size
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt:23:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt:35:2 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt:9:51 Unreachable code
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEnabledRootView.kt:10:80 Unreachable code
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt:14:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt:80:18 'onChildStartedNativeGesture(MotionEvent!): Unit' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt:86:42 Parameter 'disallowIntercept' is never used
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt:118:28 Parameter 'viewTag' is never used
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt:3:46 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootViewManager.kt:15:2 'ReactModule' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt:7:44 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt:14:11 'init(Int): Unit' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt:30:42 'RCTEventEmitter' is deprecated. Deprecated in Java
w: file:///Users/gabriele/Desktop/nauji/naujas/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerTouchEvent.kt:31:21 'receiveEvent(Int, String!, WritableMap?): Unit' is deprecated. Deprecated in Java

> Task :app:installDebug
Installing APK 'app-debug.apk' on 'Television_1080p_API_31(AVD) - 12' for :app:debug
Installed on 1 device.

BUILD SUCCESSFUL in 9s
63 actionable tasks: 5 executed, 58 up-to-date
info Connecting to the development server...
8084
info Installing the app on the device "emulator-5554"...
Performing Streamed Install
Success
info Starting the app on "emulator-5554"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.mycompany.naujas/.SplashActivity }
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ BUNDLER STARTED | 5/22/2024, 5:16:30 PM | rnv@                │
│ $ npx rnv                                                       │
├─────────────────────────────────────────────────────────────────┤
│ Project: naujas@0.1.0                                           │
│ Workspace: rnv                                                  │
│ Platform (-p): androidtv                                        │
│ Engine: @rnv/engine-rn                                          │
│ Template: @rnv/template-starter                                 │
│ App Config (-c): app                                            │
│ Build Scheme (-s): debug                                        │
│ Target (-t): Television_1080p_API_31                            │
│ Supported Platforms: web, ios, android, androidtv, firetv, tvos, macos, linux, windows, windows, tizen, webos, chromecast, kaios, androidwear, tizenwatch
│ Env Info: darwin | arm64 | node v18.19.0                        │
│ Executed Time: 0h:0m:53s:222ms                                  │
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/settings.gradle
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/build.gradle
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/build.gradle
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainActivity.kt
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainApplication.kt
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/SplashActivity.kt
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/res/values/strings.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/res/values/styles.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/res/values/colors.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/app/src/main/AndroidManifest.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/nauji/naujas/node_modules/@rnv/engine-rn/templates/platforms/androidtv/gradle.properties
│ info: ✔ Found active emulator! emulator-5554. Will use it
│ Project location: ./platformBuilds/app_androidtv                │
└─────────────────────────────────────────────────────────────────┘
 BUNDLE  ./index.js

 LOG  Running "RNVApp" with {"rootTag":11}

Additional context
Behavior on local repo template starter and app-harness -> app not launches on simulator ->

➜  app-harness git:(1.0.0-rc.19) npx rnv

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝ │
│ ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗   │
│ ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝   │
│ ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗ │
│ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝ │
│ 🚀 v:1.0.0-rc.19 | renative.org | 5/23/2024, 3:20:14 PM         │
│ $ rnv                                                           │
└─────────────────────────────────────────────────────────────────┘
? Pick a command run...
? Pick a platform androidtv
info: Current engine: @rnv/engine-rn (../engine-rn)
task: ○ run ↺1
info: Build hooks not complied. BUILDING...
task: ○ configure ↺1
task: ○ platform configure ↺1
task: ○ project configure ↺1
info: Creating folder ./platformBuilds ...DONE
info: .rnv folder missing. CREATING...DONE
info: .rnv/schemas folder missing. CREATING...DONE
task: ○ workspace configure ↺1
task: ✔ workspace configure
task: ○ app configure ↺1
info: Found only one app config available. Will use harness
info: Current app config: harness
task: ✔ app configure
info: ../../node_modules/@react-native-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/overrides@11.3.7.json
info: ../../node_modules/@react-native-community/cli/build/bin.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ../../node_modules/react-native-tvos/Libraries/Components/ScrollView/ScrollViewNativeComponent.js overriden by: /@rnv/config-templates/pluginTemplates/react-native-tvos/overrides.json
info: ../../node_modules/react-native-photo-editor overriden by: /@rnv/config-templates/pluginTemplates/react-native-photo-editor/overrides
task: ✔ project configure
info: Current Build Scheme: debug
task: ○ sdk configure ↺1
task: ✔ sdk configure
task: ✔ platform configure
info: Found custom assetFolderPlatform: android. Will use it instead of deafult androidtv
info: Found custom assetSources at ../../node_modules/@flexn/assets-renative-outline/assets/android. Will be used to generate assets.
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/settings.gradle
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/build.gradle
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/build.gradle
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainActivity.kt
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainApplication.kt
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/SplashActivity.kt
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/res/values/strings.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/app-harness/platformBuilds/harness_androidtv/app/src/main/res/values/strings.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/res/values/styles.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/res/values/colors.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/app-harness/platformBuilds/harness_androidtv/app/src/main/res/values/colors.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/AndroidManifest.xml
error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/gradle.properties
task: ✔ configure
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
✔ Executing: /Users/gabriele/Library/Android/sdk/emulator/emulator -list-avds
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 1/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb kill-server
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb start-server
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
✔ Waiting for emulator to boot...
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm size
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell wm density
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
info: ✔ Found active emulator! emulator-5554. Will use it
task: ○ start ↺1
task: ○ configureSoft ↺1
task: ○ app configure ↺2
info: Current app config: harness
task: ✔ app configure
info: Current Build Scheme: debug
task: ○ sdk configure ↺2
task: ✔ sdk configure
task: ✔ configureSoft

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

task: ✔ start
⠏ Waiting for bundler to finish...warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.
warn =================================================================================================
warn From React Native 0.73, your project's Metro config should extend '@react-native/metro-config'
warn or it will fail to build. Please copy the template at:
warn https://github.com/facebook/react-native/blob/main/packages/react-native/template/metro.config.js
warn This warning will be removed in future (https://github.com/facebook/metro/issues/1018).
warn =================================================================================================
info Welcome to React Native v0.73
info Starting dev server on port 8094...

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


                Welcome to Metro v0.80.9
              Fast - Scalable - Integrated


⠹ Waiting for bundler to finish...info React Native v0.74.1 is now available (your project is running on v0.73.4).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.74.1
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.74.1
info For more info, check out "https://reactnative.dev/docs/upgrading?os=macos".
✔ Waiting for bundler to finish...

  WARNING: You should run npx react-native@latest to ensure you're always using the most current version of the CLI. NPX has cached version (0.73.4) != current release (0.74.1)

warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "npx react-native config" command and contact the package maintainers about this.
error Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard location (e.g. not inside 'android' folder), consider setting `project.android.sourceDir` option to point to a new location.
error: ⨯ ○ run: COMMAND:

node  /Users/gabriele/Desktop/tests/renative/node_modules/react-native/cli.js run-android --mode=Debug --no-packager --main-activity=SplashActivity --deviceId=emulator-5554

FAILED with ERROR:

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


┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 5/23/2024, 3:20:34 PM | rnv@1.0.0-rc.19             │
│ $ rnv                                                           │
├─────────────────────────────────────────────────────────────────┤
│ Project: @rnv/app-harness@1.0.0-rc.19                           │
│ Workspace: rnv                                                  │
│ Platform (-p): androidtv                                        │
│ Engine: @rnv/engine-rn                                          │
│ Template: @rnv/template-starter                                 │
│ App Config (-c): harness                                        │
│ Build Scheme (-s): debug                                        │
│ Target (-t): Television_1080p_API_31                            │
│ Supported Platforms: ios, android, androidtv, firetv, androidwear, web, tizen, tvos, webos, macos, windows, tizenwatch, kaios, chromecast, linux, windows
│ Env Info: darwin | arm64 | node v18.19.0                        │
│ Executed Time: 0h:0m:19s:763ms                                  │
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/settings.gradle
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/build.gradle
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/build.gradle
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainActivity.kt
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/MainApplication.kt
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/java/rnv_template/SplashActivity.kt
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/res/values/strings.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/app-harness/platformBuilds/harness_androidtv/app/src/main/res/values/strings.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/res/values/styles.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/res/values/colors.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/app-harness/platformBuilds/harness_androidtv/app/src/main/res/values/colors.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/app/src/main/AndroidManifest.xml
│ error: ⨯ ○ configure: Cannot write file. source path doesn't exist: /Users/gabriele/Desktop/tests/renative/packages/engine-rn/templates/platforms/androidtv/gradle.properties
│ info: ✔ Found active emulator! emulator-5554. Will use it
│ error: ⨯ ○ run: COMMAND:

node  /Users/gabriele/Desktop/tests/renative/node_modules/react-native/cli.js run-android --mode=Debug --no-packager --main-activity=SplashActivity --deviceId=emulator-5554

FAILED with ERROR:

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


│ Project location: ./platformBuilds/harness_androidtv            │
└─────────────────────────────────────────────────────────────────┘
➜  app-harness git:(1.0.0-rc.19)

Desktop (please complete the following information):

  • OS: macOS Ventura 13.6.4 (M2)
  • Node Version 18.19.0
  • RNV Version 1.0.0-rc.19
  • @rnv/template-starter 1.0.0-rc.19
@GabrieleKaceviciute GabrieleKaceviciute added the bug Something isn't working label May 22, 2024
@RicardasN RicardasN assigned RicardasN and unassigned RicardasN May 23, 2024
@justinasRm justinasRm self-assigned this May 27, 2024
@justinasRm justinasRm added this to the 1.0 milestone May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants