Unable to parse template "Class" Error message: This template did not produce a Java class or an interface
根据template报错,打开file->setting->file and templates 发现里边的templates 全部是空的,class没有模板;有两种解决方法:
1.网上找个模板复制,在右边贴上(不能从根本解决)
2.
关闭studio,打开studio所在的安装文件夹(我的在C:\Program Files\Android\Android Studio)
在bin文件夹下找到这个文件studio.exe.vmoptions,
使用记事本打开这个文件
在文件最后加上 -Djdk.util.zip.ensureTrailingSlash=false 保存后退出,重启studio完成
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)