[英]IBM Worklight 6.1 - “Missing .project file” error while trying to build the Android environment
After I installed Worklight 6.1 and the Android plug-in and SDK, I got the below exception when trying to build an app: 安装Worklight 6.1以及Android插件和SDK之后,尝试构建应用程序时出现以下异常:
[2013-12-13 13:27:07] Starting build process: application 'WorklightTest', all environments
[2013-12-13 13:27:07]开始构建过程:应用程序“ WorklightTest”,所有环境
[2013-12-13 13:27:10] Failed importing native project for 'Android phones and tablets' Failed to read project description file from location D:\\Development\\worklight_dev\\WorklightTestApp\\apps\\WorklightTest\\android\\native.project.[2013-12-13 13:27:10]无法为“ Android手机和平板电脑”导入本机项目无法从位置D:\\ Development \\ worklight_dev \\ WorklightTestApp \\ apps \\ WorklightTest \\ android \\ native.project读取项目描述文件。
[2013-12-13 13:27:10] A core eclipse exception has occurred: Failed to read project description file from location D:\\Development\\worklight_dev\\WorklightTestApp\\apps\\WorklightTest\\android\\native.project.[2013-12-13 13:27:10]发生了一个月蚀异常:无法从位置D:\\ Development \\ worklight_dev \\ WorklightTestApp \\ apps \\ WorklightTest \\ android \\ native.project读取项目描述文件。
Actually, I did it with worklight 6.0... 实际上,我是用worklight 6.0做到的...
I had the exact same problem and on my Windows 7 Machine it was also a Java Install / Version problems as it seems. 我遇到了完全相同的问题,在我的Windows 7机器上,它似乎也是Java安装/版本问题。
I am an IBMer, so I had the IBM Java JRE and SDKs for version 7 installed. 我是一名IBMer,所以我安装了版本7的IBM Java JRE和SDK。 Also the Oracle JRE and JDK.
也是Oracle JRE和JDK。 Also both for 32bit and 64bit.
同样适用于32位和64位。 The command line always referred to the IBM JDK.
命令行始终引用IBM JDK。
Once I removed all the IBM JREs and JDKs and left only the two, Oracle JDK 7-21 in 32bit and 64bit, on my machine, the creation of the Android project was successful. 一旦我删除了所有的IBM JRE和JDK并仅将32bit和64bit的两个Oracle JDK 7-21留在了我的机器上,Android项目的创建就成功了。
I had the same issue and got it resolved (under Ubuntu) by updating Java alternative to the same Java SDK (openjdk-7) that is required by Worklight; 我遇到了同样的问题,并且通过将Java替代版本更新为Worklight所需的同一Java SDK(openjdk-7)来解决(在Ubuntu下); using:
使用:
sudo update-alternatives --config java sudo update-alternatives --config Java
Also checked the SDK alternative points to the same: 还检查了SDK替代点是否相同:
sudo update-alternatives --config javac sudo update-alternatives --config javac
I have ran across this issue many times haven't yet found a solid resolution. 我遇到这个问题很多次都没有找到一个可靠的解决方案。 In my latest experience today, this combination of things worked for me consistently for 3 different occurrences on Windows 7
根据我今天的最新经验,在Windows 7上出现了3种不同的情况,这种结合对我一直有效
From: IBM Worklight 6.0 - Build issues 来自: IBM Worklight 6.0-构建问题
Try to: 尝试:
-clean
flag -clean
标志运行Eclipse I have installed a fresh copy (not upgraded) of Worklight 6.1, created new project+app+environment and the build passed successfully. 我已经安装了Worklight 6.1的新副本(未升级),创建了新的project + app + environment,并且构建成功通过。
I suggest to try the above suggestions as they are ordered. 我建议按顺序尝试上述建议。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.