Ant+ivy
Maven
(1)
xiongmc@xiongmc-desktop:~/android/project/workspace/HomeActivity$ ant release build.xml
Buildfile: /home/xiongmc/android/project/workspace/HomeActivity/build.xml
-set-mode-check:
-set-release-mode:
-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}
-pre-build:
-check-env:
[checkenv] Android SDK Tools Revision 22.0.1
[checkenv] Installed at /home/xiongmc/android/adt-bundle-linux-x86_64-20130522/sdk
-setup:
[echo] Project Name: RoblectricSample
[gettype] Project Type: Application
-build-setup:
[getbuildtools] Using latest Build Tools: 17.0.0
[echo] Resolving Build Target for RoblectricSample...
[gettarget] Project Target: Android 4.1.2
[gettarget] API level: 16
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for RoblectricSample...
[dependency] Library dependencies:
[dependency] No Libraries
[echo] ----------
[echo] Building Libraries with 'release'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
[echo] ----------
[echo] Handling Resources...
[aapt] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[javac] Compiling 1 source file to /home/xiongmc/android/project/workspace/HomeActivity/bin/classes
-post-compile:
-obfuscate:
-dex:
[dex] input: /home/xiongmc/android/project/workspace/HomeActivity/bin/classes
[dex] input: /home/xiongmc/android/project/workspace/HomeActivity/libs/guice-3.0-no_aop.jar
[dex] input: /home/xiongmc/android/project/workspace/HomeActivity/libs/roboguice-2.0.jar
[dex] input: /home/xiongmc/android/project/workspace/HomeActivity/libs/javax.inject.jar
[dex] Using Pre-Dexed guice-3.0-no_aop-c078118679e9a2b1f5309ec759bd35b4.jar <- /home/xiongmc/android/project/workspace/HomeActivity/libs/guice-3.0-no_aop.jar
[dex] Using Pre-Dexed roboguice-2.0-13f5f6f86a6fa32592aefa0b12cf7c94.jar <- /home/xiongmc/android/project/workspace/HomeActivity/libs/roboguice-2.0.jar
[dex] Using Pre-Dexed javax.inject-f3f6a1a7f83a9a8c872c6f38e47ded5f.jar <- /home/xiongmc/android/project/workspace/HomeActivity/libs/javax.inject.jar
[dex] Found modified input file
[dex] Converting compiled files and external libraries into /home/xiongmc/android/project/workspace/HomeActivity/bin/classes.dex...
[dx] Merged dex A (55 defs/35.6KiB) with dex B (410 defs/380.8KiB). Result is 465 defs/520.2KiB. Took 0.2s
[dx] Merged dex A (465 defs/520.2KiB) with dex B (119 defs/102.4KiB). Result is 584 defs/823.0KiB. Took 0.1s
[dx] Merged dex A (584 defs/823.0KiB) with dex B (6 defs/1.6KiB). Result is 590 defs/1182.1KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir: /home/xiongmc/android/project/workspace/HomeActivity/res
[crunch] To destination dir: /home/xiongmc/android/project/workspace/HomeActivity/bin/res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[aapt] No changed resources or assets. RoblectricSample.ap_ remains untouched
-package:
[apkbuilder] Found modified input file
[apkbuilder] Creating RoblectricSample-release-unsigned.apk for release...
-post-package:
-release-prompt-for-password:
-release-nosign:
[echo] No key.store and key.alias properties found in build.properties.
[echo] Please sign /home/xiongmc/android/project/workspace/HomeActivity/bin/RoblectricSample-release-unsigned.apk manually
[echo] and run zipalign from the Android SDK tools.
[propertyfile] Updating property file: /home/xiongmc/android/project/workspace/HomeActivity/bin/build.prop
[propertyfile] Updating property file: /home/xiongmc/android/project/workspace/HomeActivity/bin/build.prop
[propertyfile] Updating property file: /home/xiongmc/android/project/workspace/HomeActivity/bin/build.prop
[propertyfile] Updating property file: /home/xiongmc/android/project/workspace/HomeActivity/bin/build.prop
-release-sign:
-post-build:
release:
BUILD FAILED
Target "build.xml" does not exist in the project "RoblectricSample".
Total time: 3 seconds
A:
没理解问题是什么?没按照别人的观点看问题。例如:ant release build.xml是用Ant的使用,然而在ant for android中使用是这样的吗?所以,你要思考ant 和 ant for android是一样的吗?我应该按照ant for android的角度思考问题。
那我下一步该怎么做?
ant release
(2)自己之前是怎么想的?又是怎么做的?
自己导入eclipse有报错。为什么?
A: