小编bra*_*nky的帖子

无法在android studio中创建新活动

在android studio中创建new时,我在事件日志中不断收到IllegalStateException错误activity:

11:27:15 InvalidReferenceException: Error executing FreeMarker template: The following has evaluated to null or missing:
==> srcDir  [in template "root://activities/common/common_globals.xml.ftl" at line 41, column 34]

Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use when-presentwhen-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??
Run Code Online (Sandbox Code Playgroud)

android illegalstateexception android-fragments android-studio

6
推荐指数
2
解决办法
4649
查看次数