Pitok
Pitok

Reputation: 61

Task 'assemble' not found in root project

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

Answers (3)

Aymeric Loos
Aymeric Loos

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

Raj
Raj

Reputation: 31

make sure that settings.gradle file contains include ":app"

Upvotes: 2

Aseem Sharma
Aseem Sharma

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

Related Questions