bug: Whenever I run an Android emulator, AndroidManifest.xml get changed
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 38/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- android, typescript
- Bereich
- cli, mobile-dev
Rechercherichtung
Beginne damit, das Problem mit ionic cap run android -l --external --target Pixel_5_API_33 unter Verwendung des aufgeführten Capacitor-Projektaufbaus zu reproduzieren. Untersuche, wann sich AndroidManifest.xml ändert und AndroidManifest.xml.org erstellt wird, und überprüfe anschließend, dass der Start des Emulators die Formatierung nicht mehr verändert und die Sicherungsdatei nicht zurücklässt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.todos.mobile">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode"
android:name="dev.todos.mobile.MainActivity"
android:label="@string/title_activity_main"
android:theme="@style/AppTheme.NoActionBarLaunch"
android:launchMode="singleTask"
android:screenOrientation="fullSensor"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/file_paths"></meta-data>
</provider>
</application>
<!-- Permissions -->
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
To:
<?xml version='1.0' encoding='utf-8'?>
<manifest package="dev.todos.mobile" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|smallestScreenSize|screenLayout|uiMode" android:exported="true" android:label="@string/title_activity_main" android:launchMode="singleTask" android:name="dev.todos.mobile.MainActivity" android:screenOrientation="fullSensor" android:theme="@style/AppTheme.NoActionBarLaunch">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<provider android:authorities="${applicationId}.fileprovider" android:exported="false" android:grantUriPermissions="true" android:name="androidx.core.content.FileProvider">
<meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
</provider>
</application>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2k
- Forks
- 681
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ionic-team/ionic-cli
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 65/100
ionic-team/ionic-cli#5016 ·
-
triage
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
ionic-team/ionic-cli#5131 ·
-
triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
ionic-team/ionic-cli#5130 ·
-
triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 72/100
ionic-team/ionic-cli#5129 ·
-
triage
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
ionic-team/ionic-cli#5127 · 2 Kommentare ·
Alle Issues in ionic-team/ionic-cli
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
umbraco/Umbraco-CMS-MCP-Dev#512 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
wimpysworld/sidra#290 ·
Maintainer antworten meist innerhalb von 1 Tag
-
defuFn invokes function values for inherited default propertiesEvtl. vergeben @xiehuanyi hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
-
feature request good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
TabularisDB/tabularis#853 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
capricorn86/happy-dom#2474 ·
Maintainer antworten meist innerhalb von 2 Tagen