Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
jrlandau opened this issue Feb 28, 2018 · 3 comments
Open

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

jrlandau opened this issue Feb 28, 2018 · 3 comments

Comments

@jrlandau
Copy link

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

@roymasad
Copy link

roymasad commented Mar 5, 2018

same issue here

@Vivek-abstract
Copy link

Same here! Let me know if you fix it

@Vivek-abstract
Copy link

Vivek-abstract commented Mar 12, 2018

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants