dialogflow-cordova-client
dialogflow-cordova-client copied to clipboard
Build fails upon adding plugin; can't find xml file
Error: ENOENT: no such file or directory, open 'C:\cordovadev\diagflow\testdiag\platforms\android\res\xml\config.xml'
This occurs with a new Cordova app, the result of "cordova create mytest", with the following sequence:
- cordova create mytest
- cd mytest
- cordova platform add android
- cordova plugin add cordova-plugin-apiai
- cordova build android
The error does not occur without the plugin.
Using Cordova 8.0.0 and cordova-android 7.0.0 and Android Studio 3.0.1
same issue here
Same here! Let me know if you fix it
I tried editing the file platforms/android/cordova/Api,js to the following:
this.locations = {
root: self.root,
www: path.join(self.root, 'assets/www'),
res: path.join(self.root, 'res'),
platformWww: path.join(self.root, 'platform_www'),
configXml: path.join(self.root, 'app/src/main/res/xml/config.xml'),
defaultConfigXml: path.join(self.root, 'cordova/defaults.xml'),
strings: path.join(self.root, 'app/src/main/res/values/strings.xml'),
manifest: path.join(self.root, 'app/src/main/AndroidManifest.xml'),
build: path.join(self.root, 'app/build'),
javaSrc: path.join(self.root, 'app/src/main/java'),
// NOTE: Due to platformApi spec we need to return relative paths here
cordovaJs: 'bin/templates/project/assets/www/cordova.js',
cordovaJsSrc: 'cordova-js-src'
};
The paths were broken in this file After fixing that however I get the following error: Unable to find a usable idle daemon. I have connected to 100 different daemons but I could not use any of them to run the build