On 15 May 2014 21:33, Eli Dupuis <[email protected]> wrote:

> Thanks Elliot! Your instructions seem pretty solid so far. I've run into
> the following error though during Step 5 ("Build the projects in this
> order").
>

I haven't encountered this error myself, but it looks like you need to
specify the target API level manually in your case (perhaps you have
multiple targets so the build is ambiguous, whereas I only have one).

To get the list of targets, do:

$ android list targets

Here's what I get:

Available Android targets:
----------
id: 1 or "android-19"
     Name: Android 4.4.2
     Type: Platform
     API level: 19
     Revision: 3
     Skins: QVGA, WXGA720, WQVGA432, HVGA, WVGA800 (default), WQVGA400,
WXGA800, WXGA800-7in, WVGA854, WSVGA
 Tag/ABIs : default/armeabi-v7a, default/x86

(i.e. only one target)

Then when using android update, specify which target to use, e.g.

$ android update project -s -p . --target 1

(where 1 is the id reported by "android list targets")

I will try adding a platform to my setup and see if this introduces the
ambiguity (and triggers the requirement for the --target option); then
update the docs accordingly.

I don't have a Mac to test on, but the instructions *should* mostly work,
as you're predominantly using Android SDK and Java build tools.

Thanks for the feedback.
Elliot


> ```bash
> Elis-MacBook-Pro:CordovaLib eli$ android update project -s -p .
> Updated local.properties
> build.xml: Found version-tag: custom. File will not be updated.
> Updated file ./proguard-project.txt
> Error: The project either has no target set or the target is invalid.
> Please provide a --target to the 'android update' command.
> Error: The project either has no target set or the target is invalid.
> Please provide a --target to the 'android update' command.
> Updated local.properties
> build.xml: Found version-tag: custom. File will not be updated.
> Updated file ./xwalk_core_library/proguard-project.txt
> ```
>
> I just realized that the Getting Started mentioned only Windows and Linux
> are currently supported. I'm on a Mac; could that cause some issues?
>
>
>
> On Thu, May 15, 2014 at 1:46 PM, Smith, Elliot <[email protected]>wrote:
>
>> Hello Eli.
>>
>> On 15 May 2014 20:13, Eli Dupuis <[email protected]> wrote:
>>
>>> I tried running `./cordova/build` from within my project's
>>> `platforms/android/` directory but I get the following error.
>>>
>>
>> I am currently refreshing the instructions for migrating a Crosswalk app
>> to Cordova, but they're not on the website yet.
>>
>> As it looks like you need them now, it might help if I point you in their
>> direction:
>>
>> https://github.com/crosswalk-project/crosswalk-website/blob/cordova-1630/documentation/Cordova/30-Migrate_an_application.md
>>
>> I've gone through both a command line build and an Eclipse build. They
>> are based on Yongsheng's original instructions, but I've spent some time
>> digging around to figure out exactly what's happening. Hopefully if you
>> follow the steps there, you might get a better idea of what's going on.
>>
>> It would also help me if you provided feedback on whether the
>> instructions are any use, or if there are things there you can't follow or
>> want explained more. This is a key use case for Crosswalk, and I'd like to
>> get the docs right to encourage people to use it.
>>
>> Yours,
>> Elliot
>>
>>
>>
>>>
>>> ```bash
>>> BUILD FAILED
>>> /Users/eli/Development/adt-bundle/sdk/tools/ant/build.xml:601: The
>>> following error occurred while executing this line:
>>> /Users/eli/Development/adt-bundle/sdk/tools/ant/build.xml:653: The
>>> following error occurred while executing this line:
>>> /Users/eli/Development/adt-bundle/sdk/tools/ant/build.xml:698: null
>>> returned: 1
>>>
>>> Total time: 2 seconds
>>> Error code 1 for command: ant with args:
>>> debug,-f,/Users/eli/dev/testapp/platforms/android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
>>> ```
>>>
>>> Any insight would be helpful!
>>>
>>>
>>> On Thu, May 15, 2014 at 1:08 PM, Eli Dupuis <[email protected]> wrote:
>>>
>>>> Thanks for the info, Yongsheng.
>>>>
>>>> I managed to get my project imported into Eclipse and built with
>>>> Crosswalk. The canvas performance is AMAZING!
>>>>
>>>> Does this mean that I have to build my project in Eclipse from now on?
>>>> Is it possible to use the Cordova CLI somehow?
>>>>
>>>> Also, how do I install Cordova plugins? I'm still a little confused
>>>> about the Cordova bundled with Crosswalk versus my Cordova previously
>>>> installed via npm.
>>>>
>>>> Thanks so much for your help!
>>>>
>>>>
>>>> On Wed, May 14, 2014 at 7:17 PM, Zhu, Yongsheng <
>>>> [email protected]> wrote:
>>>>
>>>>>  Hi, Eli
>>>>>
>>>>>
>>>>>
>>>>> We’re now following up Cordova upstream and upgrade its version
>>>>> timely. So you can try with latest Cordova and Crosswalk. Ningxin, could
>>>>> you please provide the link?
>>>>>
>>>>>
>>>>>
>>>>>    1. Is `manifest.json` still required?
>>>>>
>>>>> Yongsheng: No, it’s not required for Cordova.  I think this link can
>>>>> help understand how to use Cordova and Crosswalk core:
>>>>> https://lists.crosswalk-project.org/pipermail/crosswalk-help/2014-April/000119.html
>>>>>
>>>>>    1. How do I build my APK? I used the `python make_apk.py` script
>>>>>    when not using Cordova...
>>>>>
>>>>> Yongsheng:  make_apk.py can be used to pack your web apps into Android
>>>>> apk without Cordova. Find more info about this tool here:
>>>>> https://crosswalk-project.org/#wiki/try-crosswalk
>>>>>
>>>>>
>>>>>
>>>>> Thanks for trying Crosswalk.
>>>>>
>>>>>
>>>>>
>>>>> Yongsheng
>>>>>
>>>>>
>>>>>
>>>>> *From:* Crosswalk-help [mailto:
>>>>> [email protected]] *On Behalf Of *Eli
>>>>> Dupuis
>>>>> *Sent:* Thursday, May 15, 2014 4:00 AM
>>>>> *To:* [email protected]
>>>>> *Subject:* [Crosswalk-help] Working with existing Cordova projects
>>>>>
>>>>>
>>>>>
>>>>> Hey all—Crosswalk newbie here…
>>>>>
>>>>> I’ve got a Cordova app (currently focused on Android). If I add
>>>>> Crosswalk to it (as outlined at
>>>>> https://crosswalk-project.org/#wiki/Moving-Existing-Cordova-App-To-Crosswalk),
>>>>> am I locked to the Cordova version that is bundled in with Crosswalk? Can 
>>>>> I
>>>>> still use Cordova the same I have been up to this point?
>>>>>
>>>>> I'm also confused about the following related to Crosswalk + Cordova:
>>>>>
>>>>>    1. Is `manifest.json` still required?
>>>>>    2. How do I build my APK? I used the `python make_apk.py` script
>>>>>    when not using Cordova...
>>>>>
>>>>>  Sorry if these are super basic questions—I feel like I'm missing
>>>>> something simple.
>>>>>
>>>>> --
>>>>>
>>>>>
>>>>>
>>>>> Eli Dupuis
>>>>>
>>>>> [email protected]
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> --
>>>>
>>>> Eli Dupuis,
>>>> Lead Frontend Developer, Showbie
>>>> The paperless classroom made simple.
>>>> [email protected]
>>>> www.showbie.com
>>>>
>>>
>>>
>>>
>>> --
>>> --
>>>
>>> Eli Dupuis,
>>> Lead Frontend Developer, Showbie
>>> The paperless classroom made simple.
>>> [email protected]
>>> www.showbie.com
>>>
>>> _______________________________________________
>>> Crosswalk-help mailing list
>>> [email protected]
>>> https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
>>>
>>>
>>
>>
>> --
>> Elliot Smith
>> Senior Software Engineer
>> Intel Open Source Technology Centre
>>
>
>
>
> --
> --
>
> Eli Dupuis,
> Lead Frontend Developer, Showbie
> The paperless classroom made simple.
> [email protected]
> www.showbie.com
>



-- 
Elliot Smith
Senior Software Engineer
Intel Open Source Technology Centre
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to