Android Studio Can't Find File
I added my signing keys into keys folder in root of the project: .\ keys\ sign.properties src\ main\ build.gradle I added next lines to my build script: si
Solution 1:
It looks like a problem with what the working directory is when compiling on the command line vs. compiling from Android Studio. I see a discrepancy there that I need to investigate further and possibly file a bug for. In any event, it's better to be explicit about nailing down the path to prevent confusion.
Try this:
p.load(new FileInputStream(rootProject.file('keys/sign.properties')))
This will nail down the file to be relative to the project (not the module) root, which is also where the settings.gradle
file lives.
EDIT
I filed bug https://code.google.com/p/android/issues/detail?id=64018 for this. The workaround I showed you above should do nicely, and is maybe a best practice in any event.
Post a Comment for "Android Studio Can't Find File"