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

[android, androidTV, androidwear, fireTV] can't run/build/export template starter on windows #1199

Closed GabrieleKaceviciute closed 3 months ago

GabrieleKaceviciute commented 1 year ago

Describe the bug Can't run/build/export all android platforms (sanity_1.0.0-2 tag)

To Reproduce

  1. go to template-starter package
  2. run rnv run -p android -> another terminal window opens and error appears

Expected behavior Template app should start in Android simulator

Screenshots or copy&paste

[ task ] [run] _runGradleApp[1]
βœ” Executing: npx react-native run-android --mode=Debug --no-packager --deviceId=emulator-5554

| Executing: C:\Users\dev\AppData\Local\Android\sdk\emulator\emulator.exe -avd "Android_TV_1080p_API_29"error Command failed with exit code 1: gradlew.bat tasks

FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_androidtv\settings.gradle' line: 2

* What went wrong:
Could not compile settings file 'C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_androidtv\settings.gradle'.
> startup failed:
  settings file 'C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_androidtv\settings.gradle': 2: Unexpected character: '"' @ line 2, column 18.
     apply from: file("..\..\..\..\node_modules\@react-native-community\cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
                      ^

  1 error

* 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 3s.
Error: Command failed with exit code 1: gradlew.bat tasks

FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_androidtv\settings.gradle' line: 2

* What went wrong:
Could not compile settings file 'C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_androidtv\settings.gradle'.
> startup failed:
  settings file 'C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_androidtv\settings.gradle': 2: Unexpected character: '"' @ line 2, column 18.
     apply from: file("..\..\..\..\node_modules\@react-native-community\cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
                      ^

  1 error

* 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 3s
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at Function.module.exports.sync (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:194:17)
    at getGradleTasks (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\listAndroidTasks.js:53:32)
    at getTaskNames (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\getTaskNames.js:21:73)
    at runOnSpecificDevice (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:184:55)
    at buildAndRun (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:167:12)
    at Object.runAndroid [as func] (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\index.js:100:10)
    at Command.handleAction (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli\build\index.js:111:9)
/ Executing: C:\Users\dev\AppData\Local\Android\sdk\emulator\emulator.exe -avd "Android_TV_1080p_API_29"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 (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

 $ rnv run -p androidtv - Done! RNV
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  RNV  SUMMARY | 24/10/2023, 12:18:56                                         β”‚
β”‚  $ rnv run -p androidtv                                                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  ReNative Version: 1.0.0-canary.7                                            β”‚
β”‚  Project Name ($package.name): @rnv/template-starter                         β”‚
β”‚  Project Version ($package.version): 1.0.0-canary.7                          β”‚
β”‚  Workspace ($.workspaceID): rnv                                              β”‚
β”‚  Platform (-p): androidtv                                                    β”‚
β”‚  Engine ($.platforms.androidtv.engine): engine-rn-tvos                       β”‚
β”‚  App Config (-c): template                                                   β”‚
β”‚  Build Scheme (-s): debug                                                    β”‚
β”‚  Target (-t): Android_TV_1080p_API_29                                        β”‚
β”‚  Supported Platforms: androidtv                                              β”‚
β”‚  Master Template: @rnv/template-starter                                      β”‚
β”‚  Env Info: win32 | x64 | node v18.14.2                                       β”‚
β”‚  Executed Time: 0h:0m:27s:497ms                                              β”‚
β”‚                                                                              β”‚
β”‚ [ success ] [run] Found active emulator! emulator-5554. Will use it
β”‚ You are trying to run global rnv command in your current project.
β”‚ This might lead to unexpected behaviour.
β”‚ Run your rnv command with npx prefix:
β”‚ npx rnv run -p androidtv
β”‚                                                                              β”‚
β”‚  Project location:                                                           β”‚
β”‚  C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_androidtv
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
PS C:\Users\dev\Desktop\renative\packages\template-starter>

Desktop (please complete the following information):

ElenaDiachenko commented 10 months ago

Should be fixed in thisPR https://github.com/flexn-io/renative/pull/1301

GabrieleKaceviciute commented 10 months ago

1.0.0-rc.8


[ task ] <= [build] <= package
[ task ] [build] buildAndroid[1]
Γ— FAILED: npx react-native build-android --mode=Debug --no-packager --tasks assembleDebug
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  RNV  SUMMARY | 05/01/2024, 14:06:40                                         β”‚
β”‚  $ npx rnv build -p android                                                  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  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                                                 β”‚
β”‚  Supported Platforms: android                                                β”‚
β”‚  Env Info: win32 | x64 | node v18.19.0                                       β”‚
β”‚  Executed Time: 0h:0m:16s:346ms                                              β”‚
β”‚                                                                              β”‚
β”‚ [ error ] [build] COMMAND:

npx react-native build-android --mode=Debug --no-packager --tasks assembleDebug

FAILED with ERROR:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project '@rnv-template-starter'.
> Could not determine the dependencies of null.
   > Could not resolve all task dependencies for configuration ':classpath'.
      > Could not find com.android.tools.build:gradle:.
        Required by:
            project :
      > Could not resolve com.facebook.react:react-native-gradle-plugin.
        Required by:
            project :
         > No matching variant of project :gradle-plugin was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0.1' but:
             - Variant 'apiElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'mainSourceElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a component, and its dependencies declared externally:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)
             - Variant 'runtimeElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'testResultsElementsForTest' capability com.facebook.react:react-native-gradle-plugin:unspecified:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)

* 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 8s

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.bat app:assembleDebug
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at Function.module.exports.sync (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:194:17)
    at build (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\buildAndroid\index.js:95:22)
    at Object.buildAndroid [as func] (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\buildAndroid\index.js:87:10)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Command.handleAction (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli\build\index.js:111:9)
info Run CLI with --verbose flag for more details.

Command failed with exit code 1: npx react-native build-android --mode=Debug --no-packager --tasks assembleDebug
warn Both "tasks" and "mode" parameters were passed to "build" command. Using "tasks" for building the app.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project '@rnv-template-starter'.
> Could not determine the dependencies of null.
   > Could not resolve all task dependencies for configuration ':classpath'.
      > Could not find com.android.tools.build:gradle:.
        Required by:
            project :
      > Could not resolve com.facebook.react:react-native-gradle-plugin.
        Required by:
            project :
         > No matching variant of project :gradle-plugin was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0.1' but:
             - Variant 'apiElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'mainSourceElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a component, and its dependencies declared externally:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)
             - Variant 'runtimeElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'testResultsElementsForTest' capability com.facebook.react:react-native-gradle-plugin:unspecified:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)

* 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 8s
error Failed to build the app.
info Building the app...

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: Command failed with exit code 1: gradlew.bat app:assembleDebug
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at Function.module.exports.sync (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:194:17)
    at build (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\buildAndroid\index.js:95:22)
    at Object.buildAndroid [as func] (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\buildAndroid\index.js:87:10)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Command.handleAction (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli\build\index.js:111:9)
info Run CLI with --verbose flag for more details.

warn Both "tasks" and "mode" parameters were passed to "build" command. Using "tasks" for building the app.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project '@rnv-template-starter'.
> Could not determine the dependencies of null.
   > Could not resolve all task dependencies for configuration ':classpath'.
      > Could not find com.android.tools.build:gradle:.
        Required by:
            project :
      > Could not resolve com.facebook.react:react-native-gradle-plugin.
        Required by:
            project :
         > No matching variant of project :gradle-plugin was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0.1' but:
             - Variant 'apiElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'mainSourceElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a component, and its dependencies declared externally:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)
             - Variant 'runtimeElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'testResultsElementsForTest' capability com.facebook.react:react-native-gradle-plugin:unspecified:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)

