我使用 EAS 直接构建应用程序,所以我不需要编译预构建即(.android)文件
错误:Expo 模块的 Gradle 构建失败
我在使用 Expo 构建项目时遇到以下错误:
* Where:
Script '/home/expo/workingdir/build/node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle' line: 408
* What went wrong:
A problem occurred evaluating project ':expo'.
> A problem occurred configuring project ':expo-crypto'.
> Failed to notify project evaluation listener.
> compileSdkVersion is not specified. Please add it to build.gradle
> Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
* Where:
Script '/home/expo/workingdir/build/node_modules/expo-modules-core/android/ExpoModulesCorePlugin.gradle' line: 85
* What went wrong:
A problem occurred configuring project ':expo'.
> Could not get unknown property 'release' for SoftwareComponent container of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
构建状态:
BUILD FAILED in 1m 37s
错误:
Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.
我直接使用 EAS 在 Expo 上构建 React Native 应用程序。我尝试使用 EXPO DOCTOR 进行调试并修复了多个潜在问题,但仍然遇到相同的错误。
你修好了吗?这里有同样的问题...