Can someone help, it’s my senior project and I’m facing a problem while building the apk in my react native app,
Running ‘gradlew :app:bundleRelease’ in /home/expo/workingdir/build/android
Downloading https://services.gradle.org/distributions/gradle-8.6-all.zip
10%.
20%.
30%.
40%
50
%.
60
%.
70%.
80%.
90%.
100%
Welcome to Gradle 8.6!
Here are the highlights of this release:
- Configurable encryption key for configuration cache
- Build init improvements
- Build authoring improvements
For more details see https://docs.gradle.org/8.6/release-notes.html
To honour the JVM settings for this build a single-use Daemon process will be forked. For more on this, please refer to https://docs.gradle.org/8.6/userguide/gradle_daemon.html#sec:disabling_the_daemon in the Gradle documentation.
Daemon will be stopped at the end of the build
Path for java installation ‘/usr/lib/jvm/openjdk-17’ (Common Linux Locations) does not contain a java executable
Task :gradle-plugin:checkKotlinGradlePluginConfigurationErrors
Task :gradle-plugin:pluginDescriptors
Task :gradle-plugin:processResources
Task :gradle-plugin:compileKotlin
Task :gradle-plugin:compileJava NO-SOURCE
Task :gradle-plugin:classes
Task :gradle-plugin:jar
Configure project :expo-modules-core
Checking the license for package NDK (Side by side) 26.1.10909125 in /home/expo/Android/Sdk/licenses
License for package NDK (Side by side) 26.1.10909125 accepted.
Preparing “Install NDK (Side by side) 26.1.10909125 v.26.1.10909125”.
“Install NDK (Side by side) 26.1.10909125 v.26.1.10909125” ready.
Installing NDK (Side by side) 26.1.10909125 in /home/expo/Android/Sdk/ndk/26.1.10909125
“Install NDK (Side by side) 26.1.10909125 v.26.1.10909125” complete.
“Install NDK (Side by side) 26.1.10909125 v.26.1.10909125” finished.
Configure project :expo
Using expo modules
- [32mexpo-asset[0m (10.0.6)
- [32mexpo-constants[0m (16.0.1)
- [32mexpo-file-system[0m (17.0.1)
- [32mexpo-font[0m (12.0.5)
- [32mexpo-keep-awake[0m (13.0.2)
- [32mexpo-location[0m (17.0.1)
- [32mexpo-modules-core[0m (1.12.11)
- [32mexpo-secure-store[0m (13.0.1)
Configure project :react-native-reanimated
Android gradle plugin: 8.2.1
Gradle: 8.6
Configure project :react-native-vision-camera
[VisionCamera] Thank you for using VisionCamera ❤️
[VisionCamera] If you enjoy using VisionCamera, please consider sponsoring this project: http://github.com/sponsors/mrousavy
[VisionCamera] node_modules found at /home/expo/workingdir/build/node_modules
[VisionCamera] VisionCamera_enableFrameProcessors is set to true!
[VisionCamera] react-native-worklets-core not found, Frame Processors are disabled!
[VisionCamera] VisionCamera_enableCodeScanner is set to false!
Checking the license for package Android SDK Build-Tools 34 in /home/expo/Android/Sdk/licenses
License for package Android SDK Build-Tools 34 accepted.
Preparing “Install Android SDK Build-Tools 34 v.34.0.0”.
“Install Android SDK Build-Tools 34 v.34.0.0” ready.
Installing Android SDK Build-Tools 34 in /home/expo/Android/Sdk/build-tools/34.0.0
“Install Android SDK Build-Tools 34 v.34.0.0” complete.
“Install Android SDK Build-Tools 34 v.34.0.0” finished.
Checking the license for package Android SDK Platform 34 in /home/expo/Android/Sdk/licenses
License for package Android SDK Platform 34 accepted.
Preparing “Install Android SDK Platform 34 (revision 3)”.
“Install Android SDK Platform 34 (revision 3)” ready.
Installing Android SDK Platform 34 in /home/expo/Android/Sdk/platforms/android-34
“Install Android SDK Platform 34 (revision 3)” complete.
“Install Android SDK Platform 34 (revision 3)” finished.
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (34.0.0) for Android Gradle Plugin 8.2.1.
Android SDK Build Tools 34.0.0 will be used.
To suppress this warning, remove “buildToolsVersion ‘23.0.1’” from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (34.0.0) for Android Gradle Plugin 8.2.1.
Android SDK Build Tools 34.0.0 will be used.
To suppress this warning, remove “buildToolsVersion ‘23.0.1’” from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
Checking the license for package Android SDK Platform 23 in /home/expo/Android/Sdk/licenses
License for package Android SDK Platform 23 accepted.
Preparing “Install Android SDK Platform 23 (revision 3)”.
“Install Android SDK Platform 23 (revision 3)” ready.
Installing Android SDK Platform 23 in /home/expo/Android/Sdk/platforms/android-23
“Install Android SDK Platform 23 (revision 3)” complete.
“Install Android SDK Platform 23 (revision 3)” finished.
Checking the license for package Android SDK Platform 33 in /home/expo/Android/Sdk/licenses
License for package Android SDK Platform 33 accepted.
Preparing “Install Android SDK Platform 33 (revision 3)”.
“Install Android SDK Platform 33 (revision 3)” ready.
Installing Android SDK Platform 33 in /home/expo/Android/Sdk/platforms/android-33
“Install Android SDK Platform 33 (revision 3)” complete.
“Install Android SDK Platform 33 (revision 3)” finished.
Path for java installation ‘/usr/lib/jvm/openjdk-17’ (Common Linux Locations) does not contain a java executable
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ‘:react-native-fetch-blob:bundleLibRuntimeToJarRelease’.
Could not create task ‘:react-native-fetch-blob:compileReleaseJavaWithJavac’.
In order to compile Java 9+ source, please set compileSdkVersion to 30 or above
- 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 3m 21s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
5 actionable tasks: 5 executed
Error: Gradle build failed with unknown error. See logs for the “Run gradlew” phase for more information.
I tried to ask chatgpt but it’s not helping enough