Ionic run androi not working

I’m trying to execute the command “ionic run android”, but it’s not working. I get this error:


JAVA_HOME=C:\Program Files\Java\jdk1.8.0_121

Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: C:\Android\sdk\tools\templates\gradle\wrapper

I have been trying to find the cause and a solution, but haven’t been able to find anything. Does anyone have any idea what it can be?

1 Like

I am seeing the same error message with “ionic build android --prod --release”.

Try this

ionic platform rm android
cordova platform add android@6.2.0 --save