* 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 8s
error Failed to build the app.

Error: Command failed with exit code 1: npx react-native build-android --mode=Debug --no-packager --tasks assembleDebug
warn Both "tasks" and "mode" parameters were passed to "build" command. Using "tasks" for building the app.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project '@rnv-template-starter'.
> Could not determine the dependencies of null.
   > Could not resolve all task dependencies for configuration ':classpath'.
      > Could not find com.android.tools.build:gradle:.
        Required by:
            project :
      > Could not resolve com.facebook.react:react-native-gradle-plugin.
        Required by:
            project :
         > No matching variant of project :gradle-plugin was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0.1' but:
             - Variant 'apiElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component for use during compile-time, compatible with Java 11 and the consumer needed a component for use during runtime, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'mainSourceElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a component, and its dependencies declared externally:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)
             - Variant 'runtimeElements' capability com.facebook.react:react-native-gradle-plugin:unspecified declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
                 - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a component, compatible with Java 8
                 - Other compatible attribute:
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
             - Variant 'testResultsElementsForTest' capability com.facebook.react:react-native-gradle-plugin:unspecified:
                 - Incompatible because this component declares a component of category 'verification' and the consumer needed a library
                 - Other compatible attributes:
                     - Doesn't say anything about how its dependencies are found (required its dependencies declared externally)
                     - Doesn't say anything about its target Java version (required compatibility with Java 8)
                     - Doesn't say anything about its elements (required them packaged as a jar)
                     - Doesn't say anything about org.gradle.plugin.api-version (required '8.0.1')
                     - Doesn't say anything about its usage (required runtime)

* 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 8s
error Failed to build the app.
info Building the app...

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: Command failed with exit code 1: gradlew.bat app:assembleDebug
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at Function.module.exports.sync (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:194:17)
    at build (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\buildAndroid\index.js:95:22)
    at Object.buildAndroid [as func] (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli-platform-android\build\commands\buildAndroid\index.js:87:10)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Command.handleAction (C:\Users\dev\Desktop\renative\node_modules\@react-native-community\cli\build\index.js:111:9)
info Run CLI with --verbose flag for more details.
    at makeError (C:\Users\dev\Desktop\renative\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\dev\Desktop\renative\node_modules\execa\index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

β”‚                                                                              β”‚
β”‚  Project location:                                                           β”‚
β”‚  C:\Users\dev\Desktop\renative\packages\template-starter\platformBuilds\template_android
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

C:\Users\dev\Desktop\renative\packages\template-starter>
ElenaDiachenko commented 10 months ago

1.0.0-rc.8. Can’t reproduce.

GabrieleKaceviciute commented 10 months ago

1.0.0-rc.8 build works, run issue is tracked on this ticket https://github.com/flexn-io/renative/issues/1083