RSS Android Developers Blog

Gemini in Android Studio: Code Completion Gains Powerful Model Improvements

The Android team believes AI has the potential to revolutionize coding and drive innovation in software development. AI code completion is a key feature in Android Studio's Gemini, which aims to empower developers to build high-quality Android apps. Since its launch in May 2024, the team has been improving the feature, resulting in a 40% relative increase in acceptance rate. AI code completion provides real-time feedback, suggesting the next few lines of code based on context, making it a valuable tool for tasks like defining business logic and creating database schemas. The team has made several improvements, including retrieval augmentation, filtering out low-confidence completions, and smarter post-processing. They are also exploring metrics beyond acceptance rate to measure AI impact on developer velocity. Android developers can try out AI code completion by enabling the feature in Android Studio and providing opt-in feedback to improve the model. The team is committed to responsible AI use and ensures that Android Studio won't send any source code to servers without consent.
android-developers.googleblog.com
android-developers.googleblog.com