Search code examples
android-studiogradleandroid-gradle-pluginandroid-simple-facebook

Gradle complains: "TaskSelectionException: Task 'generateDebugTestSources' not found in project"


Updating Android Studio from 1.1.0 to 1.2 RC0 broke my (previously flawlessly running) project. The error message is:

TaskSelectionException: Task 'generateDebugTestSources' not found in project ':libraries:android-simple-facebook:Simple Facebook'. Some candidates are: 'generateDebugResources'.

What does that mean? And how can it be fixed? Any advice is appreciated. Thank you.


Solution

  • I got this error after I renamed the project.

    Solution is: Press on the "Sync Project With Gradle Files" once. After this the error will be gone. enter image description here