Android Studio Gradle Already disposed Module

前端 未结 17 1502
一个人的身影
一个人的身影 2020-12-04 04:58

I have installed Android Studio version 1.0.1. I have imported my projects from eclipse and it works fine. Then I deleted a module and reimported it into my Android Studio p

相关标签:
17条回答
  • 2020-12-04 05:28
    1. In the left pane, change to "Project" view.
    2. Delete MYMODULENAME.iml
    0 讨论(0)
  • 2020-12-04 05:34

    below solution works for me

    1. Delete all .iml files
    2. Rebuild project
    0 讨论(0)
  • 2020-12-04 05:35

    If gradle clean and/or Build -> Clean Project didn't help try to re-open the project:

    • Close the project
    • Click "Open an existing Android Studio project" on the "Welcome to Android Studio" screen
    • Select gradle file to open

    Warning Be aware it's a destructive operation - you're going to loose the project bookmarks, breakpoints and shelves

    0 讨论(0)
  • 2020-12-04 05:35

    In my case, same as in this question, it happened becayse I had my project in a symbolic link directory. After reopening the project in the real directory and reconfiguring gradle (File -> Sync with Gradle files) the problem went away. Shame on you, Android Studio!

    0 讨论(0)
  • 2020-12-04 05:36

    I also face this problem sometimes. Click on gradle console in bottom bar of android studio, at right side. It will show the exact error in logs. My problem was that I had compile SDK 22 and imported appcomact library was of sdk 23.

    0 讨论(0)
  • 2020-12-04 05:38

    Simplest solution. (Try this first).

    1. Quit and Restart Android studio. (Quit not close)

    2. Build > Clean your project if needed.

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