Android Studio Run/Debug configuration error: Module not specified

前端 未结 16 2740
[愿得一人]
[愿得一人] 2020-12-02 07:14

I am getting a \'Module not specified\' error in my run config. I have no module showing in the drop down yet I can see my module no probs. The issue came about when I refac

16条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 07:35

    You have 3 ways:

    1. Clean Project in Android Studio menu

      Build -> Clean Project and use Build -> Rebuild


    1. Remove all the modules in settings.gradle

      • Open settings.gradle project
      • Remove include ':app' and and other modules
      • Sync gradle
      • Add include ':app' and and other modules
      • Sync gradle again

    1. Remove all code in gradle.properties

      • Open gradle.properties project
      • Remove all code

        org.gradle.daemon=true

        org.gradle.configureondemand=true

        org.gradle.parallel=true

        android.enableBuildCache=true

      • Sync gradle

      • Add code again
      • Sync gradle again

提交回复
热议问题