Solving Ionic Android App error with no Java files found which extend CordovaActivity

April 12, 2016, 7:28 pm
Author: James Griffiths

If you're developing an Android App using the Apache Cordova and Ionic Framework tools and encounter the following error:

Error: No Java files found which extend CordovaActivity

When trying to deploy your App to a connected device with the following command:

ionic run android

Then the solution might seem a little bit radical but, is in fact, quite quick and easy to implement...

From your command line (and assuming you are located in the root of your project) simply issue the following instruction to completely remove the Android platform from your Ionic project:

ionic platform rm android

Then, once that has completed, issue the following command line instruction to install the Android platform:

ionic platform add android

It might seem bizarre but removing and re-installing the Android platform was the quickest and cleanest solution that worked for us.

Now, when you try deploying your App to an Android device, you shouldn't see that error occurring anymore.

Categories

« Return to Posts

Post a comment

All comments are welcome and the rules are simple - be nice and do NOT engage in trolling, spamming, abusiveness or illegal behaviour. If you fail to observe these rules you will be permanently banned from being able to comment.