Amritesh Madhur <amriteshmadhur@...> writes:
>
>
> Amitava,
> I was also facing this issue, quite frustrating!!!!. Followed following
steps to resolve this issue:
>
>
> Import both the project Hello and cordova lib project
>
> Remove the reference project(Cordova lib) from Hello Project. RightClick
project-> Android-> Click reference project and Click Remove
>
> Clean the lib project and rebuild it , repeat this steps couple of time,
till you don't see the yellow sign appears to lib project(which is a warning
sign).
>
> Then again go to your Hello project and add the reference of the lib
project you are done now. Error should go off by now.
>
>
> Amritesh
>
> On Tuesday, March 4, 2014 8:21:57 PM UTC+5:30, Amitava Bhaduri
wrote:Ronald,I could not get around this problem in mine. I tried cleaning
and building the way you suggested a number of times, but still no luck. Is
there another trick which you forgot to mention?
> Thanks,
> AmitOn Wednesday, January 22, 2014 10:35:12 AM UTC-8, Ronald K wrote:After
cleaning and building the projects several times, my app would finally
build. Hallelujah.There no longer is a cordova.jar; it has been replaced by
ant-jar-not-available on the issue.Cheers, RonaldOp donderdag 9 januari 2014
14:37:07 UTC+1 schreef Ronald K:
> I created a new project using the CLI, Cordova version 3.3.1-0.1.2.
>
> Added platforms iOS and Android.
> Opened Eclipse, made sure all SDKs were up to date.
> Added a new project via File > New > Project... > Android Project from
existing code
> In the Import Projects, browsed to platforms/android
> It presented two projects:
> 1. /Users/me/Documents/apps/MyApp/platforms/android
> 2. CordovaLib
> I don't recall seeing the CordovaLib project in previous projects, but
then this is my first Cordova 3.3.1 project.
> Anyway, both were selected, and I clicked Finish to import them.
>
> That's when I got the error: The container 'Android Dependencies'
references non existing library
'/Users/me/Documents/apps/MyApp/platforms/android/CordovaLib/bin/myapp-
cordovalib.jar'
> There indeed is no such jar.
>
> Any ideas on how to fix this?
>
> Perhaps related: with Cordova 3.0.0, there was a cordova-3.0.0.jar in
platforms/android/libs. In my 3.3.1 project the libs folder is empty. Is
that OK?
>
> No problems with the iOS platform project.
>
>
>
>
>
>
>
>
>
If you followed the steps in this guide:
http://docs.phonegap.com/en/3.4.0/guide_platforms_android_index.md.html#Andr
oid%20Platform%20Guide
You will get the error after importing the two projects (HelloWorld and
HelloWorld-CordovaLib) into Eclipse.
Verify this:
Open each of the two projects and you will see that .project file of hello-
CordovaLib project generated by the steps as instructed,
does not have a Android nature. The .project file of the hello project
contains that Android nature, though.
The Solution:
Close Eclipse
Open the .project files and, by copying from the one .project file to the
other,
Change this:
<?xml version="1.0" encoding="UTF-8"?><projectDescription><name>HelloWorld-
CordovaLib</name></projectDescription>
To this:
<projectDescription>
<name>HelloWorld-CordovaLib</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
The problem is really the missing nature of the CordovaLib project.
Start Eclipse and continue with the steps above where you left.
First clean the CordovaLib project and build it.
When you add to the hello project the reference to the CordovaLib project,
delete the one with the red cross first.
nroo