-
4 Feb 2013 8:15 PM #41
The builder has been tested successfully up to PhoneGap 2.3. I'm not seeing where the bin directories have been moved in 2.3. Even in the most recent 2.4 release candidate code, the bin directories are where they should be. Check out this link to the phonegap github repo which shows the scripts in the android directory like all the other versions:
https://github.com/phonegap/phonegap...ib/android/bin
I will say however that as of 2.3 I did make a change to how the cordova javascript file is picked up and moved to the sencha app. Before, it was handled by relying on a location of a standard template or example project in each phonegap platform directory. This did change in 2.3. When the project is first created, that cordova library is created in the root of the app with the name of cordova-{version}.js where {version} is the version of phonegap. Perhaps this is the change you're referring to? If your version of the file build-cordova-android.xml does NOT contain this snippet:
Then you should go out and get the latest version of the builder here:Code:<script language="javascript"> var versionFile = new java.io.File(project.getProperty('cordova.lib') + '/VERSION'); var versionString = org.apache.commons.io.FileUtils.readFileToString(versionFile); var regex = "\\n"; versionString = versionString.replaceAll(regex, ""); project.setProperty('cordova.lib.version', versionString); </script> <property name="cordova.android.tools.js" value="${cordova.android.project.www}/cordova-${cordova.lib.version}.js" />
https://github.com/bricemason/sencha-cordova-builder
As far as the -init-android-internal target not being called, it's probably because you have the _android.built and/or _android.deploy files in the root of your sencha app. Those need to be deleted before every build for it to run again. If you don't want to do that manually or make your own script, I ship a proxy to the sencha command that will do it for you.
Sorry this is flood of info coming at you here. If this doesn't answer your questions, please post your cordova.properties file so I can take a look.
Again, thanks for using the project.
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
-
5 Feb 2013 1:45 AM #42
Phonegap versus Cordova
Phonegap versus Cordova
Hi Brice.
The builder works fine now. Even on phonegap 2.4rc1.
My pitfall however was I downloaded and installed From the Cordova website Cordova 2.3.0.
That downloads has an other filestructure.
This could maybe for all other people who try cordova-builder.
The phonegap install form github phonegap is working perfect.
Thanks Brice for support
-
5 Feb 2013 5:40 AM #43
I'm not seeing the different folder structure for phonegap 2.3. I just downloaded it and took a screenshot to the android bin folder.
Could you please post more details in what you're seeing as the different directory structure that was causing issues for you?
I have attached a screenshot of the directory path to the android bin for a freshly downloaded phonegap 2.3.
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
-
6 Feb 2013 12:41 AM #44
Different filestrycture
Different filestrycture
Hi Brice. Just to be clear. The different filestructure is not between Phonegap 2.2 and Phonegap 2.3.
The different is between Phonegap 2.3 and Cordova 2.3
-
6 Feb 2013 10:24 AM #45
I understand now. To answer the question, sencha cordova builder is meant to work with the phonegap implementation.
BriceBrice Mason
Front End Developer
Modus Create
@bricemason
bricemason.com
Sencha Touch Screencasts
Vimeo - Sencha Touch Channel
Github Projects:
Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.
Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.
Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.
-
6 Feb 2013 4:15 PM #46
Keep running into this issue, not sure what i did wrong.
Keep running into this issue, not sure what i did wrong.
-is-android-init-ready:
[INF] [echo] checking android initialization using the following resources:
[INF] [echo] cordova library /User/y001457/tools/phonegap-2.3.0
[INF] [echo] android tools /User/y001457/tools/phonegap-2.3.0/lib/android/bin
[INF] [echo] android create script /User/y001457/tools/phonegap-2.3.0/lib/android/bin/create
[INF] [echo] android project /Users/y001457/apps/myApp/build/myApp/android
[INF] [echo] android project built state...false
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: one or more of the resources required to initialize the android project cannot be resolved
-
7 Feb 2013 4:03 AM #47
Path
Path
Hi I see you use different pathnames. IMO your path to Phonegap starts with :/User and your path to the project starts with :/Users.
/User must be a personal path.
/Users is the default iMac path for users
This must be a typo, right?
-
7 Feb 2013 5:54 AM #48
Thank you.
Thank you.
Absolutely right. Thanks for catching it!
-
18 Feb 2013 11:26 AM #49
I'm new here , i was searching in this forum how to integrate sencha touch and phonegap , i spent a lot of days to do this .you are just great , thanks a lot ,however
i have a question please (forgive me if its wrong question) : how to generate apk file in order to test it on my real device , i'm trying to add project to eclipse , but i could not kindly find images in attachments myApp.jpgvirtualDevice.jpg
can you guide me please ?
best regards
-
18 Feb 2013 11:57 AM #50
excuse me , i also have the following error :
i work on windows 7HTML Code:[ERR] BUILD FAILED [ERR] com.sencha.exceptions.BasicException: The following error occurr ed while executing this line: [ERR] C:\wamp\www\myApp\build.xml:7: Execute failed: java.io.IOExcepti on: Cannot run program "C:\wamp\www\myApp\build\myApp\android\cordova\debug": Cr eateProcess error=2, The system cannot find the file specified
regards


Reply With Quote