yyt231 / weliao

0 stars 0 forks source link

AndroidStudio4.1 自定义模板 | 亿特博客 #45

Open yyt231 opened 3 years ago

yyt231 commented 3 years ago

https://www.bigademo.com/2021/01/20/AndroidStudio%204.1%E8%87%AA%E5%AE%9A%E4%B9%89%E6%A8%A1/index.html

AndroidStudio4.0之前,可以在template的文件夹里使用freemarker的自定义模板,可以在AndroidStudio的文件夹中,随意的添加适合自己的自定义模板,之前鸿洋大神的文章已经有来详细的介绍(https://blog.csdn.net/lmj623565791/article/details/51592043)。但是从4.1版本开始提供新的方式,Geminio,用Ko

telyo commented 3 years ago

重启后没有找到创建的入口啊,能说下怎么调出创建的窗口么

yyt231 commented 3 years ago

@telyo 重启后没有找到创建的入口啊,能说下怎么调出创建的窗口么

在目录上 鼠标右键New -> Other里面,如果没有找到,应该是报错了。会AndroidStudio的右下角有红色感叹号

telyo commented 3 years ago

好的 ,非常感谢

hushendian commented 3 years ago

我用的是androidStudio4.1.2编译的你的demo,但是安装plugin时,提示 “Plugin ‘XX‘ is incompatible with this installation”,请问是哪个地方有问题吗

yyt231 commented 3 years ago

@hushendian 我用的是androidStudio4.1.2编译的你的demo,但是安装plugin时,提示 “Plugin ‘XX‘ is incompatible with this installation”,请问是哪个地方有问题吗 除了这句还有其他错误提示吗

yyt231 commented 3 years ago

@hushendian 我用的是androidStudio4.1.2编译的你的demo,但是安装plugin时,提示 “Plugin ‘XX‘ is incompatible with this installation”,请问是哪个地方有问题吗

您下的哪个demo了,我刚才用4.1.2的AS试了一下,可以呀

hushendian commented 3 years ago

我直接下载的这个,https://github.com/JetBrains/intellij-platform-plugin-template.git 生成jar,然后在plugin上装的,是不是我理解错了

yyt231 commented 3 years ago

我直接下载的这个,https://github.com/JetBrains/intellij-platform-plugin-template.git 生成jar,然后在plugin上装的,是不是我理解错了

这个是IDEA官方的模板,里面什么也没有。你下载下来用IDEA打开,编写自己的模板以后,生成jar文件,用AS打开

hushendian commented 3 years ago

我是这样操作的:我先把这个模板下载下来,您不是提供了一个mvvm的模板吗,我把代码copy过去,在AndroidStudio上生成jar,安装离线Plugin,这个测试步骤没问题吧?

------------------ 原始邮件 ------------------ 发件人: "yyt231/weliao" <notifications@github.com>; 发送时间: 2021年3月3日(星期三) 下午3:16 收件人: "yyt231/weliao"<weliao@noreply.github.com>; 抄送: "胡申典"<1130397059@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [yyt231/weliao] AndroidStudio4.1 自定义模板 | 亿特博客 (#45)

我直接下载的这个,https://github.com/JetBrains/intellij-platform-plugin-template.git 生成jar,然后在plugin上装的,是不是我理解错了

这个是IDEA官方的模板,里面什么也没有。你下载下来用IDEA打开,编写自己的模板以后,生成jar文件,用AS打开

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

yyt231 commented 3 years ago

我是这样操作的:我先把这个模板下载下来,您不是提供了一个mvvm的模板吗,我把代码copy过去,在AndroidStudio上生成jar,安装离线Plugin,这个测试步骤没问题吧? ------------------ 原始邮件 ------------------ 发件人: "yyt231/weliao" <notifications@github.com>; 发送时间: 2021年3月3日(星期三) 下午3:16 收件人: "yyt231/weliao"<weliao@noreply.github.com>; 抄送: "胡申典"<1130397059@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [yyt231/weliao] AndroidStudio4.1 自定义模板 | 亿特博客 (#45) 我直接下载的这个,https://github.com/JetBrains/intellij-platform-plugin-template.git 生成jar,然后在plugin上装的,是不是我理解错了 这个是IDEA官方的模板,里面什么也没有。你下载下来用IDEA打开,编写自己的模板以后,生成jar文件,用AS打开 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

没问题

hushendian commented 3 years ago

就是在安装的时候提示这个,只要步骤没问题,那我这边应该是环境导致的,我这边再按照步骤来一次,模板确实可以减轻很多工作量,非常感谢答疑,祝您生活愉快。

------------------ 原始邮件 ------------------ 发件人: "yyt231/weliao" <notifications@github.com>; 发送时间: 2021年3月3日(星期三) 下午3:27 收件人: "yyt231/weliao"<weliao@noreply.github.com>; 抄送: "胡申典"<1130397059@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [yyt231/weliao] AndroidStudio4.1 自定义模板 | 亿特博客 (#45)

我是这样操作的:我先把这个模板下载下来,您不是提供了一个mvvm的模板吗,我把代码copy过去,在AndroidStudio上生成jar,安装离线Plugin,这个测试步骤没问题吧? … ------------------ 原始邮件 ------------------ 发件人: "yyt231/weliao" <notifications@github.com>; 发送时间: 2021年3月3日(星期三) 下午3:16 收件人: "yyt231/weliao"<weliao@noreply.github.com>; 抄送: "胡申典"<1130397059@qq.com>;"Mention"<mention@noreply.github.com>; 主题: Re: [yyt231/weliao] AndroidStudio4.1 自定义模板 | 亿特博客 (#45) 我直接下载的这个,https://github.com/JetBrains/intellij-platform-plugin-template.git 生成jar,然后在plugin上装的,是不是我理解错了 这个是IDEA官方的模板,里面什么也没有。你下载下来用IDEA打开,编写自己的模板以后,生成jar文件,用AS打开 — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

没问题

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.