I had this problem using phonegap 3.x, and the problem turned out to be that the plugins were incorrectly installed in the phone splash screen, or they just messed up along the way. Basically, when you install plugins and build for the platform, it takes javascript files from /org.apache.cordova.core.specific-plugin/www plugins and puts them in /android/assets/www/plugins/org.apache platforms. cordova.core.specific-plugin / www, and then it takes Java files (or object C for iOS) and puts them in the platforms / android / src / org / apache / cordova / specificplugin
And all this is indicated by the /org.apache.cordova.core.specific-plugin/plugin.xml plugins. If you look in the plugins.xml file, you will see something like:
<source-file src="src/android/NetworkManager.java" target-dir="src/org/apache/cordova/networkinformation" />
So this tells you that in the platforms / android / src / org / apache / cordova / networkinformation there should be NetworkManager.java. And this file can be copied from /org.apache.cordova.core.network-information/src/android/NetworkManager.java plugins
Now all this should happen automatically without having to touch the platforms folder. But if it goes bad, you can fix it by manually copying the right files to the right folders.
aharris88 Sep 18 '13 at 23:42 on 2013-09-18 23:42
source share