IBM工作灯 - 安装在设备上的应用 [英] IBM Worklight - Installing applications on a device
问题描述
我们正在使用在Windows中运行工作灯企业版。我们创建了使用jQuery Mobile的移动应用程序(和其他使用Dojo的手机),但我们无法将它部署到一个设备上。
- 在发展中,我们产生的(未签名)的.apk文件的应用程序 在
- 我们将它复制到三星大(Android版本4.1.2)来测试它
- 当我们试图打开的.apk文件,我们得到了错误:
有一个问题解析包
这是安装在设备上的.apk文件的正确方法?
请尝试以下操作:
-
请确保该设备是安装程序的开发。 按照以下说明启用左右。
- 在使用USB电缆将设备连接到计算机
- 在Eclipse中,确保该设备在设备视图中识别(按Ctrl + 3,搜索设备来添加面板)。
- 在您的工作灯的应用程序右键单击并选择Run As >>全部构建和部署
- 右键单击生成的Android项目(应出现在工作灯项目下),并选择Run As >> Android应用程序
这将产生一个无符号.apk文件并安装到设备上。
观察LogCat中(按Ctrl + 3,搜索LogCat中添加面板)中的错误。
如果您不能将设备连接到计算机:
- 确保在启用该选项允许安装来自未知来源的应用程序。
- 安装在设备上的电子邮件帐户和.apk文件通过电子邮件发送给自己。攻丝附加.apk文件应该再进行安装。
- 或者,只有当你的设备是植根,你可以使用一个应用程序名为<一个href="https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCkQFjAA&url=https://play.google.com/store/apps/details?id=com.exi.adbmngr&hl=en&ei=Qf_UUfaNA8a00QWHnoDwBg&usg=AFQjCNE211yvjMldlUoYSZTygMq2t2rkkw&sig2=8BFpMKBZNEU6AvsHPKE_fg&bvm=bv.48705608,d.d2k"相对=nofollow> ADB无线,它允许远程安装和应用程序的调试。
作为最后的尝试,
- 从Android SDK中Mananger,安装API级别8
- 转到了Android \本地\ AndroidManifest.xml文件,并修改
minSdkValue
8。
- 在构建和部署,安装在设备上。
We are currently using Worklight Enterprise Edition running in Windows. We created a mobile application using jQuery Mobile (and another Using Dojo Mobile) but we were unable to deploy it to a the device.
- After developing the application we generated the (unsigned) .apk file
- We copied it to Samsung Grand (android version 4.1.2) to test it
- When we try to open the .apk file, we get the error:
There is a problem parsing the package.
Is this the correct procedure to install the .apk file in device?
Try the following:
Make sure the device is setup for development. Follow these instructions to enable so.
- Connect your device to the computer using a USB cable
- In Eclipse, make sure that the device is recognized in the Devices view (Ctrl+3 and search for "Devices" to add the panel).
- Right-click on your Worklight application and choose Run As >> Build All and Deploy
- Right-click on the generated Android project (should appear below the Worklight project) and choose Run As >> Android Application
This will generate an unsigned .apk and install it onto the device.
Observe LogCat (Ctrl+3 and search for "LogCat" to add the panel) for errors.
If you cannot connect the device to the computer:
- Make sure the enable the option to allow installing applications from "Unknown Sources".
- Setup an email account on the device and email the .apk to yourself. Tapping the attached .apk should then install it.
- Alternatively, and only if your device is rooted, you can use an app called ADB Wireless, which allows remote installing and debugging of applications.
As a final attempt,
- From the Android SDK Mananger, install API Level 8.
- Go to the android\native\AndroidManifest.xml file and change
minSdkValue
to 8. - Build and deploy, install on device.
这篇关于IBM工作灯 - 安装在设备上的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!