Android Studio Run/Debug configuration error: Module not specified

前端 未结 16 2593
[愿得一人]
[愿得一人] 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:51

    I realized following line was missing in settings.gradle file

    include ':app'

    make sure you include ":app" module

    0 讨论(0)
  • 2020-12-02 07:51

    I had the same issue after update on Android Studio 3.2.1 I had to re-import project, after that everything works

    0 讨论(0)
  • 2020-12-02 07:55

    check your build.gradle file and make sure that use apply plugin: 'com.android.application' istead of apply plugin: 'com.android.library'

    it worked for me

    0 讨论(0)
  • 2020-12-02 07:56

    None of the existing answers worked in my case (Android studio 3.5.0). I had to

    1. close all android studio projects
    2. remove the project from the recent projects in android studio wizard
    3. restart android studio
    4. use import option (Import project- Gradle, Eclipse ADT, etc) instead of open an existing project AS project
    5. File -> Sync project with gradle files
    0 讨论(0)
提交回复
热议问题