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!
asked Nov 14, 2014 at 18:30
I deleted the .idea folder and the .iml file then i reimported the project in Intellij and it worked for me.
answered Jun 4, 2020 at 9:46
AbderrahmenAbderrahmen
4203 silver badges6 bronze badges
1
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.
answered Jan 17, 2015 at 7:13
jluckyjlucky
1442 silver badges6 bronze badges
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
answered Sep 27, 2021 at 16:31
simonsimon
12.6k26 gold badges78 silver badges112 bronze badges
In intellij I invalidated the cache and restarted. Worked fine
answered Jun 9, 2022 at 16:12
mr blumr blu
3704 silver badges8 bronze badges
Я пытаюсь создать приложение для Android, которое я написал, и я получаю следующую ошибку:
Error:build: Cannot determine build data storage root for project /Users/Flo/Programming/Android/workspace/<ProjectName>
Я отметил src
а также gen
как source folders
, а также res
как resource folder
,
Любая помощь? Спасибо!
2014-11-14 18:30
4
ответа
Решение
Сначала вы должны построить проект (так же, как рабочее пространство в Eclipse), он сгенерирует каталог.idea. А затем создайте модуль (как проект в Eclipse) в рамках этого проекта. Наконец, вы можете успешно запустить ваше приложение.
2015-01-17 07:13
Я удалил папку.idea и файл.iml, затем повторно импортировал проект в Intellij, и это сработало для меня.
2020-06-04 12:46
У меня такая же проблема. Проблема заключалась в том, что каталог и файлы проекта были созданы от имени пользователя root, но IntelliJ работал как мой собственный пользователь, поэтому IntelliJ не мог создать необходимые файлы. Решение заключалось в том, чтобы запустить
chown -R myusername projectfolder
user76777
27 сен ’21 в 19:31
2021-09-27 19:31
2021-09-27 19:31
В Intellij я аннулировал кеш и перезапустил. Работал нормально
2022-06-09 16:12
Solution 1
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.
Solution 2
I deleted the .idea folder and the .iml file then i reimported the project in Intellij and it worked for me.
Related videos on Youtube
01 : 17
How to fix error: Module not specified in IntelliJ IDEA in Edit Configuration when you Run code?
02 : 49
Configure your intelliJ project
02 : 25
Could not find “dependency” Required by: project :app Search in build.gradle files. Fixed
03 : 52
How to fix missing constrains in constrain layout error in android studio || #android_studio #java
01 : 56
build.gradle(Module: app) not found in android studio project
10 : 07
How to fix IntelliJ “Cannot determine path to ‘tools.jar'”
04 : 55
Android Studio New Update build.gradle not generate all project section Error Solution
06 : 21
A problem occurred evaluating root project ‘Android Repositories.’ Build was configured to prefer
02 : 15
Fix for “This version of the Android Support plugin for IntelliJ IDEA cannot open this project”error
02 : 05
This version of the Android Support plugin for IntelliJ IDEA or Android Studio try 4.2 or newer.
Comments
-
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
andgen
assource folders
, andres
asresource folder
.Any help? Thanks!
-
Worked for me. Thank you! ‘Spent like 20 minutes looking everywhere. Little caveat was that I had to set the module JDK back to the correct one even though it’s set in maven. :/ (So look out for that)
Recents
Related
Вопрос:
Я пытаюсь создать приложение для Android, которое я закодировал, и я получаю следующую ошибку:
Error:build: Cannot determine build data storage root for project /Users/Flo/Programming/Android/workspace/<ProjectName>
Я отметил src
и gen
как source folders
и res
как resource folder
.
Любая помощь? Спасибо!
Лучший ответ:
Сначала вы должны создать проект (как и в рабочей области в Eclipse), он будет генерировать каталог .idea. А затем создайте модуль (как проект в Eclipse) в рамках этого проекта. Наконец, вы можете успешно запустить свое приложение.
use IDEA An error occurred while running the codeCannot determine build data storage root for project E:/study/IDEA/Practices work
The problem is: The current user does not have access to this project
Solution step:
1 Find the directory where the project is locatedE:/study/IDEA/Practices work ,As shown below:
②MouseRight key This file, clickAttributesAfter entering the window, find and clickSafetySelectUsers Clickedit ,As shown below:
3 Continue to select after entering the window Users And will be belowfully control Tick✔(The modification option will also automatically hook), finally click determine Ok! Figure:
④Re-Run, Idea, I’m big.