dpogue commented on issue #1841: URL: https://github.com/apache/cordova-android/issues/1841#issuecomment-3247725717
I've reproduced this when `ANDROID_HOME` is not set but `avdmanager` is available on the path: ``` dpogue@bedwyr:~/cdvTest$ unset ANDROID_HOME dpogue@bedwyr:~/cdvTest$ npx cordova@nightly requirements Warning: using prerelease version 13.0.0-nightly.20250903002306003.sha.cd548591 ([email protected]) Requirements check results for android: Java JDK: installed 21.0.8 Android SDK: not installed Failed to find 'ANDROID_HOME' environment variable. Try setting it manually. Detected 'avdmanager' command at ~/.android/SDK/cmdline-tools/latest/bin but no 'tools/bin' directory found near. Try reinstall Android SDK or update your PATH to include valid path to SDK/tools/bin directory. Android target: installed android-35,android-33 Gradle: installed /usr/share/java/gradle/bin/gradle Some of requirements check failed (node:1937201) [DEP0187] DeprecationWarning: Passing invalid argument types to fs.existsSync is deprecated (Use `node --trace-deprecation ...` to show where the warning was created) ``` @karl4458 If this error is blocking you from building with Cordova, you can work around it by setting the `ANDROID_HOME` environment variable to the path to your Android SDK folder. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
