-
-
Notifications
You must be signed in to change notification settings - Fork 126
Create a Package
The package name is an internal namespace for your code such as com.example.app.
Right-click on /app/src/main/kotlin and select New → Package. Name the package:
- Segments are separated with full stops.
- In segments, only alphanumeric characters and underscores are allowed.
Note
Segments are translated to directories, so com.example.app becomes .../com/example/app.
Expand /app/src/main/kotlin/dev/jahir/frames/app (that’s dev.jahir.frames.app—the default package) and cut all four files located inside. Paste these in your package and delete the default package directory.
Edit package
in /app/src/main/AndroidManifest.xml to connect the newly created package.
package="dev.jahir.frames.app">
Note
In case of issues, select File → Invalidate Caches, check Clear file system cache and local history, and click Invalidate and Restart.
Copyright 2022 by Jahir Fiquitiva. This work is licensed under the CreativeCommons Attribution-ShareAlike 4.0 International License.