Error: Path must be a string. Received Undefined / codorva add android Platform

Asked

Viewed 136 times

0

when I will generate in codorva the android platform, it starts to install the plugins, but in Whitelist it occurs the following error?

    Installing "cordova-plugin-whitelist" for android

 This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

    **Error: Path must be a string. Received undefined.**

Why does this happen? How can I heal?

  • You need to update the Cordova for version 4.0 or to a version superior to it.

  • C: projects first>Cordova Platform version android Installed Platforms: Available Platforms: android ~6.3.0 blackberry10 ~3.8.0 (deprecated) browser ~5.0.0 Ios ~4.5.1 osx ~4.0.1 Ubuntu ~4.3.4 (deprecated) webos ~3.7.0 windows ~5.0.0 www 3.12.0 C: projects first>Cordova -v 7.1.0

  • is in version 7.1.0. and codorva-android 6.3.0

  • For which version of Android you are using this plugin?

  • <preference name="android-minSdkVersion" value="16" /> <preference name="android-targetSdkVersion" value="23" />

  • I realized that my error is in some path here, I am looking and found no errors in the environment variables.

  • Is using some Framework ?? Ionic ?

  • no, no more plugin I just exported from intel xdk, did what I had to do, but now does not compile

  • @Morvy could put here where you found this path that you managed to fix the problem?

Show 4 more comments

1 answer

0


Well, I figured it out. As for the errors that occurred because of the version and such, this has no problem, it is still generated, what stopped all the process was this error:

Error: Path must be a string. Received undefined.

I found a random path, one that hadn’t touched me what it was there for, or what it was for. I simply removed and it compiled perfectly, now let’s test to see if generates the app and run, thanks.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.