7

In elder version of Android studio, I put it in ../plugins/android/lib/templates/other folder. But when I update to version 4.1, my folder is cleared. I've tried initializing a new one but it didn't work.

Man1s
  • 192
  • 1
  • 7
  • check if the folder is not being cleared by any gradle file – Harkal Oct 16 '20 at 04:21
  • 2
    Custom templates were always removed when updating android studio. It alwais was a annoing problem for me. But since AS4.1 they change templating API. See this issue: https://stackoverflow.com/questions/61138322/where-are-the-file-templates-in-android-studio-4-1-located – cosic Nov 06 '20 at 14:23
  • Check this answer https://stackoverflow.com/a/67081259/3806413 – 0xAliHn Apr 13 '21 at 21:41

1 Answers1

2

Android Studio 4.1 changed configuration directory:

Windows Syntax: %APPDATA%\Google<product>

Example: C:\Users\YourUserName\AppData\Roaming\Google\AndroidStudio4.1

macOS Syntax: ~/Library/Application Support/Google/

Example: ~/Library/Application Support/Google/AndroidStudio4.1

Linux Syntax: ~/.config/Google/

Example: ~/.config/Google/AndroidStudio4.1

check it out here

Uuu Uuu
  • 1,282
  • 2
  • 10
  • 18
  • 3
    There isnt a template folder there either and when I tried to re-create the structure then it didnt work. Can you explain the next steps you took? – rfii Dec 18 '20 at 21:45
  • I gave a workaround here : https://stackoverflow.com/questions/65171902/how-to-add-new-live-templates-in-android-studio-in-ubuntu/66382743#66382743 – Seynorth Feb 26 '21 at 08:51