Android Studio 4.1 中的文件模板在哪里? [英] Where are the file templates in Android Studio 4.1 located?

查看:107
本文介绍了Android Studio 4.1 中的文件模板在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将自定义文件模板导入 Android Studio 4.1 Canary 5.在之前版本的 Android Studio(最高 4.0)中,我曾经将我的模板复制到

I have trouble importing my custom file templates into Android Studio 4.1 Canary 5. In prior versions of Android Studio (up to 4.0) I used to copy my templates into

/Contents/plugins/android/lib/templates(我使用的是 Mac)

<Android Studio Installation>/Contents/plugins/android/lib/templates (I am using Mac)

但是在 4.1 中,那里没有模板,当我在那里复制我的模板时,它们似乎被忽略了.

But in 4.1, there are no templates there and when I copy mine there, they seem to be ignored.

有人遇到过同样的问题吗?

Has anyone faced the same issue?

谢谢!

推荐答案

Android Studio 4.1 使用了一个新的模板 API,它可见但尚未公开 - 你可以看到示例 此处,尽管我无法让它发挥作用.不幸的是,在这个过程中,谷歌似乎已经删除了添加模板的旧方式.

Android Studio 4.1 uses a new templating API which is visible but not public yet - you can see a sample here, although I haven't been able to get this to work. Unfortunately in the process, Google seem to have removed the old way of adding templates.

对于那些对跟踪进度感兴趣的人,您可以在 Google 的问题跟踪系统上为该问题加注星标此处.

For those interested in tracking progress, you can star the issue on Google's issue tracker system here.

这篇关于Android Studio 4.1 中的文件模板在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