Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7E7CDF6C for ; Mon, 19 Nov 2012 19:40:30 +0000 (UTC) Received: (qmail 42789 invoked by uid 500); 19 Nov 2012 19:40:30 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 42769 invoked by uid 500); 19 Nov 2012 19:40:30 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 42761 invoked by uid 99); 19 Nov 2012 19:40:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 19:40:30 +0000 X-ASF-Spam-Status: No, hits=0.3 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ahayes@gcrc.carleton.ca designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-ie0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Nov 2012 19:40:25 +0000 Received: by mail-ie0-f175.google.com with SMTP id qd14so1796108ieb.6 for ; Mon, 19 Nov 2012 11:40:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=m1v/x48IeW3+wG/yj0+xDRQr5ZdIUCkHh/AHtyQT+90=; b=onZCTMb4k7ptEZcrvkGjgCv7sxw1zVuu1CBMHhtVcrW8jjryorJkxO+oM4s806Ym3z fKrNiDcpr1H0j2WrKv0YKgT3SV76vLXidN5cKERFfhjygPHry2uNkkscG9bhwelcZ4LG f9hyX+Pw6p4+gfZtTDSpQMmPphxvPXV9UAG+kALO1xeGdAvewvstBPfw93cAfRoXF51T wILymS/x9c8WRMHrjAHgBWlOuNkIy6OQLfQ2bghVFHJn0T/mHwqrkonR5JO2zQ/dDcY/ Qs0kFbrCWm9yE07BGc+hBJ1b28UPEi4TQo9NisY2x3QQBaAonPIrCatPrR8ezoaCxsqk pM1w== Received: by 10.50.194.131 with SMTP id hw3mr7470462igc.71.1353354004915; Mon, 19 Nov 2012 11:40:04 -0800 (PST) Received: from [192.168.10.160] (polkaroo.net. [69.196.158.110]) by mx.google.com with ESMTPS id wm10sm7699275igc.2.2012.11.19.11.40.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 11:40:04 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Getting Started with Android on Windows From: Amos Hayes In-Reply-To: Date: Mon, 19 Nov 2012 14:40:03 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <090206BA-2626-4876-BA2C-4D4A5C64C2E2@gcrc.carleton.ca> References: <61288611-3B9B-4F06-987E-1B2B717AA0FE@gcrc.carleton.ca> To: dev@cordova.apache.org X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQkeXrXNdbsCw0NnsP3tKKiyQaAx8+eNHhy28FTu3ffcLKSJQYjvVn0mYNSaBw2RXCc4bZBM X-Virus-Checked: Checked by ClamAV on apache.org 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 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. >=20 > On Mon, Nov 19, 2012 at 11:22 AM, Amos Hayes = wrote: >>=20 >> Thanks Filip. >>=20 >> On OSX, the relevant bits are: >>=20 >> -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 >>=20 >> -- >> Amos Hayes >>=20 >>=20 >>=20 >> On 2012-11-19, at 2:18 PM, Filip Maj wrote: >>=20 >>> 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. >>>=20 >>> On 11/19/12 11:15 AM, "Amos Hayes" wrote: >>>=20 >>>>=20 >>>> 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) >>>>=20 >>>> 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) >>>>=20 >>>> 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... >>>>=20 >>>> -- >>>> Amos >>>>=20 >>>>=20 >>>>=20 >>>> On 2012-11-19, at 1:20 PM, Amos Hayes = wrote: >>>>=20 >>>>>=20 >>>>> Thanks for your response. >>>>>=20 >>>>> 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. >>>>>=20 >>>>> -- >>>>> Amos >>>>>=20 >>>>>=20 >>>>>=20 >>>>> On 2012-11-19, at 12:59 PM, Anis KADRI = wrote: >>>>>=20 >>>>>> 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 ? >>>>>>=20 >>>>>>=20 >>>>>> On Mon, Nov 19, 2012 at 9:54 AM, Amos Hayes = >>>>>> wrote: >>>>>>=20 >>>>>>> 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. >>>>>>>=20 >>>>>>> I have followed the windows getting started guide. Well, more or >>>>>>> less. I >>>>>>> found >>>>>>>=20 >>>>>>>=20 >>>>>>> = 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. >>>>>>>=20 >>>>>>> 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. >>>>>>>=20 >>>>>>> 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. >>>>>>>=20 >>>>>>> Any suggestions? Wish I knew more about java... but if I did I = might >>>>>>> not be >>>>>>> trying to use Cordova in the first place. :) >>>>>>>=20 >>>>>>> -- >>>>>>> Amos >>>>>>>=20 >>>>>=20 >>>>=20 >>>=20 >>=20