Thanks Joe. I was about to post:
It looks like running "create" and "ant jar" on the master branch of
https://github.com/apache/incubator-cordova-android.git work. The deprication
complaints are still there, but the jar builds.
So I guess that brings me full circle. Where are the pre-compiled JARs? They
don't appear to be in the zip file linked from
http://incubator.apache.org/cordova/#download
--
Amos Hayes
On 2012-11-19, at 2:26 PM, Joe Bowser <[email protected]> wrote:
> That's a known issue with the current release, and is fixed in the
> current repository. I recommend using the pre-compiled JARs for now.
>
> On Mon, Nov 19, 2012 at 11:22 AM, Amos Hayes <[email protected]> wrote:
>>
>> Thanks Filip.
>>
>> On OSX, the relevant bits are:
>>
>> -compile:
>> [javac] Compiling 56 source files to
>> /Users/ahayes/Documents/cordova-2.2.0/incubator-cordova-android/framework/bin/classes
>> [javac]
>> /Users/ahayes/Documents/cordova-2.2.0/incubator-cordova-android/framework/src/org/apache/cordova/CordovaWebView.java:231:
>> cannot find symbol
>> [javac] symbol : method setNavDump(boolean)
>> [javac] location: class android.webkit.WebSettings
>> [javac] settings.setNavDump(true);
>> [javac] ^
>> [javac] Note: Some input files use or override a deprecated API.
>> [javac] Note: Recompile with -Xlint:deprecation for details.
>> [javac] 1 error
>>
>> --
>> Amos Hayes
>>
>>
>>
>> On 2012-11-19, at 2:18 PM, Filip Maj <[email protected]> wrote:
>>
>>> You can cd into the framework/ directory and run "ant jar" to get a better
>>> idea of what is failing. That's the task that compiles the jar.
>>>
>>> On 11/19/12 11:15 AM, "Amos Hayes" <[email protected]> wrote:
>>>
>>>>
>>>> FYI. I have been just been through the same steps on OS X. (replaced my
>>>> 4.1 SDK with the 4.2 one, downloaded Cordova 2.2.0 package)
>>>>
>>>> Looks like the cordova jar isn't building with the Android 4.2 SDK (and I
>>>> guess on Windows it's not reporting the error when it can't copy it)
>>>>
>>>> Moog2:incubator-cordova-android ahayes$ cd bin
>>>> Moog2:bin ahayes$ ./create ../../../Test com.example.test Test
>>>> cp:
>>>> /Users/ahayes/Documents/cordova-2.2.0/incubator-cordova-android/framework/
>>>> cordova-2.2.0.jar: No such file or directory
>>>> An error occurred. Deleting project...
>>>>
>>>> --
>>>> Amos
>>>>
>>>>
>>>>
>>>> On 2012-11-19, at 1:20 PM, Amos Hayes <[email protected]> wrote:
>>>>
>>>>>
>>>>> Thanks for your response.
>>>>>
>>>>> No. There is no cordova-2.2.0.jar in the libs directory. I just tried
>>>>> again with a freshly created project and it isn't there, even before
>>>>> adding to eclipse.
>>>>>
>>>>> --
>>>>> Amos
>>>>>
>>>>>
>>>>>
>>>>> On 2012-11-19, at 12:59 PM, Anis KADRI <[email protected]> wrote:
>>>>>
>>>>>> AppInfo.jar is not necessary. It is only used by the cordova commands.
>>>>>> Do you have cordova-2.2.0.jar in your libs directory ?
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 19, 2012 at 9:54 AM, Amos Hayes <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello. I've just downloaded the latest windows ADK 4.2 package for
>>>>>>> windows
>>>>>>> (which includes an eclipse environment) from developer.android.com
>>>>>>> and the
>>>>>>> Cordova 2.2.0 packages.
>>>>>>>
>>>>>>> I have followed the windows getting started guide. Well, more or
>>>>>>> less. I
>>>>>>> found
>>>>>>>
>>>>>>>
>>>>>>> http://simonmacdonald.blogspot.ca/2012/11/getting-create-command-to-wor
>>>>>>> k-on.htmlafter
>>>>>>> the fact and suggest that it does a bit better job for any windows
>>>>>>> users who aren't also familiar with unix-ish systems.
>>>>>>>
>>>>>>> Anyway, after creating the project at the command line (and telling
>>>>>>> it to
>>>>>>> locate the project in my ADK/Eclipse "workspace" folder, I was not
>>>>>>> able to
>>>>>>> File -> New -> Project... -> Android Project from Existing Code. It
>>>>>>> complained of an "Invalid project description." I was able to get
>>>>>>> around
>>>>>>> this problem by creating the project outside my workspace folder and
>>>>>>> then
>>>>>>> choosing to copy it in when adding it to Eclipse. Weird.
>>>>>>>
>>>>>>> Anyway, where I'm stuck now is with a persistent "The import
>>>>>>> org.apache.cordova cannot be resolved" error (along with other later
>>>>>>> ones
>>>>>>> which I have to assume are a result of that first one. I have tried
>>>>>>> cleaning the project and adding cordova/AppInfo.jar to the build path
>>>>>>> but
>>>>>>> I'm not having any luck.
>>>>>>>
>>>>>>> Any suggestions? Wish I knew more about java... but if I did I might
>>>>>>> not be
>>>>>>> trying to use Cordova in the first place. :)
>>>>>>>
>>>>>>> --
>>>>>>> Amos
>>>>>>>
>>>>>
>>>>
>>>
>>