Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Project 'MyProject' not found in root project 'MyProject'

Tags:

I'm currently using Android Studio and I'm trying to do a rebuild but I get the following error.

Gradle:  FAILURE: Build failed with an exception.  * What went wrong: Project 'MyProject' not found in root project 'MyProject'.  * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

I would attempt the "Try: run with --stacktrace" but, I'm unsure how to do this. Can anyone help my troubleshoot this problem? Thanks!

like image 480
daveomcd Avatar asked May 25 '13 20:05

daveomcd


People also ask

How do I add a project to gradle?

Include All Projects We need to include all of our projects in our settings. gradle. Go to our root of the project again, now run gradle projects. If your configuration is valid, you will receive “BUILD SUCCESSFUL” message as follows.


1 Answers

Delete .gradle folder in your project's root folder and resync gradle from Android Studio.

like image 72
Rakesh Avatar answered Sep 22 '22 12:09

Rakesh