Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio code style scheme auto reset to the default every start

After I update Android Studio to 3.2.x, every time I create a project, its Code Style Scheme (in Preference -> Editor -> Code Style) auto be default "Project", not what I set scheme stored in IDE before.

After I set the project code style scheme format to scheme which stored in IDE and "apply", every time I start Android Studio to open this project, then its code style scheme auto be default "Project" again!

What is the problem? What can I do?

like image 702
zhangliang Avatar asked Jan 15 '19 11:01

zhangliang


1 Answers

After a lot of work, I solved this problem as below:

Open gradle.properties file in project root directory, I find code kotlin.code.style=official, simply delete this line code, then the problem is solved.

Maybe Android Studio is confused by this code, or code style set by this line code have conflict with the Code Style Scheme set in IDE. If what i guess is right, then this is a bug of Android Studio.

like image 125
zhangliang Avatar answered Nov 12 '22 09:11

zhangliang