Ok Guys,
I just developed this sample ionic app but i want to share it to my friends to test the app.
please, how do i go about it? what can i do?
Hi, great work building your app,
For the android version, run ionic cordova build android
and this will generate an APK you can send to your friends for testing.
For iOS, you will need to run ionic cordova build ios
, then open the project in XCode and compile to an iOS device plugged into your mac
Let me know if you need any other information.
Thank you very much. but i am getting this error that says
Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually.
Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.
[ERROR] An error occurred while running subprocess cordova.
Please what can i do? I dont have android studio installed yet.
You have to first set your enviroment variable as a name Android-Home and paste your android studio location as
set ANDROID_HOME=C:\ installation location \android-sdk
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
then run the command
ionic cordova build android --device --prod
then find the location as
platforms\android\build\outputs\apk
so find your apk and share with your contacts…
cheers!!