# Umbenennen einer App

Das Umbenennen einer App führt schnell zu Fehlern. Falls das Projekt erst erstellt wurde, geht es schneller, das Projekt neu zu erstellen.

## 1. Ordner umbenennen

Zuerst sollte Android Studio geschlossen werden und der Ordner des Projektes umbenannt werden. Dann kann das Projekt wieder geöffnet werden.

## 2. Package Namen ändern

![https://gyazo.com/05f6d0d29645a56f77fb2a4bc0cf10fe](https://i.gyazo.com/05f6d0d29645a56f77fb2a4bc0cf10fe.png) ![https://gyazo.com/5e805f4d4bb1f669f5bec142d206e538](https://i.gyazo.com/5e805f4d4bb1f669f5bec142d206e538.png) "Refactor" ändert den Package Namen im ganzen Projekt. Achtung: dies bezieht sich nur auf den letzten Teil des Packages ("MyApp" bei "com.company.MyApp"). Dies muss mit "Do Refactor" bestätigt werden.

## 3. Domain ändern

Jetzt kann die Domain ("com.company" bei "com.company.MyApp") in der Datei "manifests/AndroidManifest.xml" geändert werden: ![https://gyazo.com/333fb9d26d59f08626c065b18b9135f3](https://i.gyazo.com/333fb9d26d59f08626c065b18b9135f3.png) ![https://gyazo.com/bf664fcf6ece0a6a9dc087f85705c9c1](https://i.gyazo.com/bf664fcf6ece0a6a9dc087f85705c9c1.png) ![https://gyazo.com/622752a8620fc4d87e3c5873d76e2956](https://i.gyazo.com/622752a8620fc4d87e3c5873d76e2956.png) ![https://gyazo.com/e4061ad32e16443e6aab865fec7b2b3b](https://i.gyazo.com/e4061ad32e16443e6aab865fec7b2b3b.png)

## 4. Namen ändern

Der angezeigte Appname ist als string Resource gespeichert: ![https://gyazo.com/a036f1807ddeb862b2e553994f3dc8cd](https://i.gyazo.com/a036f1807ddeb862b2e553994f3dc8cd.png)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ottojo.gitbook.io/android-studio/overview/umbenennen_einer_app.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
