Target package is not specified in AndroidManifest.xml

I'm getting a strange error when I try to open an IntelliJ project created by other users on my team.  Everything opens fine and builds fine, but when I try to run or debug the project I get the following error:

1:52:07 PM Patch successfully applied
1:53:16 PM Compilation completed successfully with 53 warnings in 51 sec
1:54:25 PM All files are up-to-date
1:54:25 PM Error running ProjectX: Target package is not specified in AndroidManifest.xml

I've done a lot of googling for this error but without much success.  I can install and run the app fine via the adb console, so it is obviously building correctly.  Does anyone know what this error means?  Or what I may be able to do to fix it?

FWIW, I can regenerate the IntelliJ project files manually and it works fine, so I don't think there is a problem with the AndroidManifest.xml or the rest of the content, it must be a misconfiguration in IntelliJ somewhere.  But where should I look?

1 comment
Comment actions Permalink

As it turns out, my coworker had simply created a bad run configuration (set up for tests rather than to run the application) and the error message did not make that clear to me.  Simply creating a new run configuration solved the problem.


Please sign in to leave a comment.