Error null value in entry fakeoutputdirectory=null?

1.8k Views Asked by At

When I try to run my app on android studio, I get an error that says:

Error null value in entry: fakeOutputDirectory = null

I have tried deleting the .gradle folder but it doesn't help.

Note: I am running on the built in avd emulator

3

There are 3 best solutions below

0
user8456934 On

Before deleting .gradle folder from project directory,check and update the gradle to the matching version. Then perform clean build

0
Bahu On

This solution not useful for this question but it may help the people who are working on Cordova

Same problem i've faced in Cordova and solved by using following commands

Remove android platform

cordova platform remove android

Add platform again

cordova platform add android 

or

cordova platform add [email protected]
0
Sikander On

I deleted the gradle directory via Terminal using

rm -r .gradle/

Before building it straight away, I cleaned the project first and then tried to build. Worked fine.