ionic-team / ionic-team/ionic-cli
bug: Whenever I run an Android emulator, AndroidManifest.xml get changed
- Linguagem predominante
- TypeScript
- Estrelas
- 2k
- Forks
- 682
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
**Description:**
I am using Ionic 6 with React. I run the following command to start up Android emulator:
`ionic cap run android -l --external --target Pixel_5_API_33`
The emulator starts up, but right away the `AndroidManifest.xml` file get updated and an `AndroidManifest.xml.org` file is added.
When I shut the emulator down, everything goes back to normal. In other words, the changes to the `AndroidManifest.xml` are reverted and the `AndroidManifest.xml.org` is deleted.
I’ve not seen any equivalent behavior with iOS.
**Steps to Reproduce:**
You can reproduce this by creating a new project `ionic start photo-gallery tabs --type=react --capacitor`
Then add android to the project `ionic cap add android`
Then start up an emulator: `ionic cap run android -l --external --target Pixel_5_API_33`
**Output:**
**My `ionic info`:**
```
Ionic:
Ionic CLI : 6.20.1 (/Users/nathan/.local/share/yarn/global/node_modules/@ionic/cli)
Capacitor:
Capacitor CLI : 4.0.1
@capacitor/android : 4.0.1
@capacitor/core : 4.0.1
@capacitor/ios : 4.0.1
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
NodeJS : v16.15.1 (/Users/nathan/.asdf/installs/nodejs/16.15.1/bin/node)
npm : 8.11.0
OS : macOS Monterey
```
**Other Information:**
The settings (i.e. data) in the file does not change. Only the formatting. It changes from:
```
```
To:
```
```
Guia de contribuição
Direção de pesquisa
Start by reproducing the issue with `ionic cap run android -l --external --target Pixel_5_API_33` using the listed Capacitor project setup. Inspect when `AndroidManifest.xml` changes and `AndroidManifest.xml.org` is created, then verify that emulator startup no longer changes formatting or leaves the backup file behind.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- android, typescript
- Domínio
- cli, mobile-dev
- Tipo de issue
- Bug
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 38/100