-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Updating the Android deployment page #13242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sfshaza2
wants to merge
1
commit into
main
Choose a base branch
from
fix-12137
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+17
−8
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -27,9 +27,9 @@ This guide explains how to perform the following tasks: | |||||||||||||||||||
|
|
||||||||||||||||||||
| :::note | ||||||||||||||||||||
| Throughout this page, `[project]` refers to | ||||||||||||||||||||
| the directory that your application is in. While following | ||||||||||||||||||||
| these instructions, substitute `[project]` with | ||||||||||||||||||||
| your app's directory. | ||||||||||||||||||||
| the directory that contains your application. | ||||||||||||||||||||
| While following these instructions, | ||||||||||||||||||||
| substitute `[project]` with your app's directory. | ||||||||||||||||||||
| ::: | ||||||||||||||||||||
|
|
||||||||||||||||||||
| [play]: {{site.android-dev}}/distribute | ||||||||||||||||||||
|
|
@@ -47,7 +47,7 @@ Alternatively, you can do it manually using the following steps: | |||||||||||||||||||
|
|
||||||||||||||||||||
| 1. In the `[project]/android/app/src/main/res/` directory, | ||||||||||||||||||||
| place your icon files in folders named using | ||||||||||||||||||||
| [configuration qualifiers][]. | ||||||||||||||||||||
| [configuration qualifiers][config-qual]. | ||||||||||||||||||||
| The default `mipmap-` folders demonstrate the correct | ||||||||||||||||||||
| naming convention. | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
@@ -62,7 +62,7 @@ Alternatively, you can do it manually using the following steps: | |||||||||||||||||||
|
|
||||||||||||||||||||
| [flutter_launcher_icons]: {{site.pub}}/packages/flutter_launcher_icons | ||||||||||||||||||||
| [launchericons]: {{site.material}}/styles/icons | ||||||||||||||||||||
| [configuration qualifiers]: {{site.android-dev}}/guide/topics/resources/providing-resources#AlternativeResources | ||||||||||||||||||||
| [config qual]: {{site.android-dev}}/guide/topics/resources/providing-resources#AlternativeResources | ||||||||||||||||||||
| [applicationtag]: {{site.android-dev}}/guide/topics/manifest/application-element | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ## Enable Material Components | ||||||||||||||||||||
|
|
@@ -123,7 +123,7 @@ dependencies { | |||||||||||||||||||
| <a id="signing-the-app"></a> | ||||||||||||||||||||
| ## Sign the app | ||||||||||||||||||||
|
|
||||||||||||||||||||
| To publish on the Play Store, you need to | ||||||||||||||||||||
| To publish on the Play Store, you must | ||||||||||||||||||||
| sign your app with a digital certificate. | ||||||||||||||||||||
|
|
||||||||||||||||||||
| Android uses two signing keys: _upload_ and _app signing_. | ||||||||||||||||||||
|
|
@@ -144,7 +144,7 @@ To sign your app, use the following instructions. | |||||||||||||||||||
| If you have an existing keystore, skip to the next step. | ||||||||||||||||||||
| If not, create one using one of the following methods: | ||||||||||||||||||||
|
|
||||||||||||||||||||
| 1. Follow the [Android Studio key generation steps][]. | ||||||||||||||||||||
| 1. Follow the [Android Studio key generation steps][as-key-steps]. | ||||||||||||||||||||
| 1. Run the following command at the command line: | ||||||||||||||||||||
|
|
||||||||||||||||||||
| On macOS or Linux, use the following command: | ||||||||||||||||||||
|
|
@@ -185,7 +185,7 @@ If not, create one using one of the following methods: | |||||||||||||||||||
| the keystore type defaults to PKS12. | ||||||||||||||||||||
| ::: | ||||||||||||||||||||
|
|
||||||||||||||||||||
| [Android Studio key generation steps]: {{site.android-dev}}/studio/publish/app-signing#generate-key | ||||||||||||||||||||
| [as-key-steps]: {{site.android-dev}}/studio/publish/app-signing#generate-key | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ### Reference the keystore from the app | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
@@ -492,6 +492,15 @@ Typically, this is a reverse domain name, such as `com.example.myapp`. | |||||||||||||||||||
| Once you upload your app to the Play Store, you cannot change the Application ID. | ||||||||||||||||||||
| ::: | ||||||||||||||||||||
|
|
||||||||||||||||||||
| If you update the `applicationId` and `namespace` properties, | ||||||||||||||||||||
| you must also update the `package` statement in your `MainActivity.kt` | ||||||||||||||||||||
| or `MainActivity.java` file and move the file | ||||||||||||||||||||
| to the corresponding directory structure. | ||||||||||||||||||||
| For example, if your new ID is `com.example.myapp`, | ||||||||||||||||||||
| move your `MainActivity` file to | ||||||||||||||||||||
| `android/app/src/main/kotlin/com/example/myapp/MainActivity.kt` | ||||||||||||||||||||
| and ensure the first line is `package com.example.myapp`. | ||||||||||||||||||||
|
Comment on lines
+499
to
+502
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the instructions mention both Kotlin and Java files, it's helpful to provide the example path for both languages to ensure clarity for all users.
Suggested change
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| [application-id]: {{site.android-dev}}/studio/build/application-id | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ### Android SDK versions | ||||||||||||||||||||
|
|
||||||||||||||||||||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The link reference label
[config qual]does not match the identifier[config-qual]used on line 50. Markdown link references must match exactly (including spaces and hyphens) to resolve correctly.