Import Android Studio project from git into Android Studio (Gradle)

前端 未结 3 1498
青春惊慌失措
青春惊慌失措 2021-01-04 09:03

I\'ve been reading this for hours now and everyone seems to have a different approach or that the tutorials are out of date.

Android Studio .gitignore only includes

相关标签:
3条回答
  • 2021-01-04 09:43

    IF your project is showing error like The project 'xxxxxxx-xx' is not a Gradle-based project then check this link. I hope it helps. This link might cover your possible problem. Let me know the progress.

    0 讨论(0)
  • 2021-01-04 09:55

    The answer is obvious when looking at the .gitignore file of a newly created project. The build.gradle file is and should be included in the push to the remote repo.

    So the person who made the repo in my question is doing it wrong. The .gitignore file includes:

    .gradle
    /local.properties
    /.idea/workspace.xml
    /.idea/libraries
    .DS_Store
    /build
    /captures
    

    As seen, more files should of been uploaded to the remote repo.

    0 讨论(0)
  • 2021-01-04 10:04

    Choose Existing Sources instead of Import

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