According to many topics about configuring gradle to sign apk I used this solution. It seems it takes proper values, however I cannot success whole operation. Probably it could be a problem with letter "ł" which is even showing wrong in terminal. I need help, because I don't know what to do now. I've spent about 4 hours on it...
This is main project app gradle properites file:
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
}
signingConfigs {
release {
storeFile file(RELEASE_STORE_FILE)
storePassword RELEASE_KEY_ALIAS
keyAlias RELEASE_KEY_ALIAS
keyPassword RELEASE_KEY_PASSWORD
}
}
buildTypes {
release {
signingConfig signingConfigs.release
}
}
}
dependencies {
//...
}
This file takes data from ~/.gradle/gradle.properties file in Window's user dir.
org.gradle.parallel=true
org.gradle.daemon=false
RELEASE_STORE_FILE=C:/users/xxx/f1/f1/android_market_key
RELEASE_STORE_PASSWORD=lololo
RELEASE_KEY_ALIAS=łłłł
RELEASE_KEY_PASSWORD=lololo
I've tried use:
compileOptions.encoding = "UTF-8"
or
tasks.withType(Compile) {
options.encoding = "UTF-8"
}
or even adding to gradlew.bat some options for -D* to set encoding and still fail.
Please help, I stucked.