Closed BishalN closed 4 months ago
Hello @BishalN thank you for sharing with us your issue, based on what i am seeing It looks like the build process failed due to an issue with the Android NDK. Specifically, the error message indicates that the NDK directory is missing the source.properties file. Here's how you can resolve this issue
Verify NDK Installation:
Reinstall or Update NDK:
Ensure Correct NDK Path:
ndk.dir=/Users/(your name)/Library/Android/sdk/ndk/25.1.8937393
Check for Updates:
Clean and Rebuild the Project:
pnpm prebuild --clean
if this error still occurs please let us know
thanks @hamzamekk. Turns out I didn't have the ndk.
Summary:
I did the getting started: when i ran the pnpm android throws error
Steps to reproduce:
nothing fancy just create the app and run pnpm ios; I am on mac m1
Expected behavior:
Throws above error
Additional notes:
Here's the log i got cross-env EXPO_DEBUG=true EXPO_NO_DOTENV=1 expo run:android expo:env Skipping .env files because EXPO_NO_DOTENV is defined +0ms Resolved port: 8081, start dev server: true expo:start:platforms:android:adbServer /Users/bishalneupane/Library/Android/sdk/platform-tools/adb devices -l +0ms expo:start:platforms:android:adbServer /Users/bishalneupane/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu avd name +19ms expo:start:platforms:android:adbServer /Users/bishalneupane/Library/Android/sdk/platform-tools/adb devices -l +46ms expo:start:platforms:android:adbServer /Users/bishalneupane/Library/Android/sdk/platform-tools/adb -s emulator-5554 emu avd name +18ms expo:android:resolveDevice Resolved default device (name: Pixel_XL_API_32_2, pid: emulator-5554) +0ms expo:run:android Package name: com.obledgerhub.development +0ms › Building app... expo:start:platforms:android:gradle /Users/bishalneupane/Desktop/myprojects/rn-dev/obledgerhub/android/gradlew app:assembleDebug -x lint -x test --configure-on-demand --build-cache -PreactNativeDevServerPort=8081 +0ms Configuration on demand is an incubating feature.
FAILURE: Build failed with an exception.
Where: Script '/Users/bishalneupane/Desktop/myprojects/rn-dev/obledgerhub/node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle' line: 377
What went wrong: A problem occurred evaluating project ':expo'.
Try:
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.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 9s 10 actionable tasks: 10 up-to-date