我在Eclipse中创建了一个简单的"Hello World"程序.我什么都不添加到Java文件,只在文件中添加一个文本视图main.xml作为
//main.xml file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Hello World"
/>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
现在,当我运行我的程序时,它会在控制台中显示以下内容.
//console output
[2011-07-10 07:10:22 - demo] ------------------------------
[2011-07-10 07:10:22 - demo] Android Launch!
[2011-07-10 07:10:24 - demo] adb is running normally.
[2011-07-10 07:10:24 - demo] Performing com.demo.DemoActivity activity launch
[2011-07-10 07:10:25 - demo] Automatic Target Mode: launching new emulator with compatible AVD 'vishal'
[2011-07-10 07:10:25 - demo] Launching a new emulator with Virtual Device 'vishal' …Run Code Online (Sandbox Code Playgroud) 错误:
BUILD FAILED
C:\workspace\projectName\add-proguard-release.xml:35: Expecting class path separator ';' before 'Files\eclipse\android-sdk-windows\platforms\android-3\android.jar' in argument number 1
Run Code Online (Sandbox Code Playgroud)
我完全清楚我的问题是我在c:\ program files\eclipse目录中有eclipse + android - 而'program'和'files'之间的空间导致了这个问题.
我也知道解决方案是将此路径放在引号中.
我的问题是在哪里放这些引号.我是一个ANT菜鸟:我遵循我在这里找到的指示:http://android-developers.blogspot.com/2010/09/proguard-android-and-licensing-server.html
我目前正试图弄清楚ANT如何与PROGUARD一起工作以了解用引号包装路径的位置 - 以及如何(我担心它在XML中并且不确定将转发字符会发生什么样的处理等等)
我有一个备份计划,可以将所有内容从"程序文件"中移除 - 但我真的很想正确地解决这个问题,并且感觉移动项目是一个黑客/承认失败.