1

like I said: I accidentally deleted include ':app' and i clicked sync.

Now i rewrote that line again, there is no sync button so for me: everything is lost.

Do i have to start a new project to soleve this problem?

Thanks in advance.

There is no Tools -> Android -> Sync Project with Gradle Files and Build -> Rebuild Project

Mert Serimer
  • 1,217
  • 2
  • 16
  • 38

2 Answers2

2

Closing project and importing project fixed the issue. None of the solutions above worked by the way

Mert Serimer
  • 1,217
  • 2
  • 16
  • 38
1
  1. Close and Re-open the build.gradle.
  2. Add back the line you deleted.
  3. If the Sync button still does not show, go to the next step. If it shows, just sync.

  4. Change something randomly in dependencies, build types or default config.

  5. Once the sync button shows, revert back the random change.
  6. Press Sync.

Also try File > Invalidate Cache and Restart

Viral Patel
  • 32,418
  • 18
  • 82
  • 110