Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot determine build data storage root for project error IntelliJ Android

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!

like image 893
Flo Avatar asked Nov 14 '14 18:11

Flo


2 Answers

I deleted the .idea folder and the .iml file then i reimported the project in Intellij and it worked for me.

like image 52
Abderrahmen Avatar answered Nov 03 '22 04:11

Abderrahmen


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.

like image 10
jlucky Avatar answered Nov 03 '22 05:11

jlucky