The reason this was happening for me is that I had my plugin files buried inside a nested folder structure (as is generally required with Java):
-- my-plugin/
+-- src/
+-- com/
+-- abc/
+-- def/
+-- MyPlugin.java
but the plugin.xml
settings didn't match this. Specifically the setting
<param name="android-package" value="com.abc.def.MyPlugin"/>
has to contain the class name with the fully qualified namespace. Also make sure the <source-file>
element has the correct values.
Here is more of the plugin.xml
file for reference:
<platform name="android">
<config-file target="res/xml/config.xml" parent="/*">
<feature name="MyPlugin">
<param name="android-package" value="com.abc.def.MyPlugin"/>
</feature>
</config-file>
...
<source-file src="src/com/abc/def/MyPlugin.java" target-dir="com/abc/def" />
</platform>
<source-folder ...
and<resource-folder
tags the same way as<source-file ...
tags today – Sikko