IntelliJ Idea – Cordova – Default Activity not found! – solution

Situation: import Cordova project with support of Android platform to Intellij Idea. You’re not able to start emulator, because of strange error:

Default Activity not found!

cordova-error-activity-not-found

One solution could be: go to File menu and choose Invalidate Caches /Restart.

This might not help.

The real problem is most likely in configuration of Android module. Open project configuration, select module and make sure that directory src is marked as Source.

cordova-error-add-sources

Confirm module configuration and error message should disappear.

Rating: 5.0/5. From 1 vote.
Please wait...

Leave a comment

6. January 2014 at 22:34 - Software engineering (Tags: , , , , ). Both comments and pings are currently closed.

5 Responses to “IntelliJ Idea – Cordova – Default Activity not found! – solution”

  • Barend says:

    THANKS A LOT FOR THIS!!!!

    No votes yet.
    Please wait...
  • georgik says:

    I’m glad that it helped you. It took me more than one hour to find out this solution. :)

    No votes yet.
    Please wait...
  • jiacheo says:

    thanks.

    No votes yet.
    Please wait...
  • Sbr says:

    I cant find project configuration in android studio?

    No votes yet.
    Please wait...
  • georgik says:

    Try Ultimate version. It contains Android studio as well. Maybe GUI of Idea changed in last versions. If you find solution, let me know. Thanks.

    No votes yet.
    Please wait...