Wednesday, October 18, 2017

Ionic 3 Build Android App - Create apk file which can be installed in an android device

Steps to create an apk file using ionic 3

Step1: Add Platform

$ ionic cordova add platform android

Step 2: Go to platforms/android

$ cd platforms/android

Note: Add the location of the bin folder of the JDK installation in the PATH Environment Variable

Step 3: Generate Keystore file 

$ keytool -genkey -v -keystore some_name.keystore -alias some_name-keyalg RSA -keysize 2048 -validity 10000

You should enter a password during the generation of some_name.keystore. Remember this passoword and keep some_name.keystore in a safe place.

Step 4: Open build.gradle file in platforms/android and search for the section signingConfigs. Make changes as shown below.

signingConfigs {
    release {
        // These must be set or Gradle will complain (even if they are overridden).
        keyAlias = "some_name"
        keyPassword = "your_password" // And these must be set to non-empty in order to have the signing step added to the task graph.
        storeFile = "some_name.keystore"
        storePassword = "your_password"
    }
}


Step 5: Go to your root folder of the project

$ cd ../../

Step 6: Build

$ ionic cordova build android --release

If successful you will get the following message
...
...
BUILD SUCCESSFUL

Total time: 45.593 secs
Built the following apk(s):
        path_root_folder/platforms/android/build/outputs/apk/android-release-unsigned.apk


Step 7: Sign the apk

$ jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore platforms\android\some_name.keystore platforms\android\build\outputs\apk\android-release-unsigned.apk some_name

Note: Add the location of the Android sdk build tools folder in the PATH Environment Variable.

Step 8: Zipalign

$ zipalign -v 4 platforms\android\build\outputs\apk\android-release-unsigned.apk Some_Name.apk


You will find the generated apk file in the root folder of your project. Generated apk file is now ready to be installed in your android phone.


