Integrate ChatGPT with Android Studio

There are many AI plug-ins. If you have a subscription from ChatGPT, it makes sense to integrate ChatGPT with Android Studio.

  1. Install JetBrains AI Assistant (File → Settings → Plugins → Marketplace → JetBrains AI Assistant → Install).
  2. IMPORTANT: do not use the default ChatGPT sign-in prompted by JetBrains AI Assistant when you tap its button on the right side task bar.
  3. Go to API Keys of ChatGPT, create a new API Key and copy the secret key.
  4. Android Studio → Settings → Tools → AI Assistant → Providers & API Keys → Select ChatGPT → paste the secret key.
  5. You may need to restart Android Studio.