This project is based on didactic purposes
- Create an Android App to read QR Codes
- It use Node, Ionic and Capacitor
1. Things that you need to install
- Node;
- Ionic;
- Android Studio;
2. Setting Android Studio
- Go to
Settings > Appearance & Behavior > System Settings > Android SDK
; - Check the option
Show Package Details
; - Check
Android SDK Platform
andSources for Android
options of your mobile's Android version onSDK Platforms
; - Check
Android SDK Platform-Tools
andGoogle USB Driver
options onSDK Tools
;
3. Environment Variables
- On
System Variables
, go to thePath
variable and click onEdit...
; - Now you need to create the following paths:
- C:\Users\<user>\AppData\Local\Android\Sdk\tools\bin - C:\Users\<user>\AppData\Local\Android\Sdk\tools\bin - C:\Users\<user>\AppData\Local\Android\Sdk\tools\bin
- Go into the
app/
directory and runnpm i
to install all the modules; - Now you need to build the project. For that you run
ionic build
, thennpx cap copy
to copy the web assets from thebuild
directory toandroid\app\src\main\assets\public
; - The first time you will need to run
npx cap open android
, to open Android Studio and install the aplication on your cellphone; - Every time you change something in the code, you will need to repeat step 2 and, on Android Studio, run the project;
You need to enable developer options on your mobile device.
Plug your mobile device before run the project on Android Studio.
Eduardo Chiletto |
João Breder |