Android Studio: Module won't show up in “Edit Configuration”

后端 未结 30 2187
情歌与酒
情歌与酒 2020-11-29 15:38

I\'ve imported a project to Android Studio with several subprojects.

I want to run a subproject.

I successfully made this subproject\'s build.gradle as a mo

30条回答
  •  余生分开走
    2020-11-29 16:28

    This mainly happens when you copy a library project and try to build it. The solution would be to add

    apply plugin: 'com.android.application'
    

    in the build.gradle file, instead of

    apply plugin: 'com.android.library'
    

    Then do a gradle sync

提交回复
热议问题