I am able to gradle build successfully but while running the app getting below Error.
error: failed writing to \'D:\\ ...\\Projects\\DineNow\\GitCode\\Din
I ran into this issue today. I corrected it by setting classpath 'com.android.tools.build:gradle:3.4.2' in build.gradle
I ran into this issue today. I corrected it by setting classpath in build.gradle
com.android.tools.build:gradle:3.4.2
The problem was from my antivirus.
I cleaned my project first then under the build tab i clicked run generate sources gradle task then rebuilt my project and it worked. hope it works for you best of luck
I encountered the same error. Check for updates coming to Android studio. After I updated the problem was fixed.