无法确定项目错误IntelliJ Android的构建数据存储根

Flo*_*Flo 7 android build intellij-idea

我正在尝试构建一个我编码的android应用程序,我收到以下错误:

Error:build: Cannot determine build data storage root for project /Users/Flo/Programming/Android/workspace/<ProjectName>
Run Code Online (Sandbox Code Playgroud)

我有标记srcgenas source folders,和resas resource folder.

有帮助吗?谢谢!

小智 7

您应该首先构建一个项目(就像 Eclipse 中的工作区),它会生成一个 .idea 目录。然后在该项目下构建一个模块(作为 Eclipse 中的项目)。最后,您可以成功运行您的应用程序。


小智 6

我删除了 .idea 文件夹和 .iml 文件,然后我在 Intellij 中重新导入了该项目,它对我有用。