EAS error on android build - gradlew??

I NEED TO DELIEVER THIS TODAY!!!
Got this error when trying to build my app for android:

Running 'gradlew :app:bundleRelease' in /home/expo/workingdir/build/android

2

Downloading https://services.gradle.org/distributions/gradle-7.5.1-all.zip

3

10%.

4

20%.

5

30%.

6

40%.

7

50%.

8

60%.

9

70%.

10

80%.

11

90%

12

100%

13

Welcome to Gradle 7.5.1!

14

Here are the highlights of this release:

15

- Support for Java 18

16

 - Support for building with Groovy 4

17

 - Much more responsive continuous builds

18

 - Improved diagnostics for dependency resolution

19

For more details see https://docs.gradle.org/7.5.1/release-notes.html

20

To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.5.1/userguide/gradle_daemon.html#sec:disabling_the_daemon.

21

Daemon will be stopped at the end of the build

22

> Task :react-native-gradle-plugin:pluginDescriptors

23

> Task :react-native-gradle-plugin:processResources

24

> Task :react-native-gradle-plugin:compileKotlin

25

> Task :react-native-gradle-plugin:compileJava NO-SOURCE

26

> Task :react-native-gradle-plugin:classes

27

> Task :react-native-gradle-plugin:inspectClassesForKotlinIC

28

> Task :react-native-gradle-plugin:jar

29

> Configure project :expo-application

30

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

31

> Configure project :expo-barcode-scanner

32

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

33

> Configure project :expo-constants

34

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

35

> Configure project :expo-file-system

36

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

37

> Configure project :expo-font

38

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

39

> Configure project :expo-image-loader

40

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

41

> Configure project :expo-keep-awake

42

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

43

> Configure project :expo-linear-gradient

44

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

45

> Configure project :expo-modules-core

46

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

47

Checking the license for package NDK (Side by side) 23.1.7779620 in /home/expo/Android/Sdk/licenses

48

License for package NDK (Side by side) 23.1.7779620 accepted.

49

Preparing "Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)".

50

"Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" ready.

51

Installing NDK (Side by side) 23.1.7779620 in /home/expo/Android/Sdk/ndk/23.1.7779620

52

"Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" complete.

53

"Install NDK (Side by side) 23.1.7779620 (revision: 23.1.7779620)" finished.

54

Checking the license for package CMake 3.22.1 in /home/expo/Android/Sdk/licenses

55

License for package CMake 3.22.1 accepted.

56

Preparing "Install CMake 3.22.1 (revision: 3.22.1)".

57

"Install CMake 3.22.1 (revision: 3.22.1)" ready.

58

Installing CMake 3.22.1 in /home/expo/Android/Sdk/cmake/3.22.1

59

"Install CMake 3.22.1 (revision: 3.22.1)" complete.

60

"Install CMake 3.22.1 (revision: 3.22.1)" finished.

61

> Configure project :expo-splash-screen

62

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

63

> Configure project :expo

64

Using expo modules

65

- expo-application (5.1.1)

66

- expo-barcode-scanner (12.3.2)

67

- expo-constants (14.2.1)

68

- expo-file-system (15.2.2)

69

- expo-font (11.1.1)

70

- expo-image-loader (4.1.1)

71

- expo-keep-awake (12.0.1)

72

- expo-linear-gradient (12.1.2)

73

- expo-modules-core (1.2.7)

74

  - expo-splash-screen (0.18.2)

75

WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

76

> Configure project :react-native-reanimated

77

AAR for react-native-reanimated has been found

78

/home/expo/workingdir/build/node_modules/react-native-reanimated/android/react-native-reanimated-71-hermes.aar

79[stderr]

FAILURE: Build failed with an exception.

80[stderr]

* What went wrong:

81[stderr]

Could not determine the dependencies of task ':app:buildReleasePreBundle'.

82[stderr]

> Could not resolve all task dependencies for configuration ':app:releaseRuntimeClasspath'.

83[stderr]

   > Could not resolve project :react-native-camera.

84[stderr]

     Required by:

85[stderr]

         project :app

86[stderr]

      > The consumer was configured to find a runtime of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1'. However we cannot choose between the following variants of project :react-native-camera:

