Installing ionic and android SDK

I am a bit confused. Do I need to make a new folder and make a new cordova app first then install ionic in that folder? I have followed the ionic tutorial and it says that ionic is wrapped with cordova.

I can install ionic and run the server and view the pages etc but i’m having a problem trying to add the android SDK. Its like it is looking for Cordova and cannot find it


follow this stapes

There is any updated tutorial or documentation about how to install Android SDK on linux and how to generate que APK?

At the link you post the steps do not work and the command “ionic cordova platform add android” do not work, it says: “cordova is not a valid task”.

What it means by that is “your Ionic CLI is outdated”. Upgrade it with npm i -g ionic.

Thank you, that helped a lot. Unfortunately I still can not install the Android SDK, so it gave a new error:

‘Error: Failed to find ‘ANDROID_HOME’ environment variable. Try setting setting it manually.
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.’

This error I think I understood the reason. I am without the Android SDK. I managed to install the Android Studio IDE but it comes without the Android SDK. I also downloaded the SDK package with the tools sdkmanager and avdmanager, but I still have not found updated information about how to use this to install the Android SDK on Android Studio.

It’s been very painful to be able to generate my first APK, Two days trying and I only find tutorials with deprecated commands or about Windows.

I don’t know anything about Android Studio, but here are docs for how to install everything you need to work with Ionic just using the sdkmanager CLI.

here you can find how to install android studio

after install android studio cross check if ANDROID_HOME variable set if not than use