mirror of https://github.com/grpc/grpc.io.git
grpc-io: Update Android quickstart docs with AndroidX and java version guidance in quickstart.md (#1452)
This commit is contained in:
parent
de5a33dd55
commit
ad84a08358
|
|
@ -6,7 +6,10 @@ weight: 10
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
|
|
||||||
- [JDK][] version 7 or higher
|
- [JDK][] version 11 or higher.
|
||||||
|
|
||||||
|
1. The example uses AGP 7.x (compatible with Java 11–17). If you upgrade it to AGP 8.x, it requires Java 17+.
|
||||||
|
|
||||||
- Android SDK, API level 16 or higher
|
- Android SDK, API level 16 or higher
|
||||||
|
|
||||||
1. Install [Android Studio][] or the Android [command-line tools][].
|
1. Install [Android Studio][] or the Android [command-line tools][].
|
||||||
|
|
@ -24,6 +27,9 @@ weight: 10
|
||||||
- An android device set up for [USB debugging][] or an
|
- An android device set up for [USB debugging][] or an
|
||||||
[Android Virtual Device][]
|
[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" %}}
|
{{% alert title="Note" color="info" %}}
|
||||||
gRPC Java does not support running a server on an Android device. For this
|
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
|
quick start, the Android client app will connect to a server running on your
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue