Skip to content
Merged
8 changes: 7 additions & 1 deletion content/en/docs/platforms/android/java/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,17 @@ weight: 10
- An android device set up for [USB debugging][] or an
[Android Virtual Device][]

- Add the following line in your gradle.properties to ensure compatibility with Android tooling and libraries:
**android.useAndroidX=true**

{{% alert title="Note" color="info" %}}
gRPC Java does not support running a server on an Android device. For this
quick start, the Android client app will connect to a server running on your
local (non-Android) computer.
{{% /alert %}}

For AGP 7.x, it's recommended to use Java 11, 17, or 20 to avoid DexWorkAction / D8 issues.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just mention 11 - 20

While Java 21 might technically work, it's safer to avoid it due to potential compatibility quirks.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we know "AGP 7.x’s D8 supports bytecode up to v61, so Java 21+ (v65+) fails." why not explicitly mention that 21+ will not work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and updated the message.Thanks!

Note that AGP 8.x and later explicitly require Java 17 as the minimum version.{{% /alert %}}

### Get the example code

Expand Down