Поскольку моя подписка на выставку бесплатна, я достиг предела сборки и, следовательно, мне приходится прибегать к локальной сборке на моем компьютере.
Я выполнил команду npx eas build --platform android --profile Production --local, но получил следующую ошибку:
[RUN_GRADLEW] [Incubating] Problems report is available at: file:///private/tmp/eas-build-local-nodejs/74502f58-b790-4718-8ce2-5a99ed66dead/build/android/build/reports/problems/problems-report.html
[RUN_GRADLEW] FAILURE: Build failed with an exception.
[RUN_GRADLEW] * Where:
[RUN_GRADLEW] Build file '/private/tmp/eas-build-local-nodejs/74502f58-b790-4718-8ce2-5a99ed66dead/build/android/build.gradle' line: 24
[RUN_GRADLEW] * What went wrong:
[RUN_GRADLEW] A problem occurred evaluating root project 'easeview'.
[RUN_GRADLEW] > Failed to apply plugin 'com.facebook.react.rootproject'.
[RUN_GRADLEW] > A problem occurred configuring project ':app'.
[RUN_GRADLEW] > SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/private/tmp/eas-build-local-nodejs/74502f58-b790-4718-8ce2-5a99ed66dead/build/android/local.properties'.
[RUN_GRADLEW] * Try:
[RUN_GRADLEW] > Run with --stacktrace option to get the stack trace.
[RUN_GRADLEW] > Run with --info or
[RUN_GRADLEW] --debug option to get more log output.
[RUN_GRADLEW] > Run with --scan to get full insights.
[RUN_GRADLEW] > Get more help at https://help.gradle.org.
[RUN_GRADLEW] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
[RUN_GRADLEW] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
[RUN_GRADLEW] For more on this, please refer to https://docs.gradle.org/8.14.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
[RUN_GRADLEW] BUILD FAILED
[RUN_GRADLEW] in 5s
[RUN_GRADLEW] 32 actionable tasks: 32 executed
[RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Build failed
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
at resolveBuildPhas
Я уже установил переменную среды ANDROID_HOME. На самом деле я попробовал предварительную сборку expo: npx expo run:android, и она успешно собралась
Поскольку моя подписка на выставку бесплатна, я достиг предела сборки и, следовательно, мне приходится прибегать к локальной сборке на моем компьютере. Я выполнил команду npx eas build --platform android --profile Production --local, но получил следующую ошибку: [code][RUN_GRADLEW] [Incubating] Problems report is available at: file:///private/tmp/eas-build-local-nodejs/74502f58-b790-4718-8ce2-5a99ed66dead/build/android/build/reports/problems/problems-report.html [RUN_GRADLEW] FAILURE: Build failed with an exception. [RUN_GRADLEW] * Where: [RUN_GRADLEW] Build file '/private/tmp/eas-build-local-nodejs/74502f58-b790-4718-8ce2-5a99ed66dead/build/android/build.gradle' line: 24 [RUN_GRADLEW] * What went wrong: [RUN_GRADLEW] A problem occurred evaluating root project 'easeview'. [RUN_GRADLEW] > Failed to apply plugin 'com.facebook.react.rootproject'. [RUN_GRADLEW] > A problem occurred configuring project ':app'. [RUN_GRADLEW] > SDK location not found. Define a valid SDK location with an ANDROID_HOME environment variable or by setting the sdk.dir path in your project's local properties file at '/private/tmp/eas-build-local-nodejs/74502f58-b790-4718-8ce2-5a99ed66dead/build/android/local.properties'. [RUN_GRADLEW] * Try: [RUN_GRADLEW] > Run with --stacktrace option to get the stack trace. [RUN_GRADLEW] > Run with --info or [RUN_GRADLEW] --debug option to get more log output. [RUN_GRADLEW] > Run with --scan to get full insights. [RUN_GRADLEW] > Get more help at https://help.gradle.org. [RUN_GRADLEW] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. [RUN_GRADLEW] You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. [RUN_GRADLEW] For more on this, please refer to https://docs.gradle.org/8.14.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. [RUN_GRADLEW] BUILD FAILED [RUN_GRADLEW] in 5s [RUN_GRADLEW] 32 actionable tasks: 32 executed [RUN_GRADLEW] Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
Build failed Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information. Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information. at resolveBuildPhas [/code] Я уже установил переменную среды ANDROID_HOME. На самом деле я попробовал предварительную сборку expo: npx expo run:android, и она успешно собралась