개발자가 안정화된 채널에서 AI 기능을 최대한 빨리 액세스하고 싶다는 의견이 있었습니다. 이제 Narwhal 안정화 버전부터 설정 메뉴의 스튜디오 실험실 메뉴를 통해 최신 AI 실험 기능을 살펴보고 사용해 볼 수 있습니다.
AI 실험을 미리 살펴보고 의견을 공유하여 Google이 매일 사용하는 IDE에 이를 도입할 수 있도록 도와주세요. 설정의 스튜디오 Labs 탭으로 이동하여 사용하려는 기능을 사용 설정합니다. 이러한 AI 기능은 카나리아 버전에서 자동으로 사용 설정되므로 별도의 조치가 필요하지 않습니다.
Studio Labs의 AI 기능
스튜디오 실험실 기능
Gemini로 미리보기 생성 작성
Gemini는 Jetpack Compose 미리보기 코드를 자동으로 생성하여 시간과 노력을 절약할 수 있습니다. 이 기능은 컴포저블 내에서 마우스 오른쪽 버튼을 클릭하고 Gemini > Compose 미리보기 생성 또는 이 파일의 Compose 미리보기 생성으로 이동하거나 빈 미리보기 패널의 링크를 클릭하여 액세스할 수 있습니다. 생성된 미리보기 코드는 제안을 빠르게 수락, 수정 또는 거부할 수 있는 비교 뷰에 표시되어 컴포저블을 시각화하는 더 빠른 방법을 제공합니다.
Gemini를 사용한 Compose 미리보기 생성
Gemini의 이미지 첨부파일
이제 이미지 파일을 첨부하고 프롬프트와 함께 추가 정보를 제공할 수 있습니다. 예를 들어 UI 모형이나 스크린샷을 첨부하여 Gemini에게 앱의 레이아웃에 관한 컨텍스트를 제공할 수 있습니다. 따라서 Gemini는 제공된 이미지를 기반으로 Compose 코드를 생성하거나 UI 스크린샷의 컴포저블과 데이터 흐름을 설명할 수 있습니다. 자세한 내용은 질문에 이미지 첨부하기를 참고하세요.
Android 스튜디오에서 Gemini를 사용하여 이미지 첨부 및 미리보기 생성
Gemini의 @파일 컨텍스트
이제 Android 스튜디오에서 Gemini와의 채팅 상호작용에 프로젝트 파일을 컨텍스트로 첨부할 수 있습니다. 이렇게 하면 Gemini 프롬프트에서 파일을 빠르게 참조할 수 있습니다. Gemini 채팅 입력란에 @를 입력하여 파일 자동 완성 메뉴를 표시하고 첨부할 파일을 선택합니다. 컨텍스트 드롭다운을 클릭하여 Gemini가 자동으로 첨부한 파일을 확인할 수도 있습니다. 이렇게 하면 Gemini에 전송되는 컨텍스트를 더 효과적으로 제어할 수 있습니다. 자세한 내용은 질문에 파일 첨부하기를 참고하세요.
Gemini의@파일 컨텍스트
Gemini로 UI 변환
미리보기에서 직접 자연어를 사용하여 Compose 미리보기 환경 내에서 UI 코드를 변환합니다. 사용하려면 Compose 미리보기에서 마우스 오른쪽 버튼을 클릭하고 Transform UI With Gemini를 선택합니다. 그런 다음 '이 버튼을 가운데 정렬해 줘'와 같은 자연어 요청을 입력하여 Gemini가 레이아웃이나 스타일을 조정하도록 안내하거나 미리보기에서 특정 UI 요소를 선택하여 컨텍스트를 개선합니다.
그러면 Gemini가 Compose UI 코드를 수정하고, 이를 검토하고 승인하여 UI 개발 워크플로의 속도를 높일 수 있습니다. 자세한 내용은 변환 UI를 참고하세요.
'Gemini로 UI 변환' 메뉴 액세스
Compose 미리보기에 자연어 변환 적용
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-08-17(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-17(UTC)"],[],[],null,["# AI features in Studio Labs\n\nWe've heard feedback that developers want to access AI features in stable\nchannels as soon as possible. You can now discover and try out the latest AI\nexperimental features through the **Studio Labs** menu in the Settings menu\nstarting with Narwhal stable release.\n\nYou can get a first look at AI experiments, share your feedback, and help us\nbring them into the IDE you use everyday. Go to the Studio Labs tab in Settings\nand enable the features you would like to start using. These AI features are\nautomatically enabled in canary releases and no action is required.\nAI features in Studio Labs\n\nStudio Labs features\n--------------------\n\n### Compose preview generation with Gemini\n\nGemini can automatically generate Jetpack Compose preview code saving you\ntime and effort. You can access this feature by right-clicking within a\ncomposable and navigating to **Gemini \\\u003e Generate Compose Preview** or\n**Generate Compose Preview for this file**, or by clicking the link in an\nempty preview panel. The generated preview code is presented in a diff view\nthat lets you to quickly accept, edit, or reject the suggestions, providing\na faster way to visualize your composables.\nCompose Preview generation with Gemini\n\n### Image attachment in Gemini\n\nYou can now attach image files and provide additional information along with\nyour prompt. For example: you can attach UI mock-ups or screenshots to tell\nGemini context about your app's layout. Consequently, Gemini can generate\nCompose code based on a provided image, or explain the composables and data flow\nof a UI screenshot. To learn more, see\n[Attach an image to your query](/studio/gemini/attach-image).\nImage attachment \\& preview generation using Gemini in Android Studio\n\n### @File context in Gemini\n\nYou can now attach your project files as context in chat interactions with\nGemini in Android Studio. This lets you quickly reference files in your prompts\nfor Gemini. In the Gemini chat input, type `@` to bring up a file completion\nmenu and select files to attach. You can also click the **Context** drop-down to\nsee which files were automatically attached by Gemini. This gives you more\ncontrol over the context sent to Gemini. To learn more, see\n[Attach a file to your query](/studio/gemini/attach-file).\n@File context in Gemini\n\n### Transform UI with Gemini\n\nTransform UI code within the Compose Preview environment using natural language\ndirectly in the preview. To use it, right-click in the Compose Preview and\nselect **Transform UI With Gemini** . Then enter your natural language requests,\nsuch as \"Center align these buttons,\" to guide Gemini in adjusting your layout\nor styling, or select specific UI elements in the preview for better context.\nGemini will then edit your Compose UI code in place, which you can review and\napprove, speeding up the UI development workflow. To learn more, see\n[Transform UI](/studio/gemini/transform-ui).\n\n|-------------------------------------------|-----------------------------------------------------------------|\n| Accessing 'Transform UI with Gemini' menu | Applying a natural language transformation to a Compose preview |"]]