I developped an an application with IONIC, I wanted to run it on an andoid device but when i generated the the android project with Capacitor and I ran it in Android Studio I had this error when I tried to build it:
AndroidManifest.xml:18:9-24:58: AAPT: error: resource string/activity_name (aka io.ionic.starter:string/activity_name) not found.
ionic build
is required every time you make changes and want them to be updated on the native side.
ionic capacitor add android
only once while adding a new platform
After this, use these for future changes
ionic build && ionic capacitor sync android
(if you have added any new package/plugin)
ionic build && ionic capacitor copy android
(if only code has been changed)
Note: ionic capacitor
and npx cap
both can be used.. Reference Docs Capacitor
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.