Android Studio project files not showing up

前端 未结 7 2075
悲哀的现实
悲哀的现实 2021-02-19 11:59

I have a library project in Android Studio that has been working fine, but today I went to work on it and all of the files are missing except for a few git files. The folders/fi

相关标签:
7条回答
  • 2021-02-19 12:28
    Go to File > Project Structure > Project Settings > Modules.
    

    Click on the green colored + and add new module. select Application module and set the content root to your project module.

    Click next and then finish.

    This should do the trick and the complete project structure will appear. It worked for me.

    0 讨论(0)
  • 2021-02-19 12:30

    Go to

    File > Project Structure> click on + > then set it to android
    
    0 讨论(0)
  • 2021-02-19 12:37

    In my case, it was because of the NDK version

    0 讨论(0)
  • 2021-02-19 12:39

    Try Import Project... and navigate to your project. Select build.gradle file.

    Be sure to wait for a while, so that android studios can load all your stuff. Sometimes a restart will help, but since you reinstalled it, that shouldn't be the problem.

    0 讨论(0)
  • 2021-02-19 12:45

    I had to Sync Project with Gradle Files in Android Studio to get my files back after they disappeared in Android Studio's Project window.

    0 讨论(0)
  • 2021-02-19 12:50

    In my case i have a slash in the subproject settings.gradle

    As an example, this did not work:

    include ":somedir/library"
    

    But changing it to this fixed it:

    include ":somedir-library"
    project(":somedir-library").projectDir = new File(settingsDir, "somedir/library")
    
    0 讨论(0)
提交回复
热议问题