Configuração
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
To integrate the Ink API, first add the dependencies in your app. From there,
you can access the different modules for your inking needs.
The Ink API library is available from the Google Maven repository. Add the
dependency to your app's build.gradle
file as shown:
Kotlin
dependencies {
val ink_version = "1.0.0-alpha01"
implementation("androidx.ink:ink-authoring:$ink_version")
implementation("androidx.ink:ink-brush:$ink_version")
implementation("androidx.ink:ink-geometry:$ink_version")
implementation("androidx.ink:ink-nativeloader:$ink_version1")
implementation("androidx.ink:ink-rendering:$ink_version")
implementation("androidx.ink:ink-strokes:$ink_version")
}
Groovy
dependencies {
def ink_version = "1.0.0-alpha01"
implementation "androidx.ink:ink-authoring:$ink_version"
implementation "androidx.ink:ink-brush:$ink_version"
implementation "androidx.ink:ink-geometry:$ink_version"
implementation "androidx.ink:ink-nativeloader:$ink_version"
implementation "androidx.ink:ink-rendering:$ink_version"
implementation "androidx.ink:ink-strokes:$ink_version"
}
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-07-27 UTC."],[],[],null,["# Setup\n\nTo integrate the Ink API, first add the dependencies in your app. From there,\nyou can access the different modules for your inking needs.\n\nThe Ink API library is available from the Google Maven repository. Add the\ndependency to your app's `build.gradle` file as shown: \n\n### Kotlin\n\n```kotlin\ndependencies {\n val ink_version = \"1.0.0-alpha01\"\n\n implementation(\"androidx.ink:ink-authoring:$ink_version\")\n implementation(\"androidx.ink:ink-brush:$ink_version\")\n implementation(\"androidx.ink:ink-geometry:$ink_version\")\n implementation(\"androidx.ink:ink-nativeloader:$ink_version1\")\n implementation(\"androidx.ink:ink-rendering:$ink_version\")\n implementation(\"androidx.ink:ink-strokes:$ink_version\")\n}\n```\n\n### Groovy\n\n```groovy\ndependencies {\n def ink_version = \"1.0.0-alpha01\"\n\n implementation \"androidx.ink:ink-authoring:$ink_version\"\n implementation \"androidx.ink:ink-brush:$ink_version\"\n implementation \"androidx.ink:ink-geometry:$ink_version\"\n implementation \"androidx.ink:ink-nativeloader:$ink_version\"\n implementation \"androidx.ink:ink-rendering:$ink_version\"\n implementation \"androidx.ink:ink-strokes:$ink_version\"\n}\n```"]]