In this post we going to created release APK using capacitor ionic. We going to explain from scratch how we are going to deploy signed bundle build.
In our earlier tutorial we have already explain how we can create our first app using ionic.
Requirements
- Node JS
- VS Code
- Android Studio
- Developer Account on Google Play
npm install --save @capacitor/core @capacitor/clifor initialize capacitor in our project need to run this command
npx cap init
Adding Android platform in project
To adding android platform you just need to run the following command in terminal window
npx cap add android
If you make any changes in your project after adding the platform then you need to following command to copy the change in android folder.
npx cap copy
After all these things now run this command,
npx cap open android
this will open you project in android studio. To open first time android studio make sure you have proper internet because it's need to install the gradle dependencies in your project.
Run Your project on Emulator
After successfully install of gradle dependencies, now time for run your application in android studio. Before running this make you have emulator and real device which is connected with your computer.
For running this you just need to click on run button and wait for successfully installation. Once the app is install its automatically open on your mobile/emulator screen.
For deploying on play store you need to create a signed APK build. For generate signed bundle/APK you need to follow the below mention steps.
- In the menu bar, click Build > Generate Signed Bundle/APK.
- In the Generate Signed Bundle or APK dialog, select Android App Bundle or APK and click Next.
projectfolder/android/app/release/app-release.apk
projectfolder/android/app/release/app-release.abb
1 Comments
Very Help Article
ReplyDelete