Trying to use Git with Android Studio

后端 未结 2 1687
暖寄归人
暖寄归人 2021-01-26 05:44

With a friend we were a long time trying to work with Git and Android Studio, but we had a problem (we are very new to git and Android Studio, we started a couple of days ago on

相关标签:
2条回答
  • 2021-01-26 06:40

    Followed by @Akhil's answer, click "Make Project" icon to awake your Run button. Sometimes this button makes Android Studio recognize your project runnable again.

    enter image description here

    0 讨论(0)
  • 2021-01-26 06:47

    This is because you have added .idea folder in your git repository.Sample .gitignore file can be like this

    build/
    
    .gradle/
    
    *.iml
    .idea/
    src/main/gen/*
    
    *~
    *.swp
    
    local.properties
    
    *.keystore
    *.keystore.password
    

    Also you need to delete this folder from git repo. You can use below command

    git rm -rf .idea/
    git commit -m "deleting .idea, updated .gitignore"
    

    Then try to merge

    0 讨论(0)
提交回复
热议问题