2

我不断收到IllegalStateException错误在事件日志中,同时在Android Studio中创建新activity不能在Android Studio中创建新的活动

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)?? 

回答

0

我有同样的问题。 访问此链接。 https://code.google.com/p/android/issues/detail?id=232076

出现这种情况,如果您有其他那么C不同的驱动器项目: 机器人工作室将自动创建项目(我希望他们缓存文件)在C的副本:驱动器的tmp文件夹。这个文件夹是造成这个问题的原因。

尝试文件 - >无效缓存/重新启动。或 刚刚删除c:驱动器中的tmp文件夹,然后重新启动所有设备,它将正常工作。

+0

没有工作,不知道如何解决它 – Pulkit

+0

你可以发布日志消息。 –

相关问题