-
-
Notifications
You must be signed in to change notification settings - Fork 27
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.
- Open Terminal.
- 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
- 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.
- Issue the following commands:
zip -9 -X -D -r ../core.cgt.new .
cd ..
mv core.cgt.new core.cgt
- Close Terminal.
You can now create a project using your modified template.
To install the vi editor, issue these commands:
pkg update
pkg install vi