Android – error running build target module is undefined

androidandroid-studio

I have just installed Android Studio and when I'm trying to build I get this message:

error running build   
target module is undefined

Best Answer

  • Go Run -> Edit Configurations...
  • Check Android Application (on the left)
  • Select your project
  • In the General tab slect a module (your app)

That worked for me