rharrwwis opened a new issue, #1826: URL: https://github.com/apache/cordova-android/issues/1826
# Bug Report cordova build android keeps failing due to ENOENT: no such file or directory, open 'myapp/platforms/android/tools/.gradle/config.properties' because cordova platform add android@14.0.1 isn't creating the .gradle folder in the tools folder. ## Problem platforms/android/tools/.gradle folder is missing after adding android platform which causes build to fail when it tries to open/create the config.properties file. ### What is expected to happen? platforms/android/tools/.gradle folder should be created either during platform add or before config.properties is attempted to be created. ### What does actually happen? platforms/android/tools/.gradle folder does not get created causing build to fail when unable to create missing config.properties file. ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> ### Command or Code <!-- What command or code is needed to reproduce the problem? --> This is the code that I added locally in ProjectBuilder.js before the attempt to create config.properties to get my build to succeed: // Try to create ".gradle" folder if missing const gradleConfigDir = path.dirname(configPropertiesPath); if (!fs.existsSync(gradleConfigDir)) { fs.mkdirSync(gradleConfigDir, { recursive: true, mode: 0o700 }); } ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> ### Version information <!-- What are relevant versions you are using? For example: Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins Other Frameworks: Ionic Framework and CLI version Operating System, Android Studio, Xcode etc. --> cordova-android 14.0.1 ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [ ] I searched for existing GitHub issues - [ ] I updated all Cordova tooling to most recent version - [ ] I included all the necessary information above -- 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: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org