

Open the system properties (WinKey + Pause), select the “Advanced” tab, and the “Environment Variables” button, then add “C:\Program Files\gradle-x.x\bin” (or wherever you unzipped Gradle) to the end of your “Path” variable under System Properties. Add location of your Gradle “bin” folder to your path.The subdirectory gradle-x.x will be created from the archive, where x.x is the version. Unzip the Gradle download to the folder to which you would like to install Gradle, eg.The following commands will create a pure "Hello Cordova" cordova project with and build/run it on a simulator or usb device.3. To rule out that something inside inside ionic is causing the issue, I'd try building a test app without ionic.

Cordova will read from the ANDROID_HOME and ANDROID_SDK_HOME environment variables and should set the required variables in the android studio project accordingly. This would be the Gradle way of defining where the Android SDK is. Which is I believe is currently 14.20.0Īnd I need to create a local.properties with the sdk.dir variable in it ( issue) Just one additional note, I'd use the latest patch available within 14.x. Unfortunately, i can't use Node 16.X cause of node-sass and ionic 3.X I tried to build with node 14.X, same issue. Unless if you have specific use-cases, it's better off as a file that does not exists. Good, by default this file does not exists, but if it does, it will be used as user-level settings for gradle. Let me know if any of these things helps.Ībout the first point I do not have a file in ~/.gradle/gradle.properties So when migrating from an older version of cordova-android to a newer version, you usually have to delete/wipe/run cordova platform remove android and then re-add the android platform using cordova platform add Simply updating the cordova-android NPM dependency will not work. It's always recommended to use the LTS releases which are always the even numbers (14.x, 16.x, etc).Ĭurrently the minimum supported Node version is 14.x, but it's recommended to use NodeJS 16. Might not be related to this issue, but Cordova doesn't support any odd releases (13.x, 15.x, 17.x, etc) as these are bleeding edge test releases that are short lived.
