Skip to content

Commit e35ae06

Browse files
Add missing note about building Android plugin (#10362)
Every other platform's section had the note about needing to build at least once before opening the native project, but it was missing for Android; this adds it. It also updates the iOS and macOS docs to add the `--config-only` flag, which is an option that was added after these docs were originally written, and makes the step much faster. (Windows and Linux are unchanged since that option does not yet exist for those platforms). _Description of what this PR is changing or adding, and why:_ _Issues fixed by this PR (if any):_ ## Presubmit checklist - [x] This PR doesn’t contain automatically generated corrections (Grammarly or similar). - [x] This PR follows the [Google Developer Documentation Style Guidelines](https://developers.google.com/style) — for example, it doesn’t use _i.e._ or _e.g._, and it avoids _I_ and _we_ (first person). - [x] This PR uses [semantic line breaks](https://github.com/dart-lang/site-shared/blob/main/doc/writing-for-dart-and-flutter-websites.md#semantic-line-breaks) of 80 characters or fewer.
1 parent 558e194 commit e35ae06

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/packages-and-plugins/developing-packages.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,12 @@ Locate the file `lib/hello.dart`.
409409

410410
We recommend you edit the Android code using Android Studio.
411411

412+
Before editing the Android platform code in Android Studio,
413+
first make sure that the code has been built at least once
414+
(in other words, run the example app from your IDE/editor,
415+
or in a terminal execute
416+
`cd hello/example; flutter build apk --config-only`).
417+
412418
Then use the following steps:
413419

414420
1. Launch Android Studio.
@@ -434,7 +440,7 @@ Before editing the iOS platform code in Xcode,
434440
first make sure that the code has been built at least once
435441
(in other words, run the example app from your IDE/editor,
436442
or in a terminal execute
437-
`cd hello/example; flutter build ios --no-codesign`).
443+
`cd hello/example; flutter build ios --no-codesign --config-only`).
438444

439445
Then use the following steps:
440446

@@ -518,7 +524,7 @@ Before editing the macOS platform code in Xcode,
518524
first make sure that the code has been built at least once
519525
(in other words, run the example app from your IDE/editor,
520526
or in a terminal execute
521-
`cd hello/example; flutter build macos`).
527+
`cd hello/example; flutter build macos --config-only`).
522528

523529
Then use the following steps:
524530

0 commit comments

Comments
 (0)