我已经安装了Maximo Anywhere 7.6.2,可以在Android设备上安装应用程序并正确登录。但是,当我尝试通过开发环境(http://localhost:10080/worklightconsole上的预览按钮)执行相同操作时,模拟器屏幕显示为空白,而不是登录屏幕。 MaximoAnywhere已安装Android 23.0.2。
Maximo安装在端口9080上。以下是build.properties文件的内容:
#Thu, 05 Jul 2018 11:31:07 +0500
## Application Build Properties File
##
## Update these settings specific to your environment
##
## Specifies the location of the build/deploy properties files
config.dir=${basedir}
## Specifies the location where you installed the Android SDK
android.sdk.home=C:/android-sdk
## Specifies the Android SDK target for building Android applications
Android_TARGET_DEVICE_NAME=android-23
## Specifies the BACKEND server the adapter will connect too
## these values get inserted into the OSLCGenericAdapter.xml
## and the authenticationConfig.xml
##
## If you want to have null or empty port or context comment out
## the property or set it to empty
## adapter.connection.port=
## adapter.connection.context=
## or
## ##adapter.connection.port=
## ##adapter.connection.context=
adapter.name=maximo
adapter.connection.protocol=http
adapter.connection.domain=ora.max.com
adapter.connection.port=9080
adapter.connection.context=maximo
#adapter.connection.user=
#adapter.connection.password=
## Specify folder or http URL where the platform zip file is present.
## for ex:
##platformzip.location=C:/Anywhere/AnywherePlatform
platformzip.location=C:/IBM/Anywhere/MaximoAnywhere/platform
## Specify the server url to where the apps and the adapter should be deployed
## (use ${local.IPAddress} for local server)
##
## TODO: if worklight.server.url is defined, this value overrides the individual
## properties. The individual values should be derrived from worklight.server.url
##
worklight.server.url=http://ora.max.com:9080
worklight.server.protocol=http
worklight.server.domain=ora.max.com
worklight.server.port=9080
worklight.server.context=MaximoAnywhere
worklight.admin.server.context=wladmin
worklight.server.user=wasadmin
worklight.server.password=Admin123
## Specifies the URL to the Application Center where we will
## deploy the native applications. URL are specified in the
## format protocol://hostname.domain:port
##
## NOTE: If you are only running in Worklight Studio, Studio does not have a
## appCenter. You can leave these properties unchanged.
appCenter.server.url=http://ora.max.com:9080
appCenter.server.context=applicationcenter
appCenterAdminID=wasadmin
appCenterAdminPass=Admin123
## Specify a list of environments to build. 'common' is implied.
## Possible values are android,iphone,windows8. Use comma to separate multiple
## values.
##
## NOTE: the iphone project is a Universal iOS application
## and covers deployment to iphone and ipad environemnts.
worklight.envsToDeploy=android
## Specify a comma separated list of apps to build
## Possible values are AssetAudit, AssetDataManager, Inspection, IssuesReturns, PhysicalCount, ServiceRequest, Transfers, WorkApproval, WorkExecution
appsToBuild=AssetAudit, AssetDataManager, Inspection, IssuesReturns, PhysicalCount, ServiceRequest, Transfers, WorkApproval, WorkExecution
## set to 'true' to enable data encryption on the device
enableDataEncryption=false
##=========================================================
## Android Specific Build Toggles
##=========================================================
## Enable android application debugging feature
##
android.manifest.enable.debugging=false
##=========================================================
## iOS Specific Build Toggles
##=========================================================
# When building iOS applications for distribution (production),
# implicitly set the provisionprofile property to the name of the
# provision profile (located in ~/Library/MobileDevice/Provisioning Profiles)
# for Enterprise In-House Distribution builds.
#provisionprofile=8efae767-3d46-47a9-909c-2187d1ce133a
# application version number label
version.name=7.6.2
##=========================================================
## Begin INTERNAL build Properties
##=========================================================
## perform a debug build
##
##anywhere.debug=
production.build=true
# locations of visual studio tools
visualstudio.install.path=\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
## visual studio version installed for use eg: 12.0, 14.0
## Visual Studio 2013 - version 12.0
## Visual Studio 2015 - version 14.0
visualstudio.version.release=
# Platform targets to build the windows8 applications against. Options available: x64 or x86
windows8.platform.target=
# The target configuration of the Appx. Options available: Release or Debug
windows8.config.target=Release
## To support push notifications on android set these properties according to your setup documentation
android.pushSender.Key=
android.senderId=
# The type of build to be done. Possible values are build.target=mobilefirst, so just webcomponents will be built and deployed (war, wlapp, and adapter)
# and build.target=all, so complete build and deploy will be done (war, wlapp, adapter and native code, such as apk, ipa and appx).
build.target=all
## list of comma seperated properties that we do not want to update during upgrade process
ignore.properties.list=xcodeSDKVersion
## NOTIFICATION - iOS
## To support push notifications on ios set this property according to your setup documentation
ios.pushSender.password=
答案 0 :(得分:0)
在MobileFirst Studio中,确保转到项目资源管理器,右键单击您要预览的应用程序文件夹,然后选择“运行方式”>“在Mobilefirst Development Server上运行”。那应该将应用程序部署在本地开发服务器上。
之所以能够与真实应用程序连接,是因为它们已正确部署到真实的Mobilefirst服务器中。出于开发目的,需要将应用程序部署到您应该能够在Mobilefirst Studio的“服务器”选项卡中找到的本地Mobilefirst服务器。另外,在尝试部署任何应用程序之前,请确保已启动此程序。要启动本地Mobilefirst服务器,请右键单击它,然后选择“启动”。成功启动后,它应在服务器名称的右侧显示“ [已启动,已同步]”。