[ 
https://issues.apache.org/jira/browse/CB-13262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicole Neal resolved CB-13262.
------------------------------
    Resolution: Fixed

I resolved this issue by updating the emulator.js file at line 202.  I also had 
to add an additional env variable for ProgramW6432

> Build Command Fails with 'Error: Path must be a string.  Received undefined'
> ----------------------------------------------------------------------------
>
>                 Key: CB-13262
>                 URL: https://issues.apache.org/jira/browse/CB-13262
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-android
>    Affects Versions: 7.0.1
>         Environment: Windows 10, Windows 7.  JDK 1.8.0_133.  Android SDK API 
> 26 & 25.
>            Reporter: Nicole Neal
>            Assignee: Joe Bowser
>
> Hi, I'm trying to build my Cordova project that contains the Android 
> platform. I'm using Cordova v7.0.1 and NodeJS v6.11.2.  I keep getting this 
> error: 
> C:\Users\Nicole 
> Collichio\IBM\rationalsdp\runtime-Cordova97_911\testProjectCLI>cordova build 
> android
> ANDROID_HOME=C:\Android\sdk
> JAVA_HOME=C:\Program Files\Java\jdk1.8.0_131
> *Error: Path must be a string. Received undefined*
> This is the output of my cordova info command:
> _C:\Users\Nicole 
> Collichio\IBM\rationalsdp\runtime-Cordova97_911\testProjectCLI>cordova info
> Collecting Data...
> Node version: v6.11.2
> Cordova version: 7.0.1
> Config.xml file:
> <?xml version='1.0' encoding='utf-8'?>
> <widget id="io.cordova.hellocordova" version="1.0.0" 
> xmlns="http://www.w3.org/ns/widgets"; 
> xmlns:cdv="http://cordova.apache.org/ns/1.0";>
>     <name>HelloCordova</name>
>     <description>
>         A sample Apache Cordova application that responds to the deviceready 
> event.
>     </description>
>     <author email="[email protected]" href="http://cordova.io";>
>         Apache Cordova Team
>     </author>
>     <content src="index.html" />
>     <access origin="*" />
>     <allow-intent href="http://*/*"; />
>     <allow-intent href="https://*/*"; />
>     <allow-intent href="tel:*" />
>     <allow-intent href="sms:*" />
>     <allow-intent href="mailto:*"; />
>     <allow-intent href="geo:*" />
>     <platform name="android">
>         <allow-intent href="market:*" />
>     </platform>
>     <platform name="ios">
>         <allow-intent href="itms:*" />
>         <allow-intent href="itms-apps:*" />
>     </platform>
>     <engine name="android" spec="^6.2.3" />
>     <plugin name="cordova-plugin-whitelist" spec="^1.3.2" />
> </widget>
> Plugins:
> cordova-plugin-whitelist
> Android platform:
> **************************************************************************
> The "android" command is deprecated.
> For manual SDK, AVD, and project management, please use Android Studio.
> For command-line tools, use tools\bin\sdkmanager.bat
> and tools\bin\avdmanager.bat
> **************************************************************************
> Invoking "C:\Android\sdk\tools\bin\avdmanager" list target
> Available Android targets:
> ----------
> id: 1 or "android-25"
>      Name: Android API 25
>      Type: Platform
>      API level: 25
>      Revision: 3
> ----------
> id: 2 or "android-26"
>      Name: Android API 26
>      Type: Platform
>      API level: 26
>      Revision: 2_
> Any ideas or suggestions on what I should do to get this to work?  Is there a 
> script path I should modify? This use to work with Cordova 6.5.0 but that 
> release didn't contain a cordova-android node_module, which I think might be 
> the change/causing the problem.
> Thanks!



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to