78 comments:

  1. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.

    ionic training in chennai

    ReplyDelete
    Replies
    1. Ionic 3 Build is a very effective file creation application, when it's very light, when I use InShot Pro Mod APK, a photo editing application

      Delete
    2. Great, more informative updates at apkrapido.com

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. A few refreshed telephone accompanying Android stage. More than 500K android apps for more than 500 android gadgets have overflowed by android advertise.
    A few refreshed telephone accompanying Android stage. More than 500K android apps for more than 500 android gadgets have overflowed by android advertise.https://appcloner.app
    https://appcloner.net

    ReplyDelete
  4. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks auto reply text

    ReplyDelete
  5. Most of these applications are free. Some require you to upgrade by paying a small fee if you wish to get access to more advanced features. So what do you have to do to get files from the Market?
    app cloner

    ReplyDelete
    Replies
    1. The application is completely free, when I can transfer files quickly and conveniently, when I use the Muscle Booster Mod Apk application an application along with a lot of utilities.

      Delete
  6. Cycling in Theth is something else!!! There is so much to see and to learn from Albania! Travel Albania

    ReplyDelete
  7. If you are looking for an inspirational walk than trekking in the trail of the old mills in Dhermi in Albania is a must-do. Albanian Cities

    ReplyDelete
  8. Most of the time I don’t make comments on websites, but I'd like to say that this article really forced me to do so. Really nice post! XE88

    ReplyDelete
  9. Usually, App development process comprises of many critical stages that require intense attention, greater care and precise knowledge.Mobile App

    ReplyDelete
  10. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. showboxapkfree

    ReplyDelete
  11. I have to search sites with relevant information on given topic and provide them to teacher our opinion and the article. showboxapkfree

    ReplyDelete
  12. I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. TubeMate APK Review

    ReplyDelete
  13. A good blog always comes-up with new and exciting information and while reading I have feel that this blog is really have all those quality that qualify a blog to be a one. Tubidy Video APK Download Latest version Free

    ReplyDelete
  14. Android 3 Apps will make simple to create Android Apps according to the prerequisite.
    Bulk SMS Service Provider in Sharjah UAE

    ReplyDelete
  15. In such a case I prefer to relax with my tablet and watch a movie with the help of some special application.
    If you don't have such you can download it here https://ishowboxapk.com/ and try to enjoy your favorite TV show or movie.
    showbox Apk download/

    ReplyDelete
  16. This comment has been removed by the author.

    ReplyDelete
  17. This comment has been removed by the author.

    ReplyDelete
  18. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. blackmart apk xda _ APK For All

    ReplyDelete
  19. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. blackmart apk xda _ APK For All

    ReplyDelete
  20. Minecraft Apk indir and Minecraft Pe APK Free current version 1.14.20.1 : gratis There are so many games on the internet that one can spend whole life and yet cannot play all of them. However, there are only a few games that make their way to the top. Reaching the top means that these specific games come on top of the abyss of games present out there. Only graphics or cool soundtrack is helping to reach the top

    ReplyDelete
  21. The need for mobile app developers is thus increasing at a higher rate. The ace players in Smartphone market including Apple and Google are striving to attract app developers to their App Store by providing some relaxation in their regulations.Mobile App development

    ReplyDelete
  22. In addition to the fact that it is a telephone, yet it can serve as a convenient gaming gadget. The controls are fundamentally the same as Sony's different items,game mod for example, the PSP and the PS3 controller just to give some examples.

    ReplyDelete
  23. You can utilize the 'what you see is the thing that you get' (WYSIWYG) editorial manager to create site content.Wikipedia writers for hire

    ReplyDelete
  24. Hey what a brilliant post I have come across and believe me I have been searching out for this similar kind of post for past a week and hardly came across this. Thank you very much and will look for more postings from you. www.play2048cupcakes.com

    ReplyDelete
  25. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. play2048cupcakes.com

    ReplyDelete
  26. This comment has been removed by the author.

    ReplyDelete
  27. Also, they need to explore ways to make the app deliver personalized user experience across varying devices and operating system version. They further need to address a number of common challenges to develop a robust Android app.Smart AudioBook Player Pro

    ReplyDelete
  28. The Android podium poses enormous opportunities for Android app developers if they understand its limitation and problem, and be ready to face the challenges waiting on their way.this content

    ReplyDelete
  29. Awesome article, it was exceptionally helpful! I simply began in this and I'm becoming more acquainted with it better! Cheers, keep doing awesome! Download mini militia mod apk

    ReplyDelete
  30. Apk Factor There are so many games on the internet that one can spend whole life and yet cannot play all of them. However, there are only a few games that make their way to the top. Reaching the top means that these specific games come on top of the abyss of games present out there. Only graphics or cool soundtrack is helping to reach the top

    ReplyDelete
  31. Https://miguelcleon.com/ is a free game sharing site, with the latest updated versions.

    ReplyDelete
  32. I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details. lulubox apk

    ReplyDelete
  33. Great article Lot's of information to Read...Great Man Keep Posting and update to People..Thanks app creator

    ReplyDelete
  34. Game is definitely a needful part on your android phone, right Free Download Android Games

    ReplyDelete
  35. Great Article it its really informative and innovative keep us posted with new updates. its was really valuable. thanks a lot. official site

    ReplyDelete
  36. No additional cash is charged for transferring or downloading Applications, and high safety efforts, for example, confirmation of authentications and approval check of marks are performed while transferring application so as to give exceptionally trusted and unique applications to the clients that are available in Play Store. itools crack

    ReplyDelete
  37. I can recommend primarily decent and even responsible tips, as a result view it: northshore employee connect

    ReplyDelete
  38. This is important, though it's necessary to help you head over to it weblink: employee connect northshore

    ReplyDelete
  39. Wow, this is really interesting reading. I am glad I found this and got to read it. Great job on this content. I like it. tic tac toe

    ReplyDelete
  40. You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!. buy automatic instagram views monthly

    ReplyDelete
  41. I have seen some great stuff here. Worth bookmarking for revisiting. I surprise how much effort you put to create such a great informative website. Your work is truly appreciated around the clock and the globe. link

    ReplyDelete
  42. Wonderful article. Fascinating to read. I love to read such an excellent article. Thanks! It has made my task more and extra easy. Keep rocking. https://lulubox.com.br/

    ReplyDelete
  43. This article is going to highlight a few Android apps that are extremely helpful to look after the babies! Read on and know about these effective baby monitoring Android applications. Today, technology is progressing in such a way that smartphones are becoming substitutes for almost anything you can think of! http://apkdoor.com/

    ReplyDelete
  44. Choosing the right catalytic converter for your car is increasingly recognised as one of the most important decisions you will make when maintaining your car. Whether you are looking to maximise performance, minimise fuel consumption or do your bit for the environment getting the right catalytic converter for you will save time, money and avoid the headaches of failing an MoT. This article contains some of the most frequently asked questions about catalytic converters. Ontiva YouTube To MP3 Converter

    ReplyDelete
  45. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work. download blackmart apk

    ReplyDelete
  46. This is a good post. This post gives truly quality information. I’m definitely going to look into it. Really very useful tips are provided here. Thank you so much. Keep up the good works. smart glass

    ReplyDelete
  47. Recognize what you are getting: Just in light of the fact that the promotion says you are purchasing an iPhone 3g 8gb motherboard doesn't mean you will get what you need.Display Iphone reparatur

    ReplyDelete
  48. Forex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD

    Forex Signals Forex Strategies Forex Indicators Forex News Forex World

    ReplyDelete
  49. Forex Signals, MT4 and MT5 Indicators, Strategies, Expert Advisors, Forex News, Technical Analysis and Trade Updates in the FOREX IN WORLD

    Forex Signals Forex Strategies Forex Indicators Forex News Forex World

    ReplyDelete
  50. thank you for sharing such important knowledge because it is important for us to be confident about this issue and try to avoid these types of Gaming apk that can harm us mentally also.

    ReplyDelete
  51. This apparatus guides the tweet to a particular client and works as to a greater extent a one-on-one methodology. buy twitter followers cheap

    ReplyDelete
  52. Hey! Finally we are launch 150+ High DA Dofollow White Hat Manual SEO Backlinks here! Order Now and Boost your website ranking.

    100% Google Indexing White Hat Manual SEO Backlinks

    Thank you!
    DigiPeek

    ReplyDelete
  53. The next time I read a blog, I hope that it doesnt disappoint me as much as this one. I mean, I know it was my choice to read, but I actually thought you have something interesting to say. All I hear is a bunch of whining about something that you could fix if you werent too busy looking for attention. what is iptv

    ReplyDelete
  54. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. oreo tv app for pc

    ReplyDelete
  55. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. Printing

    ReplyDelete
  56. Great post by owners, give time to check this out= apkblink

    ReplyDelete
  57. Step 1: Make a list of keywords that make a high keyword density in your content. Choose keywords with commercial target. When visitors use these keywords to make a search, and if your website keyword content matches with the query, then there are chances for getting your website indexed by the search engines. 현금바둑이

    ReplyDelete
  58. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.Thanks business texting app

    ReplyDelete
  59. Thank you because you have been willing to share information with us. we will always appreciate all you have done here because I know you are very concerned with our. Beetv Click here

    ReplyDelete
  60. Step-by-Step create website Easy to Customize, Publish Now! Custom domain name. Multiple payment methods. Free multilingual fonts. 24/7 support center. 1000s of free images. Top industry hosting. 100s of Apps. Easy-to-add blog. Mobile optimized. Create Website

    ReplyDelete
  61. Enjoy millions of the latest Android apps, games, music, movies, TV, books, magazines & more. Apps

    ReplyDelete
  62. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. Murex confirmations

    ReplyDelete
  63. Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written. Murex SWIFT

    ReplyDelete
  64. Shield Security Solutions Provides Ontario Security Training, Security Guard License or Security License in Ontario. Get Started Today

    ReplyDelete
  65. Step-by-Step create website Easy to Customize, Publish Now! Custom domain name. Multiple payment methods. Free multilingual fonts. 24/7 support center. 1000s of free images. Top industry hosting. 100s of Apps. Easy-to-add blog. Mobile optimized. Create Website

    Reply

    ReplyDelete
  66. Thanks for sharing, this is a easy way to create for best Deezer PC.

    ReplyDelete
  67. URL Encoder. Enter text to URL encode or decode. Converts the text into a percent encoded string URL CODE

    ReplyDelete
  68. You there, this is really good post here. Thanks for taking the time to post such valuable information. Quality content is what always gets the visitors coming. unlock google account

    ReplyDelete