问题描述
我创建了一个工作灯的应用程序的Android环境,并试图运行它。它工作正常,在Android模拟器,但是当我尝试在Android设备上运行它,它显示了一个错误:
I have created a Worklight application with the Android environment and tried running it. It is working fine in the Android Emulator but when I try to run it in an Android device it shows an error:
该应用程序已不幸停止
任何人可以帮助我对这个问题的?
Can anybody help me regarding this issue?
推荐答案
您可能已经安装了ADT V22。我已经提供了一个答案在这个问题这个问题:worklight自动生成的Android文件夹不上运行AVD
You have probably installed ADT v22.I have provided an answer for this problem in this question: worklight auto-generated android folder does not run on avd
这恰好由于谷歌的变化在这个版本ADT取得了。它仅影响ADT V22的用户。工作灯将具有该内置的固定在工作灯v6.0中
This happens due to a change Google has made in this version of ADT.It affects users of ADT v22 only. Worklight will have a built-in fix for this in Worklight v6.0.
在此期间,请(在每个项目的基础上)以下说明:
In the meanwhile, follow these instructions (on a per-project basis):
- 在您生成的Android项目右键单击并选择属性
- 从左侧窗格中,选择Java构建路径
- 勾选Android的私人图书馆复选框
- 刷新项目/重新构建应用程序
- Right-click on your generated Android project and choose"properties"
- From the left pane, choose "Java Build Path'
- Tick the "Android Private Libraries" checkbox
- Refresh the project / re-build the app
应用程序应现在已成功推出的设备。
The app should now successfully launch in the device.
这篇关于IBM工作灯5.0.6.x - 混合Android应用程序无法在真实的设备上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!