5

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

Pitok
  • 51
  • 1
  • 1
  • 5

2 Answers2

4

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.

Aseem Sharma
  • 1,673
  • 12
  • 19
0

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

Raj
  • 11