I updated my gradle version to 4.10.1 and fix and reimport repaired it. There were no libraries folder under .idea before.