hi again Brice , i have question (i'm sorry if its wrong question), how i an add plugins to build , for example i want to use push notification message for android application , and confuse how to use it
I hope you don't mind me imposing on you, but I've spent the last few decades googling and searching Sencha forums and ploughing through the alleged documentation to no avail and so now turn to you as one who knows his Sencha Touch stuff, unlike so many of us flailing around in these forums.
Here's the problem:
My app works fine in Chrome in development, testing and production versions. If I run your sencha-cordova builder, I can run the app with no problem in Chrome from the generated assets/www directory.
Unfortunately, whether I use the apk generated by your builder, that generated by Sencha Cmd's native builder or debug from eclipse, whether to a hardware device or an emulator, I can't get past the app's loading screen in Android 4.x. I can on my phone using 2.3.5 (where the app doesn't run as it should, but getting past the loading screen is progress).
I started learning ST in order to avoid having to learn Objective C, but I think that by now I could have written it in Java and learnt Objective C as well. I should be receiving a secondhand Mac tomorrow and will see how I get on with that. If ST runs OK on the Mac, then, unless you know of a solution, I guess I'll just write the Android version in native code. If it doesn't run on the Mac, maybe I'll just drop ST and try Titanium.
I've just noticed that I'm raising the same issue as kramprahu above. So it's obviously not fixed for him either.
Last edited by munder; 3 Mar 2013 at 8:17 AM.
Reason: forgot a bit
I missed following line in build.xml
"<target name="-after-build" depends="-build-android" />"
After that.. I get following error...
[INF] [echo] checking android initialization using the followingresources:
[INF] [echo] cordova library D:phonegap-2.4.0
[INF] [echo] android tools D:phonegap-2.4.0\lib\android\bin
[INF] [echo] android create script D:phonegap-2.4.0\lib\android\in\\create.bat
[INF] [echo] android project D:\sencha\hello\build\hello\android
[INF] [echo] android project built state...false
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.BasicException: one or more of the resoures required to initialize the android project cannot be resolved
[ERR] at com.sencha.exceptions.BasicException.wrap(BasicExcepion.java:43)
[ERR] at com.sencha.cli.Command.dispatch(Command.java:104)
[ERR] at com.sencha.cli.Commands.dispatch(Commands.java:49)
I have ant, java and android sdk installed and with path specified.
I am still getting the build error. (pasted the error in previous post). I followed all the steps mentioned.. but still getting the error. I am developing in windows machine.
Help me .. if you find any thing in my error message.
[echo] Resolving Build Target for hello...
[gettarget] Project Target: GALAXY Tab Addon
[gettarget] Vendor: Samsung Electronics Co., Ltd.
[gettarget] Platform Version: 2.2
[gettarget] API level: 8
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\sencha\hello\build\hello\android\bin\res
[mkdir] Created dir: D:\sencha\hello\build\hello\android\gen
[mkdir] Created dir: D:\sencha\hello\build\hello\android\bin\classes
[echo] Resolving Dependencies for hello...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:20: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:22: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:49: error: No resource identifier found for attribute 'hardwareAccelerated' in package 'android'
[aapt] D:\sencha\hello\build\hello\android\bin\AndroidManifest.xml:52: error: Error: String types not allowed (at 'configChanges' with value 'orientation|keyboardHidden|keyboard|screenSize|locale').
C:\Program Files\Android\android-sdk\tools\ant\build.xml:621: The following erro
r occurred while executing this line:
C:\Program Files\Android\android-sdk\tools\ant\build.xml:657: null returned: 1
Total time: 1 second
'adb' is not recognized as an internal or external command,
operable program or batch file.
make sure u add like the following to ur path
C:\Program Files (x86)\Android\android-sdk\tools;C:\Program Files (x86)\Android\android-sdk\platform-tools;C:\Program Files\Java\jdk1.7.0_15\bin