工作灯自动生成的Andr​​oid文件夹不上AVD运行不上、自动生成、文件夹、工作灯

2023-09-06 00:04:20 作者:輕描淡寫丶沵給過旳傷

我已经安装了IBM的工作灯工作室(企业版)5.0.5v Windows Server 2008上,我也与最新的Andr​​oid SDK(API 17,安卓4.2)和最新的ADT插件(22.0v)来配置它。当我创建一个新的工作灯项目的HelloWorld,我建立它和浏览器preVIEW槽的工作灯控制台正常。当我加入一个工作灯环境(机器人)来创建项目的HelloWorld,自动生成的HelloWorldHelloWorldApplicationAndroid但是当我做右键单击运行方式 - > Android的应用程序它为我的错误(或多个) 。虚拟Android设备显示我不幸的是HelloWorldApplication已经停止。我在寻找解决此问题,在lo​​gcat中我做了截图

i have installed ibm worklight studio (enterprise edition) 5.0.5v on windows server 2008 and i have also configured it with the latest android sdk(api 17, android 4.2) and the latest adt plugin (22.0v). when i create a new worklight project "HelloWorld", i build it and preview on browser trough the worklight console normally. when i add a worklight environment (android) to the project "HelloWorld", the auto-generated "HelloWorldHelloWorldApplicationAndroid" is created but when i do right-click on "Run as -> Android Application" it shows me an error (or more). the virtual android device shows me "Unfortunately HelloWorldApplication has stopped". i am looking for resolve this problem, on the logcat i did a screenshot

截图

有人遇到这样的问题呢?由于任何人给我一个提示,我希望我是在描述问题准确

Someone has encountered this kind of problem? Thanks to anyone give me a tip, i hope i was accurate on describing the problem

推荐答案

这恰好由于谷歌的变化在这个版本ADT取得了。 它仅影响ADT V22的用户。工作灯将具有该内置固定在它的下一个版本。

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 its next release.

在此期间,为了解决这个问题(在每个项目的基础上):

In the meanwhile, to fix this (on a per-project basis):

在您生成的Andr​​oid项目上单击右键,选择属性。 从左侧窗格中,选择Java构建路径 勾选Android的私人图书馆复选框 刷新项目/重新构建应用程序

该应用程序现在应该在设备正常工作。

The app should now work in the device.