ubuntu上開發android出現一點問題
直接利用apt-get install eclipse
會安裝 eclipse 3.2.2-5ubuntu2

但好像需要比較新的版本
http://code.google.com/android/intro/installing.html
supported Development Environments:
* Eclipse IDE
o Eclipse 3.3 (Europa), 3.4 (Ganymede)

於是就自己去下載了Eclipse 3.4
跟著google 網頁上的步驟之後
打開現有的sample/Snake
直接run卻發生cant find Snake.apk

console出現的訊息如下:

- Snake] Android Launch!
- Snake] adb is running normally.
- Snake] Could not find Snake.apk!

會是什麼問題呢?
還需要另外設定ant ?

希望有在linux平台開發的朋友提供點方向
感謝

--
環境:
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

--

打command line 直接利用
./activitycreator --out ../samples/Snake/ com.android.snake.Snake
之後得到Snake/build.xml 執行ant 卻
出現 :

Buildfile: build.xml

dirs:
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/test/android-sdk-linux_x86-0.9_beta/
samples/Snake/bin/classes

resource-src:
     [echo] Generating R.java / Manifest.java from the resources...

aidl:
     [echo] Compiling aidl files into Java classes...

compile:
    [javac] Compiling 4 source files to /home/test/android-sdk-
linux_x86-0.9_beta/samples/Snake/bin/classes

dex:
     [echo] Converting compiled files and external libraries into bin/
classes.dex...

package-res:

package-res-and-assets:
     [echo] Packaging resources and assets...

debug:
     [echo] Packaging bin/Snake-debug.apk, and signing it with a debug
key...
     [exec] null

BUILD FAILED
/home/test/android-sdk-linux_x86-0.9_beta/samples/Snake/build.xml:210:
exec returned: 1


--

但在 ~/android-sdk-linux_x86-0.9_beta/samples/Snake/bin 下有看到
但是用file指令查詢
file Snake-debug.apk

結果
Snake-debug.apk: empty

所以他有產生 但是沒有東西@@





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to