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

查看:122
本文介绍了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

< Android Studio安装>/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,该模板对可见但尚未对 public 进行显示-您可以看到此处的示例,尽管我无法使其正常工作.不幸的是,在此过程中,Google似乎已经删除了添加模板的旧方法.

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天全站免登陆