Android :: Ant Build File ?
Sep 8, 2010I need to write ant build file for my project. Do anyone have an idea about how to write ant build file for android.
View 3 RepliesI need to write ant build file for my project. Do anyone have an idea about how to write ant build file for android.
View 3 RepliesBuilding our Android app from Ant fails with this error:
[apply]
[apply] UNEXPECTED TOP-LEVEL ERROR:
[apply] java.lang.OutOfMemoryError: Java heap space
[apply] at java.util.HashMap.<init>(HashMap.java:209)
[apply] at java.util.HashSet.<init>(HashSet.java:86)
[apply] at com.android.dx.ssa.Dominators.compress(Dominators.java:96)
[apply] at com.android.dx.ssa.Dominators.eval(Dominators.java:132)
[apply] at com.android.dx.ssa.Dominators.run(Dominators.java:213)
[apply] at com.android.dx.ssa.DomFront.run(DomFront.java:84)
[apply] at com.android.dx.ssa.SsaConverter.placePhiFunctions(SsaConverter.java:265)
[apply] at com.android.dx.ssa.SsaConverter.convertToSsaMethod(SsaConverter.java:51)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:100)
[apply] at com.android.dx.ssa.Optimizer.optimize(Optimizer.java:74)
[apply] at com.android.dx.dex.cf.CfTranslator.processMethods(CfTranslator.java:269)
[apply] at com.android.dx.dex.cf.CfTranslator.translate0(CfTranslator.java:131)
[apply] at com.android.dx.dex.cf.CfTranslator.translate(CfTranslator.java:85)
[apply] at com.android.dx.command.dexer.Main.processClass(Main.java:297)
[apply] at com.android.dx.command.dexer.Main.processFileBytes(Main.java:276)
[apply] at com.android.dx.command.dexer.Main.access$100(Main.java:56)
[apply] at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:228)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[apply] at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:130)
[apply] at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:108)
[apply] at com.android.dx.command.dexer.Main.processOne(Main.java:245)
[apply] at com.android.dx.command.dexer.Main.processAllFiles(Main.java:183)
[apply] at com.android.dx.command.dexer.Main.run(Main.java:139)
[apply] at com.android.dx.command.dexer.Main.main(Main.java:120)
[apply] at com.android.dx.command.Main.main(Main.java:87)
BUILD FAILED
Ive tried giving Ant more memory by setting ANT_OPTS="-Xms256m -Xmx512m". (This build machine has 1Gb RAM). Do I just need more memory or is there anything else I can try?
I want to build the .apk file from java binary file (.class) or .dex file. I have copied the bin+res folder and Manifest.xml file to a specified folder. and run the command :[apkbuilder.bat %FILE_NAME% -rf "./src_folderr"]. This command build the new .APK file with default keystore. But I want to build the APK with me generated keystore, with command line as this :[apkbuilder.bat %FILE_NAME% -rf "./src_folder" -storetype path_to_my_release_keystore.keystore] but it can not find my keystore with "java.security.KeyStoreException : release.keystore not found". How can I build APK file with my keystore file?
View 12 Replies View RelatedUse adb logcat, DDMS, or the DDMS perspective in Eclipse to look at LogCat and examine the stack trace associated with your error.
- Hide quoted text -
How can I build and signed (keystore) the .apk file using 'apkbuilder.bat' via windows command-line? I try to run the following line: apkbuilder.bat %APK_File_Name% -u -z %Project_Path%in esources.ap_ -f %Project_Path%inclasses.dex -rf %Project_Path%. But I'm getting the following exception: java.lang.ArrayIndexOutOfBoundsException: 1 at com.android.sdklib.build.ApkBuilderMain.main<ApkBuilderMain.java:61>.
View 2 Replies View RelatedI've installed Ant. From an existing Eclipse project I am able to generate the build.xml file from the command line using ant -update project. When I now try ant release I get this error: build.xml:65: java.lang.NullPointerException. This project builds fine under Eclipse. I have no idea where to even begin to figure this out. I wouldn't bother with this except that I need to use ProGuard later on (which I have not done yet).
View 1 Replies View RelatedI created an Android project a few months ago and now have to automate the build process with Hudson. The Android dev guide mentions a build.xml file that gets created when you generate a project (http://developer.android.com/guide/developing/other-ide.html) but I dont see one in my project. Will I have to create this by hand or can I run a command to generate it?
View 1 Replies View RelatedI dont want to hardcode the name of the package or where it lives when building an Android project with ant. Im using the build file generated by Android. What properties contain the output folder (bin) and package name (e.g. package.apk) ?
View 2 Replies View RelatedI'm using an ant build file that has been generated by android. Our Android application requires a JAR file that lives inside the lib folder of our project, so I need to adjust the classpath that ant is using when it builds stuff.
When I run:
ant -lib lib debug
the project builds just fine, but this should really be inside the build file itself. The build file that android generates references the android_rules.xml so a lot of this stuff is automated. I guess my question, what the best practice here when working with the Android build rules ?
In my application, I want to use chm library.
Can anyone tell me How to build shared library (.so file) for chm reader in Android?
And which toolchain is used. what is the steps for building it?
How to code for reading a pdf file in android? i want to build an app like RepliGo reader. So, Please enlighten me to read pdf by using android sdk or ndk.
View 1 Replies View RelatedI was looking through my system files with root explorer and I notice in the build.prop file, I had the information for the Xperia Arc instead of the Xperia Arc S. I changed some of the info to the Arc S, like LT18i instead of LT15i. But I'm not sure if I changed everything correctly and can upload the build.prop file for the Arc S.
View 3 Replies View RelatedI am looking to compile a new kernel for this device. I have pulled off the boot.img file from /dev/block/nandc and used split_bootimg.pl to pull apart the kernel and the boot ramdisk. I have used extract-ikconfig to get the kernel config and built my new 3.4 kernel (with modules). So far so good...
I have tried to build the new boot.img file with no avail. My concern is with the original kernel as the new one should be build the same (I think). It looks like it is not compressed as I run the command
file boot.img-kernel
It returns
boot.img-kernel: data
So it is not a Linux kernel ARM boot executable zImage
Is this correct? Can Android boot with this or is the split_bootimg.pl tool not creating the file correctly (it does pull the ramdisk as I have uncompressed it fine! and the file does contain the kernel config)
Ok So assuming I can create a proper boot.img with my built zImage and the old ramdisk, what do I need to do with the modules? Do I update the boot.img on the tablet and copy the modules over to the existing /system/lib/modules? (this appears to not work)
I attempted to use the new build.prop file to fix the market issue where some paid apps were not found for download.
Here is the process I used:
Download build.prop, place it on SD card. Use Root Explorer to copy build.prop into system/Deleted old build.prop file from system/ (I made a copy of the original and placed it in a folder on my SD card as a backup) Turned phone off. Turned phone back on and got to the Motorola logo, then the screen is black (backlight is still working, the screen is technically on, there just isn't anything on it).
Phone never gets to the boot animation and will not boot back up. Anyone know how I can fix this without having to flash the SBF 2.1 file again and re-root, install 2.2 update.zip, and download/setup all of my apps?
I started to work with the latest Android version for OMAP3430 (Zoom1) platform by getting sources via "repo sync".
The u-boot and kernel images were built successfully but file system build encountered the issue for
CODE:..............
Which Android version to use and how to get it via repo?
I downloaded the Android 2.2 source code and try to build it. When I executed the make command, I got an error here like this build/core/java.mk:20: *** frameworks/ex/common: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. Then I changed the frameworks/ex/common/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7. Next place, build/core/java.mk:20: *** external/jsr305: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/jsr305/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
Last one, build/core/java.mk:20: *** external/guava: Invalid LOCAL_SDK_VERSION '8' Choices are: current 4 5 6 7. Stop. I changed the external/guava/Android.mk to LOCAL_SDK_VERSION = 8 from LOCAL_SDK_VERSION = 7
By these changes the code started the compilation.
1. Why the error occured?
2. Changes which I did is correct or not?
I have a phone with a MT6577. The vendor (Wiko) published the kernel source code. So, i'm trying to build it. I can get the zImage. I converted it to boot.img but i can't boot with it on my phone.build a good zImage? (if you want to try) : URL...
cp mediatek-configs .config
TARGET_PRODUCT=s9081 MTK_ROOT_CUSTOM=../mediatek/custom make
# sudo mtk-tools/repack-MT65xx.pl -boot zImage boot.img-ramdisk boot.img
MTK-Tools by Bruno MartinsMT65xx repack script (last update: 27-01-2013)
Repacking boot image...
Ramdisk size: 2046 blocs
Repacked boot image into 'boot.img'.
Here are the Warnings I got when compiling
mediatek/platform/mt6577/kernel/drivers/video/tvc_drv.c:61:5: warning: "FIXED_WVGA_PARAMS" is not defined
net/ipv4/tcp.c: In function 'tcp_nuke_addr':
include/net/ipv6.h:338: warning: 'in6' may be used uninitialized in this function
net/ipv4/tcp.c:3367: note: 'in6' was declared here
In file included from net/ipv4/netfilter/ipt_LOG.c:27:
include/net/netfilter/xt_log.h: In function 'sb_close':
[code]....
Try something like this,
ANT_OPTS="-Xms256M -Xmx512M" export ANT_OPTS ant ...
On 12/2/09 12:11 PM, sdphil wrote:
HTC may develop own mobile OS, follow iPhone model | Electronista
Palm with webOS, Samsung with Bada and now HTC with their own? Is this going to lead anywhere good?
k9-2707-release.apk - k9mail - K9 2707 - Project Hosting on Google Code
View 3 Replies View RelatedI'm having pukage when I try building from ant. I followed the sdk upgrade instructions:
$ android update project --path /path/to/my-project --target 1
and when I try to build:
$ ant release
I get:
CODE:...........
It seems that something in:
CODE:..............
Is causing ant to harf, but that's about all I can tell.
Is there a tool or a website that could help me create a UI for an Android application using drag-and-drop?
I found this site but want to know if there is a more stable tool or website for this?
I would like to do is a build-in SMS Counter. When having plans that allow you to do a specified amount of SMS messages in a month, an SMS Counter would be very useful, and I can't imagine writing code for it could be that hard. I think that, apart from me, many people would love this simple extra to the Android OS.
View 2 Replies View RelatedI want to modify the usb_windows.c in /system/core/adb and recompile a new adb.exe to test our platform. but, when i use "make HOST_OS=windows", it failed. i use ubuntu 8.04 and i can build with "make HOST_OS=linux". does anyone know how to build my adb.exe?
View 12 Replies View RelatedMy application needs to compile into different version, from 1.5 to 2.1. The development environment is eclipse. I don't want to have different source code or project for each version. How could I do it?
View 5 Replies View RelatedI just tried to figure out the build.xml from the SDK 1.5. I used "android update project" an an existing project and got a very short build.xml. When I strip out all the comments, this is what's left:
<?xml version="1.0" encoding="UTF-8"?> <project name="com.webxells.ourproduct" > <property file="local.properties"/> <property file="build.properties"/> <property file="default.properties"/> <path id="android.antlibs"> <pathelement path="${sdk-location}/tools/lib/anttasks.jar" /> <pathelement path="${sdk-location}/tools/lib/sdklib.jar" /> <pathelement path="${sdk-location}/tools/lib/ androidprefs.jar" /> <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" /
I define a setBackgroundDrawable with a png resource that's 2px wide and 50px high. Android fills the background with this resource. The question I have: Does Android replicate the resource to fill the width of the screen or does it stretch it? The png is not 9-patch.
View 3 Replies View RelatedI'm seemingly having problems creating the apk using an ant build for 1.5. It's building so I'm guessing the sdk pointer in local.properties is set correctly, but it seems to not be finding sun.security.x509.* (?).
I can see that jarutils.jar is in
CODE:...............
Here's the traceback spew...
release: [apkbuilder] Creating .Phresheez-unsigned.apk for release...
CODE:................
Is that possible to build an extensions to build-in apps like contacts, or addessbook, so we could adding additional menu ?
View 2 Replies View RelatedI am in the process of writing some new build files for Android Sdk 1.5 and beyond.
My question is every tool-IDE plugin the same in that they do not contribute the ANT task libs to the IDE ant editor and thus have to manually set the paths in each IDE?
At them moment i know ADT 0.90 pre is but I am assuming that will change as we approach the ADT 0.90 final release.