When I run the command
ionic cordova emulate android command, i get the following error :
> cordova emulate android ANDROID_HOME=~/Library/Android/sdk JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home Error: spawn EACCES [ERROR] An error occurred while running cordova emulate android (exit code 1).
So I compared the platform/android folder with one of the projects that works and I notice it is missing .gradle, gradle, gradlew and gradlew.bat
Any idea as to why those are missing? If I copy those over, it works … but only on an emulator running Nougat.
I had an error
Error: Cannot read property 'replace' of undefined
When the emulator was running Oreo …