Reputation: 61
I am trying to import a project in android studio 3.1 but when I try to build the project it says "Task 'assemble' not found in root project". I searched for this error but didn't find straight forward answer and exist answers like This didn't work for me. any solution please?
[SOLVED]: The problem was because of missed settings.gradle file! just added it manually to the main project folder
Upvotes: 6
Views: 20947
Reputation: 11
This is not a solution but a possible explanation of this error. It could happen if you named your flavor using camel case typo. Example: normal accepted, normalBis not accepted.
Upvotes: 0
Reputation: 1853
Try this command in the terminal tab of android studio:
gradlew assembleDebug
Terminal tab can be found in the bottom panel, where you have Logcat.
Upvotes: 6