JessYanCoding / MVPArmsTemplate

🛠️ A template for Android Studio to create MVPArms and MVPArt Page
Apache License 2.0
707 stars 126 forks source link

全家桶报错了 #12

Closed panrongfu closed 5 years ago

panrongfu commented 5 years ago

Error executing FreeMarker template: The following has evaluated to null or missing: ==> ktOrJavaExt [in template "root://activities/MVPArmsTemplate/recipe.xml.ftl" at line 22, column 60]

Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction: ==> ${ktOrJavaExt} [in template "root://activities/MVPArmsTemplate/recipe.xml.ftl" at line 22, column 58] FreeMarker template error: The following has evaluated to null or missing: ==> ktOrJavaExt [in template "root://activities/MVPArmsTemplate/recipe.xml.ftl" at line 22, column 60]

Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (FTL stack trace):

==> ${ktOrJavaExt} [in template "root://activities/MVPArmsTemplate/recipe.xml.ftl" at line 22, column 58]

Java stack trace (for programmers):

panrongfu commented 5 years ago

我的是3.0的

q232916067 commented 5 years ago

我的3.2的也是报错

q232916067 commented 5 years ago

rror executing FreeMarker template: Error reading included file "root://gradle-projects/MVPArmsTemplate/../common/common_globals.xml.ftl": Template "root://gradle-projects/MVPArmsTemplate/../common/common_globals.xml.ftl" not found.

The failing instruction: ==> #include "../common/common_globals.xm... [in template "root://gradle-projects/MVPArmsTemplate/globals.xml.ftl" at line 10, column 5] FreeMarker template error: Error reading included file "root://gradle-projects/MVPArmsTemplate/../common/common_globals.xml.ftl": Template "root://gradle-projects/MVPArmsTemplate/../common/common_globals.xml.ftl" not found.

The failing instruction (FTL stack trace):

==> #include "../common/common_globals.xm... [in template "root://gradle-projects/MVPArmsTemplate/globals.xml.ftl" at line 10, column 5]

q232916067 commented 5 years ago

我知道原因了 因为拷贝错了文件夹 那两个文件夹不一样的

JessYanCoding commented 5 years ago

@panrongfu 升级到 AS 最新版