Reputation: 173
I am trying to build an android application I coded, and I get the following error:
Error:build: Cannot determine build data storage root for project /Users/Flo/Programming/Android/workspace/<ProjectName>
I have marked src
and gen
as source folders
, and res
as resource folder
.
Any help? Thanks!
Upvotes: 14
Views: 43493
Reputation: 12902
I had the same problem. The problem was that the project directory and files were created under the root user, but IntelliJ was running as my own user, so IntelliJ could not create the necessary files. The solution was to run
chown -R myusername projectfolder
Upvotes: 2
Reputation: 496
I deleted the .idea folder and the .iml file then i reimported the project in Intellij and it worked for me.
Upvotes: 13
Reputation: 144
You should build a project(just as the workspace in Eclipse) first, it will generate a .idea directory. And then build a module(as the project in Eclipse) under that project. Finally, you can run your app successfully.
Upvotes: 11