Hi i am getting this error on an existing app when trying to update to cordova 8 and the new cordova dynamics plugins.
Failed to install 'cordova-plugin-bbd-base': Error: ENOENT: no such file or directory, chmod '\BlackBerry_Dynamics_SDK_for_Cordova_v22.214.171.124\SampleApplications\com.good.gd.example.cdv.rssreader\platforms\android\GDLibrary\build.gradle'
at Object.fs.chmodSync (fs.js:1127:18)
at module.exports (\BlackBerry_Dynamics_SDK_for_Cordova_v126.96.36.199\SampleApplications\com.good.gd.example.cdv.rssreader\plugins\cordova-plugin-bbd-base\scripts\hooks\android\afterBasePluginInstall.js:75:8)
I think the path for the build.gradle is wrong as my generated platforms directory shows the build.gradle file under `\platforms\android\app\src\main\GDLibrary\build.gradle`
I've dug a little further and see this get copied across with the plugin.xml which is set here `\plugins\cordova-plugin-bbd-configure\src\android\androidConfigurationForPluginXML.txt` can you confirm if anything needs changing in this file to support cordova 8?
You'll just want to ensure you've got the latest Native SDKs as well as the latest Dynamics cordova plugins.
After that I'd recommend trying to create a blank HelloWorld cordova app and adding the BlackBerry Dynamics Plugins to that project. Make sure it builds.
After that, you'll want to follow the Cordova upgrade guide (https://cordova.apache.org/docs/en/latest/guide/platforms/android/upgrade.html) or copy your assets and resources (from the old project) into the new one. That is generally the approach I take when updating a major version.
Thanks for your reply Chad.
The only way i could get any of the sample apps to build from the cordova CLI is to change the below lines in the file cordova-plugin-bbd-configure\src\android\androidConfigurationForPluginXML.txt.
<source-file src="scripts/gradle/gradle.properties" target-dir="app/.." / >
<source-file src="src/android/GDLibrary/" target-dir="app/.." />
<source-file src="src/android/GDLibrary_BackupSupport/" target-dir="app/.." />
The actual file has the parts in red as "src/" not sure if this is just my set-up but this is the only way i could build from command line using cordova 8.