You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android Studio 3.0.1升级后Git检出项目无运行配置器问题求助

Why Your Run Configurations Disappeared After Android Studio 3.0.1 Upgrade

Hey there! Let's figure out why your run configurations vanished when pulling the project on another computer.

Android Studio stores your run/debug setups in the .idea/runConfigurations folder at your project's root. The issue here is almost certainly that this folder wasn't being tracked by Git. Even though you never edited .gitignore yourself, it’s possible the default .gitignore template changed slightly in Android Studio 3.0.1, which started excluding this directory by default—so it never got pushed to your GitLab/BitBucket repo.

Step-by-Step Fix (No Command Line Needed!)

Since you rely on Android Studio’s Git integration, here’s how to fix this using the IDE:

  • Check your .gitignore file
    Open your project’s root .gitignore file in Android Studio. Look for a line like /.idea/runConfigurations/ or runConfigurations/. If you spot it, that’s exactly why the folder didn’t sync to your remote repo.

  • Update .gitignore to track run configurations
    Either delete that line entirely, or comment it out by adding a # at the start, like this:

    #/.idea/runConfigurations/
    

    This tells Git to stop ignoring the run configurations folder.

  • Add the run configurations folder to Git

    1. Switch to the Version Control tab (bottom left corner of Android Studio).
    2. Expand the .idea folder, find runConfigurations, right-click it, and select Add to VCS.
    3. Write a simple commit message (e.g., "Track project run configurations") and click Commit → then push the changes to your remote repo.
  • Sync the other computer
    On your second computer, pull the latest changes from your GitLab/BitBucket repo. Once you open the project in Android Studio, your run configurations should be back under the Run menu!

Quick Tip for the Future

Project-specific settings like run configurations should always be tracked in Git to keep consistency across devices. Android Studio’s default .gitignore is designed to exclude user-specific preferences (like window layouts), but project-wide setups like run configs belong in the repo.

内容的提问来源于stack exchange,提问作者francesco freddi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 08:24:50