87[stderr]

          - generalReleaseRuntimeElements

88[stderr]

          - mlkitReleaseRuntimeElements

89[stderr]

        All of them match the consumer attributes:

90[stderr]

          - Variant 'generalReleaseRuntimeElements' capability Koru App:react-native-camera:unspecified declares a runtime of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release':

91[stderr]

- Unmatched attributes:

92[stderr]

                  - Provides attribute 'com.android.build.api.attributes.ProductFlavor:react-native-camera' with value 'general' but the consumer didn't ask for it

93[stderr]

                  - Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'generalRelease' but the consumer didn't ask for it

94[stderr]

                  - Doesn't say anything about its target Java environment (preferred optimized for Android)

95[stderr]

                  - Provides attribute 'react-native-camera' with value 'general' but the consumer didn't ask for it

96[stderr]

          - Variant 'mlkitReleaseRuntimeElements' capability Koru App:react-native-camera:unspecified declares a runtime of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release':

97[stderr]

              - Unmatched attributes:

98[stderr]

                  - Provides attribute 'com.android.build.api.attributes.ProductFlavor:react-native-camera' with value 'mlkit' but the consumer didn't ask for it

99[stderr]

                  - Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'mlkitRelease' but the consumer didn't ask for it

100[stderr]

                  - Doesn't say anything about its target Java environment (preferred optimized for Android)

101[stderr]

                  - Provides attribute 'react-native-camera' with value 'mlkit' but the consumer didn't ask for it

102[stderr]

        The following variants were also considered but didn't match the requested attributes:

103[stderr]

          - Variant 'generalDebugApiElements' capability Koru App:react-native-camera:unspecified declares a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1':

104[stderr]

              - Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release'

105[stderr]

              - Other compatible attribute:

106[stderr]

                  - Doesn't say anything about its target Java environment (preferred optimized for Android)

107[stderr]

          - Variant 'generalDebugRuntimeElements' capability Koru App:react-native-camera:unspecified declares a runtime of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1':

108[stderr]

              - Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release'

109[stderr]

              - Other compatible attribute:

110[stderr]

                  - Doesn't say anything about its target Java environment (preferred optimized for Android)

111[stderr]

          - Variant 'generalReleaseApiElements' capability Koru App:react-native-camera:unspecified declares a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release':

112[stderr]

              - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component

113[stderr]

              - Other compatible attribute:

114[stderr]

                  - Doesn't say anything about its target Java environment (preferred optimized for Android)

115[stderr]

          - Variant 'mlkitDebugApiElements' capability Koru App:react-native-camera:unspecified declares a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1':

116[stderr]

              - Incompatible because this component declares an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a runtime of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release'

117[stderr]

              - Other compatible attribute:

118[stderr]

                  - Doesn't say anything about its target Java environment (preferred optimized for Android)

119[stderr]

          - Variant 'mlkitDebugRuntimeElements' capability Koru App:react-native-camera:unspecified declares a runtime of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1':

120[stderr]

              - Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release'

121[stderr]

              - Other compatible attribute:

122[stderr]

- Doesn't say anything about its target Java environment (preferred optimized for Android)

123[stderr]

          - Variant 'mlkitReleaseApiElements' capability Koru App:react-native-camera:unspecified declares a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.4.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release'

124[stderr]

:

125[stderr]

              - Incompatible because this component declares an API of a component and the consumer needed a runtime of a component

126[stderr]

              - Other compatible attribute:

127[stderr]

                  - Doesn't say anything about its target Java environment (preferred optimized for Android)

128[stderr]

* Try:

129[stderr]

> Run with --stacktrace option to get the stack trace.

130[stderr]

> Run with --info or --debug option to get more log output.

131[stderr]

> Run with --scan to get full insights.

132[stderr]

* Get more help at https://help.gradle.org

133[stderr]

BUILD FAILED in 2m 59s

134

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

135

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

136

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

137

5 actionable tasks: 5 executed

138

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Hi, could you send me output from expo doctor command or link to your build?

Hi, I managed to download the apk, but when I try to open it on mmy phone the splash screen shows up and then it crashes…