I have tried everything and nothing is working.
I am trying to install a development build of my app that was built using expo workflow but the build is not successful both on connected device and android emulator.
I am using Windows 11. Expo SDK 46. The devices are running android 11.
The error I get
Building app...
Configuration on demand is an incubating feature.
> Configure project :expo-eas-client
Warning: The 'kotlin-android-extensions' Gradle plugin is deprecated. Please use this migration guide (https://goo.gle/kotlin-android-extensions-deprecation) to start working with View Binding (https://developer.android.com/topic/libraries/view-binding) and the 'kotlin-parcelize' plugin.
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script 'C:\Users\Anaturuchi\Documents\GitHub\Whook\node_modules\expo-modules-autolinking\scripts\android\autolinking_implementation.gradle' line: 272
* What went wrong:
A problem occurred evaluating project ':expo'.
> A problem occurred configuring project ':expo-modules-core'.
> Failed to notify project evaluation listener.
> NDK at C:\Users\Anaturuchi\AppData\Local\Android\Sdk\ndk\21.1.6352462 did not have a source.properties file
> Could not get unknown property 'release' for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
* 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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':expo'.
> compileSdkVersion is not specified. Please add it to build.gradle
* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 18s
Error: C:\Users\Anaturuchi\Documents\GitHub\Whook\android\gradlew.bat exited with non-zero code: 1
Error: C:\Users\Anaturuchi\Documents\GitHub\Whook\android\gradlew.bat exited with non-zero code: 1
at ChildProcess.completionListener (C:\Users\Anaturuchi\Documents\GitHub\Whook\node_modules\@expo\spawn-async\build\spawnAsync.js:52:23)
at Object.onceWrapper (node:events:642:26)
at ChildProcess.emit (node:events:527:28)
at ChildProcess.cp.emit (C:\Users\Anaturuchi\Documents\GitHub\Whook\node_modules\@expo\spawn-async\node_modules\cross-spawn\lib\enoent.js:34:29)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
...
at Object.spawnAsync [as default] (C:\Users\Anaturuchi\Documents\GitHub\Whook\node_modules\@expo\spawn-async\build\spawnAsync.js:17:21)
at spawnGradleAsync (C:\Users\Anaturuchi\Documents\GitHub\Whook\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:72:46)
at Object.assembleAsync (C:\Users\Anaturuchi\Documents\GitHub\Whook\node_modules\@expo\cli\build\src\start\platforms\android\gradle.js:52:18)
at runAndroidAsync (C:\Users\Anaturuchi\Documents\GitHub\Whook\node_modules\@expo\cli\build\src\run\android\runAndroidAsync.js:31:24)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
PS C:\Users\Anaturuchi\Documents\GitHub\Whook>