Can't read from local.properties on Windows computer

android

(Tony Robalik) #1

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(',')

(Tony Robalik) #2

@etiennestuder apologies for the ping. Any ideas?


(Mark Vieira) #3

Your failure seems completely unrelated to your properties loading.

https://scans.gradle.com/s/k4zmna63tbjqu/log#L84