我想运行MobileFirst混合Android应用程序我的真实设备(三星Galaxy S5 KitKat 4.4.2)
我的手机和PC连接在同一个网络上。
如何更改IP地址?我无法在下面附带的application-descriptor.xml文件中找到worklightServerRootURL
。
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Licensed Materials - Property of IBM
5725-I43 (C) Copyright IBM Corp. 2006, 2013. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or
disclosure restricted by GSA ADP Schedule Contract with IBM Corp. --><!-- Attribute "id" must be identical to application folder name --><application xmlns="http://www.worklight.com/application-descriptor" id="MoodApp" platformVersion="6.3.0.00.20150214-1702">
<displayName>MoodApp</displayName>
<description>MoodApp</description>
<author>
<name>application's author</name>
<email>application author's e-mail</email>
<homepage>http://mycompany.com</homepage>
<copyright>Copyright My Company</copyright>
</author>
<mainFile>index.html</mainFile>
<features/>
<thumbnailImage>common/images/thumbnail.png</thumbnailImage>
<android version="1.0">
<worklightSettings include="false"/>
<security>
<encryptWebResources enabled="false"/>
<testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
<publicSigningKey/>
<packageName/>
</security>
</android>
答案 0 :(得分:2)
要更改Android应用的MobileFirst服务器的IP地址,请按以下步骤操作。
apps
文件夹中右键单击应用程序文件夹:右键单击&gt; 构建设置并部署目标... http://YOUR_MACHINE_IP:10080/YOUR_PROJECT_NAME
答案 1 :(得分:1)
我知道这是一个老问题, @Yoel Nunez的答案被选为正确答案。但是, Buid设置和部署目标现在位于运行方式选项..所以现在的步骤是: