"The IntentFilter of the Activity Must Contain android.intent.action.MAIN action"

This is a new strange issue. I have had other android apps before and this has never occured! Anyways, when I attempt to run my application on android I recieve that message. I am using libgdx to set up a cross platform java game/app. This error appears at the bottom of the build configuration dialog (screenshot attached).

I am not quite sure what this means and a search on the web gave came up with nothing useful.

Comment actions Permalink

It seems you need to specify intent-filter for your activity in AndroidManifest.xml. It should be like:

<activity android:name=".AndroidStarter" android:label="@string/app_name">


<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />


Comment actions Permalink

Ahhh, I changed the name of my main class and I think however I did it, it did not change in the manifest!

Thanks :)


Please sign in to leave a comment.