anderson 写道: > 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 > > 所以他有產生 但是沒有東西@@ > > > > > > > > > Hi guy, Don't use apt command to install eclipse.You can download it from above url. And directly perform eclipse file. The download url is: http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.4-200806172000/eclipse-SDK-3.4-linux-gtk.tar.gz
Installation steps: 1. download eclipse tar compress file from above url. 2. decompress it by tar command 3. perform eclispe in the installation directory. ps: you must install java runtime environment, you can use apt install it first.;) -- Thanks & Regards Jiang Jiang E-mail: [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---