Need help with Gradle React Native Expo

Hello, I am trying to build my app with eas cli from expo and i get these errors and I don’t know what else to do to be honest to solve them. I would extremely appreciate if someone can help me with these and I don’t know what to do anymore to not have these errors when i build my app.

FAILURE: Build failed with an exception.

89

* What went wrong:

90

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

91

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

92

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

93

     Required by:

94

         project :app

95

      > No matching variant of project :amplitude_analytics-react-native was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

96

          - No variants exist.

97

   > Could not resolve project :react-native-async-storage_async-storage.

98

     Required by:

99

         project :app

100

      > No matching variant of project :react-native-async-storage_async-storage was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

101

          - No variants exist.

102

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

103

     Required by:

104

         project :app

105

      > No matching variant of project :react-native-community_slider was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

106

          - No variants exist.

107

   > Could not resolve project :react-native-gesture-handler.

108

     Required by:

109

         project :app

110

      > No matching variant of project :react-native-gesture-handler was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

111

          - No variants exist.

112

   > Could not resolve project :react-native-get-random-values.

113

     Required by:

114

         project :app

115

      > No matching variant of project :react-native-get-random-values was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

116

          - No variants exist.

117

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

118

     Required by:

119

         project :app

120

      > No matching variant of project :react-native-purchases was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

121

          - No variants exist.

122

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

123

     Required by:

124

         project :app

125

      > No matching variant of project :react-native-reanimated was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

126

          - No variants exist.

127

   > Could not resolve project :react-native-safe-area-context.

128

     Required by:

129

         project :app

130

      > No matching variant of project :react-native-safe-area-context was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

131

          - No variants exist.

132

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

133

     Required by:

134

         project :app

135

      > No matching variant of project :react-native-screens was found. The consumer was configured to find a library for use during compile-time, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '8.7.0', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:

136

- No variants exist.

137

* Try:

138

> Creating consumable variants is explained in more detail at https://docs.gradle.org/8.10.1/userguide/declaring_dependencies.html#sec:resolvable-consumable-configs.

139

> Review the variant matching algorithm at https://docs.gradle.org/8.10.1/userguide/variant_attributes.html#sec:abm_algorithm.

140

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

141

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

142

> Run with --scan to get full insights.

143

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

144

BUILD FAILED in 1m 44s

145

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

146

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

147

For more on this, please refer to https://docs.gradle.org/8.10.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

148

23 actionable tasks: 23 executed

149

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

I use distributionUrl=https://services.gradle.org/distributions/gradle-8.10.1-all.zip
buildToolsVersion = findProperty(‘android.buildToolsVersion’) ?: ‘34.0.0’
minSdkVersion = Integer.parseInt(findProperty(‘android.minSdkVersion’) ?: ‘24’)
compileSdkVersion = Integer.parseInt(findProperty(‘android.compileSdkVersion’) ?: ‘34’)
targetSdkVersion = Integer.parseInt(findProperty(‘android.targetSdkVersion’) ?: ‘34’)
kotlinVersion = ‘1.8.10’
classpath(‘com.android.tools.build:gradle:8.7.0’)
classpath(‘com.facebook.react:react-native-gradle-plugin’)
classpath(‘org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion’)
classpath(‘org.codehaus.groovy:groovy-json:3.0.9’)
classpath “com.google.devtools.ksp:symbol-processing-gradle-plugin:1.9.24-1.0.20”

Please help…