Updated SDK (from 23 to 24). Those Russian lines that are not from xml became Krakazyab, although everything was fine before the changes.

This is how build.gradle (module: app) looked like before the upgrade:

apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.mypackage" minSdkVersion 10 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:preference-v7:23.4.0' compile 'com.android.support:support-v4:23.4.0' compile 'com.android.support:cardview-v7:23.4.0' compile 'com.android.support:design:23.4.0' compile 'com.android.support:recyclerview-v7:23.4.0'} 

Here is how it looks after the update:

 apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.3" defaultConfig { applicationId "com.mypackage" minSdkVersion 10 targetSdkVersion 23 versionCode 1 versionName "1.0" jackOptions { enabled true } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:24.2.1' compile 'com.android.support:preference-v7:24.2.1' compile 'com.android.support:support-v4:24.2.1' compile 'com.android.support:cardview-v7:24.2.1' compile 'com.android.support:design:24.2.1' compile 'com.android.support:recyclerview-v7:24.2.1' } 

How to achieve normal letters without rollback to the old SDK and without including all the lines in xml?

    2 answers 2

    It helped to remove from the build.gradle any mention of java. That is, deleted the compileOptions section and the jackOptions . Now, as before - no krakozab.

    However, apparently, it will be impossible to use the possibilities of java 8. Maybe someone will offer a better option?

      Try the methods suggested here , here and here . And, of course, it is better not to use Cyrillic in the code, but to put it out in string.xml, later on, replace / fix it faster and do the localization.

      • Unfortunately, nothing helped. - iramm