Change from ClassLoader.getSystemResourceAsStream to ClassLoader.getResourceAsStream since it is android safe.
This commit is contained in:
parent
a6eda10fcc
commit
e1081d2df8
@ -32,7 +32,7 @@ public class BuildProperties {
|
||||
|
||||
static {
|
||||
try {
|
||||
InputStream is = ClassLoader.getSystemResourceAsStream("build.properties");
|
||||
InputStream is = BuildProperties.class.getClassLoader().getResourceAsStream("build.properties");
|
||||
if (is == null) {
|
||||
throw new MissingResourceException(
|
||||
"build.properties not found, distribution built wrong" +
|
||||
|
Loading…
x
Reference in New Issue
Block a user