My project has a folder with a keystore file (file.keystore). This is the structure:
+---.gradle | \---2.2 | \---taskArtifacts +---.idea | +---copyright | \---libraries +---app | +---build | | +---generated | +---libs | \---src | +---androidTest | \---main +---build | \---intermediates | \---dex-cache +---gradle | \---wrapper \---keystore
To use it in build.gradle, I use this:
signingConfigs { project { keyAlias 'project' keyPassword 'blabla' storeFile file('keystore\\file.keystore') storePassword 'blabla' }
Everything is correct in the windows, because it searches in:
/project/keystore/file.keystore
But on OS X, he searches in:
/project/app/keystore/file.keystore
How do I code in build.gradle?
source share