返回 Skill 列表
extension
分类: 开发与工程无需 API Key

android-studio

带有模拟器和性能分析器的Android Studio IDE。用于Android开发。

person作者: jakexiaohubgithub

Android Studio

Android Studio is built on IntelliJ IDEA. 2025 versions (Narwhal/Otter) feature Gemini for code generation and crash analysis.

When to Use

  • Android Apps: Native Android development (Kotlin/Java).
  • Compose: "Live Edit" allows UI updates in real-time on devices/emulators.
  • Profiling: Inspecting memory leaks and battery usage.

Core Concepts

Gradle

The build system. build.gradle.kts (Kotlin DSL) is the standard in 2025.

Emulator

Virtual Android device. 2025 emulators are resizable and support foldable postures.

Logcat v2

The logging window. Colored, filterable, and queryable logic.

Best Practices (2025)

Do:

  • Use Gemini: "Explain this crash" in Logcat sends the stack trace to Gemini for analysis.
  • Use Baseline Profiles: Generate profiles to improve app startup time.
  • Use App Quality Insights: View Crashlytics issues directly in the IDE code editor.

Don't:

  • Don't hardcode Strings: Use strings.xml. The IDE warns you for a reason.

References