한눈에 보기 설정
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 페이지에서는 Glance를 사용하기 위한 개발 환경을 설정하는 방법을 설명합니다.
출시 페이지에서 사용 가능한 최신 버전을 다운로드할 수 있습니다.
빌드하려는 '글랜서블' 유형에 따라 앱의 모듈에 특정 Glance 종속 항목을 추가합니다.
dependencies {
// For AppWidgets support
implementation "androidx.glance:glance-appwidget:1.1.1"
// For interop APIs with Material 3
implementation "androidx.glance:glance-material3:1.1.1"
// For interop APIs with Material 2
implementation "androidx.glance:glance-material:1.1.1"
}
Compose 컴파일러 활성화
Compose 컴파일러가 Glance에서 사용될 수 있도록 다음 옵션을 설정합니다.
android {
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.15"
}
kotlinOptions {
jvmTarget = "1.8"
}
}
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-08-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-27(UTC)"],[],[],null,["This page describes how to set up your development environment to use Glance.\nYou can get the latest available version from\n[the release page](/jetpack/androidx/releases/glance).\n\nAdd the specific Glance dependency in your app's module based on the type of\n\"glanceable\" you want to build. \n\n dependencies {\n // For AppWidgets support\n implementation \"androidx.glance:glance-appwidget:1.1.1\"\n\n // For interop APIs with Material 3\n implementation \"androidx.glance:glance-material3:1.1.1\"\n\n // For interop APIs with Material 2\n implementation \"androidx.glance:glance-material:1.1.1\"\n }\n\nActivate Compose compiler\n\nSet the following options to ensure that the Compose compiler is available for\nGlance: \n\n\n android {\n buildFeatures {\n compose true\n }\n\n composeOptions {\n kotlinCompilerExtensionVersion = \"1.5.15\"\n }\n\n kotlinOptions {\n jvmTarget = \"1.8\"\n }\n }"]]