Build scan: https://gradle.com/s/k4zmna63tbjqu
Issue: trying to read from local.properties
to customize build for an Android project. Found the following solution on Stack Overflow, which works well on my Ubuntu system. However, it crashes on my colleague’s Windows computer. The following is in the project’s root build.gradle
file, which sits next to local.properties
.
Properties properties = new Properties()
properties.load(project.file('local.properties').newDataInputStream())
return properties.getProperty('resConfigs', '').split(',')