IBM Worklight 6.1 - "Missing .project file" error while trying to build the Android environment

2.1k Views Asked by At

After I installed Worklight 6.1 and the Android plug-in and SDK, I got the below exception when trying to build an app:

[2013-12-13 13:27:07] Starting build process: application 'WorklightTest', all environments
[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] A core eclipse exception has occurred: Failed to read project description file from location D:\Development\worklight_dev\WorklightTestApp\apps\WorklightTest\android\native.project.

Actually, I did it with worklight 6.0...

4

There are 4 best solutions below

2
On

From: IBM Worklight 6.0 - Build issues

Try to:

I have installed a fresh copy (not upgraded) of Worklight 6.1, created new project+app+environment and the build passed successfully.

I suggest to try the above suggestions as they are ordered.

0
On

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; using:

sudo update-alternatives --config java

Also checked the SDK alternative points to the same:

sudo update-alternatives --config javac

0
On

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

  • delete native folder in android environment
  • set -vm flag in eclipse.ini to use Oracle JRE
  • start eclipse with -clean flag
1
On

I had the exact same problem and on my Windows 7 Machine it was also a Java Install / Version problems as it seems.

I am an IBMer, so I had the IBM Java JRE and SDKs for version 7 installed. Also the Oracle JRE and JDK. Also both for 32bit and 64bit. The command line always referred to the 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.