renative icon indicating copy to clipboard operation
renative copied to clipboard

Fix create android simulator error

Open Marius456 opened this issue 9 months ago • 1 comments

Description

  • While creating simulator, it doesn't take into account cpu

Related issues

  • https://github.com/flexn-io/renative/issues/987

Npm releases

n/a

Marius456 avatar May 08 '24 11:05 Marius456

I've tested on macOS Ventura 13.6.4 (M2) -> android -> simulator created androidwear -> simulator created androidtv -> error

➜  template-starter git:(fix/create_android_sim) npx rnv run -p androidtv -r

┌─────────────────────────────────────────────────────────────────┐
│ ██████╗ ███████╗███╗   ██╗ █████╗ ████████╗██╗██╗   ██╗███████╗ │
│ ██╔══██╗██╔════╝████╗  ██║██╔══██╗╚══██╔══╝██║██║   ██║██╔════╝ │
│ ██████╔╝█████╗  ██╔██╗ ██║███████║   ██║   ██║██║   ██║█████╗   │
│ ██╔══██╗██╔══╝  ██║╚██╗██║██╔══██║   ██║   ██║╚██╗ ██╔╝██╔══╝   │
│ ██║  ██║███████╗██║ ╚████║██║  ██║   ██║   ██║ ╚████╔╝ ███████╗ │
│ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═══╝  ╚══════╝ │
│ 🚀 v:1.0.0-rc.18 | renative.org | 5/9/2024, 11:41:53 AM         │
│ $ rnv run -p androidtv -r                                       │
└─────────────────────────────────────────────────────────────────┘
info: Current engine: @rnv/engine-rn-tvos (../engine-rn-tvos)
task: ○ run ↺1
info: Build hooks not complied. BUILDING...
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: template
task: ✔ app configure
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-community/cli-platform-ios/build/tools/listIOSDevices.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli-platform-ios/[email protected]
info: ../../node_modules/@react-native-community/cli/build/bin.js overriden by: /@rnv/config-templates/pluginTemplates/@react-native-community/cli/overrides.json
task: ✔ project configure
info: Current Build Scheme: debug
task: ○ sdk configure ↺1
task: ✔ sdk configure
info: You passed -r argument. "./platformBuilds/template_androidtv" CLEANING...DONE
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.
task: ✔ configure
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
✔ Executing: /Users/gabriele/Library/Android/sdk/emulator/emulator -list-avds
? Do you want ReNative to create new Emulator (Television_1080p_API_31) for you? Yes
✖ FAILED: /Users/gabriele/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;android-tv;arm64-v8a"
error: ⨯ ○ run: COMMAND:

/Users/gabriele/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;android-tv;arm64-v8a"

FAILED with ERROR:

Loading package information... Loading local repository... [ ] 3% Loading local repository... [ ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[= ] 4% Fetch remote repository... [= ] 5% Fetch remote repository... [== ] 5% Fetch remote repository... [== ] 6% Fetch remote repository... [== ] 7% Fetch remote repository... [== ] 7% Computing updates... [=== ] 8% Computing updates... [=== ] 10% Computing updates... [=== ] 10% Computing updates... Warning: Failed to find package 'system-images;android-30;android-tv;arm64-v8a'

Error: Command failed with exit code 1: /Users/gabriele/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;android-tv;arm64-v8a"
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Failed to find package 'system-images;android-30;android-tv;arm64-v8a'
[===                                    ] 10% Computing updates...
    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)

Warning: Errors during XML parse:       ] 3% Fetch remote repository...
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Failed to find package 'system-images;android-30;android-tv;arm64-v8a'


error: ⨯ ○ run: COMMAND:

/Users/gabriele/Library/Android/sdk/emulator/emulator -avd Television_1080p_API_31

FAILED with ERROR:

Error: Command failed with exit code 1: /Users/gabriele/Library/Android/sdk/emulator/emulator -avd Television_1080p_API_31
    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)


✔ 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
looking for active emulators: attempt 2/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 3/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 4/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 5/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 6/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 7/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 8/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 9/10
✔ Executing: /Users/gabriele/Library/Android/sdk/platform-tools/adb devices -l
looking for active emulators: attempt 10/10
error: ⨯ ○ run: Could not find any active emulators
┌─────────────────────────────────────────────────────────────────┐
│ ⨯ SUMMARY | 5/9/2024, 11:42:48 AM | [email protected]             │
│ $ rnv run -p androidtv -r                                       │
├─────────────────────────────────────────────────────────────────┤
│ Project: @rnv/[email protected]                      │
│ Workspace: rnv                                                  │
│ Platform (-p): androidtv                                        │
│ Engine: @rnv/engine-rn-tvos                                     │
│ App Config (-c): template                                       │
│ Build Scheme (-s): debug                                        │
│ Target (-t): Television_1080p_API_31                            │
│ Reset Project (-r): true                                        │
│ Supported Platforms: ios, android, androidtv, firetv, androidwear, web, tizen, tvos, webos, macos, tizenwatch, kaios, chromecast, linux
│ Env Info: darwin | arm64 | node v18.19.0                        │
│ Executed Time: 0h:0m:54s:580ms                                  │
│ error: ⨯ ○ run: COMMAND:

/Users/gabriele/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;android-tv;arm64-v8a"

FAILED with ERROR:

Loading package information... Loading local repository... [ ] 3% Loading local repository... [ ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... [= ] 3% Fetch remote repository... Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
[= ] 4% Fetch remote repository... [= ] 5% Fetch remote repository... [== ] 5% Fetch remote repository... [== ] 6% Fetch remote repository... [== ] 7% Fetch remote repository... [== ] 7% Computing updates... [=== ] 8% Computing updates... [=== ] 10% Computing updates... [=== ] 10% Computing updates... Warning: Failed to find package 'system-images;android-30;android-tv;arm64-v8a'

Error: Command failed with exit code 1: /Users/gabriele/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "system-images;android-30;android-tv;arm64-v8a"
Warning: Errors during XML parse:
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Failed to find package 'system-images;android-30;android-tv;arm64-v8a'
[===                                    ] 10% Computing updates...
    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)

Warning: Errors during XML parse:       ] 3% Fetch remote repository...
Warning: Additionally, the fallback loader failed to parse the XML.
Warning: Failed to find package 'system-images;android-30;android-tv;arm64-v8a'


│ error: ⨯ ○ run: COMMAND:

/Users/gabriele/Library/Android/sdk/emulator/emulator -avd Television_1080p_API_31

FAILED with ERROR:

Error: Command failed with exit code 1: /Users/gabriele/Library/Android/sdk/emulator/emulator -avd Television_1080p_API_31
    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)


│ error: ⨯ ○ run: Could not find any active emulators
│ Project location: ./platformBuilds/template_androidtv           │
└─────────────────────────────────────────────────────────────────┘
➜  template-starter git:(fix/create_android_sim)

GabrieleKaceviciute avatar May 09 '24 08:05 GabrieleKaceviciute