Skip to content

Modify project templates to use Groovy

Elissa-AppDevforAll edited this page Apr 15, 2026 · 3 revisions

To modify project templates to use Groovy instead of .kts, follow these steps.

  1. Open Terminal.
  2. Issue the following commands. (Please note: In older releases, the .cg/ directory was .androidide/. If you're using an older release, either update the app or use the .androidide/ directory path.):

cd $HOME/.cg/templates>

cp core.cgt core.cgt.backup

mkdir work

cd work

unzip ../core.cgt

  1. Use a text editor like nano or vi (installed separately; steps to install vi are provided at the end of this article) to modify the desired templates. See https://pebbletemplates.io/ for documentation.
  2. Issue the following commands:

zip -9 -X -D -r ../core.cgt.new .

cd ..

mv core.cgt.new core.cgt

  1. Close Terminal.

You can now create a project using your modified template.

Install vi

To install the vi editor, issue these commands:

pkg update

pkg install vi

Clone this wiki locally