I’m trying to use capacitor v5 to convert my vue v2 based web application into android application. When I open android studio and try to run, I get a white screen. Can someone pls tell me how to debug or follow more steps, as I’m new to mobile dev.
I’m using capacitor v5 because my app is using node v16, and capacitor v6 supports node v18+.
Steps I followed (from https://capacitorjs.com/docs/v5/getting-started):
-
npm i @capacitor/[email protected]
npm i -D @capacitor/[email protected] -
npx cap init
-
npm i @capacitor/android
-
npx cap add android
-
npm run build
-
npx cap sync
-
npx cap open android
-
Then I had to delete .gz files in my appsrcmainassetspublic folder because android studio was giving ‘duplicate resource’ error. Not sure if this was the correct thing to do.
-
run the app on Pixel 3a API VanillaIceCream.
I was expecting the app to run properly on android studio
Puru Kohli is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.