Please note that the minimal Android SDK level required for using the Hedera™ Java SDK in an Android project is 26.
To get started with an Android project, you'll need to add the following two dependencies:
- Hedera™ Java SDK:
implementation 'com.hedera.hashgraph:sdk:2.45.0'
- gRPC implementation:
It is automatically aligned with the
grpc-api
version Hedera™ Java SDK use.
// okhttp transport (for lighter-weight applications or Android
runtimeOnly("io.grpc:grpc-okhttp")
To make it easier to start your Android project using the Hedera™ Java SDK, we recommend checking out the Android example. This examples show different uses and workflows, giving you valuable insights into how you can use the Hedera platform in your Android projects.