java – Add old plugin without package.json to my cordova project

0
19

[ad_1]

I’m trying to add this Plugin to my cordova project. I downloaded it and ran

cordova plugin add filepath\heartbeat-cordova-plugin

which resulted in

Invalid Plugin! filepath\heartbeat-cordova-plugin needs a valid package.json

This plugin is older and doesn’t come with package.json, there is only plugin.xml. Is there a way to convert plugin.xml to package.json or add the plugin without package.json?

I tried installing an older version of cordova and running

cordova plugin add filepath\heartbeat-cordova-plugin --nofetch

which worked, but the project couldn’t be built because of an invalid Java JDK (of which i also tried older versions).

[ad_2]