2009年3月19日 星期四

Could not find *.apk

使用 eclipse 開發 android, 測試 samples 的 HelloAndroid.
  1. create new project, create project from existing source。(eclipse's project path is “C:\workspace”, existing source is android SDK's sample\HelloAndroid)
  2. after creating, select Run As Android. But there is error message “could not find HelloAndroid.apk” , apk 是 Android Package ,類似 Java 中的 JAR,所以應是在 run time 時期找不到對應的 library
  3. 點選 project 右鍵,在 build path->configure build path,點選 Order and Export(在此設定classpth順序),將 Android Library 打勾即可正常執行。

沒有留言:

張貼留言