dialogflow / dialogflow-cordova-client

Cordova library for Dialogflow
Apache License 2.0
42 stars 23 forks source link

Build fails upon adding plugin; can't find xml file #40

Open jrlandau opened 6 years ago

jrlandau commented 6 years ago

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:

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

roymasad commented 6 years ago

same issue here

Vivek-abstract commented 6 years ago

Same here! Let me know if you fix it

Vivek-abstract commented 6 years ago

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