Using the latest Android Studio 3.0 Canary 5
Here\'s the error:
Error:(1, 1) A problem occurred evaluating project \':app\'.
Failed to app
I got the issue and realized the issue related with caches. You have to invalidate caches of Android studio by select File-> Invalidate Caches/Restart. It worked for me. The issue was resolved.