搜尋此網誌

顯示具有 Eclipse 標籤的文章。 顯示所有文章
顯示具有 Eclipse 標籤的文章。 顯示所有文章

2012年2月6日 星期一

Eclipse:No resource found that matches the given name (...)

一、在Eclipse的專案中,在 res/layout/main.xml中記錄一些元件
二、但若某些資源沒要先做”宣告”的動作
  即會出現「No resource found that matches the given name (...)」,如:
<TextView   android:id="@+id/MyText"   android:layout_width="wrap_content"   android:layout_height="wrap_content"   android:text="@string/str_1"   android:layout_x="61px"   android:layout_y="69px"   > <TextView> 三、在res/values/strings.xml中加入
  「<string name="str_1"> STRING </string>」即可解決錯誤。

2012年1月26日 星期四

ubuntu下建立Android開發環境(一)

一、開發Android應用程式,在此以(Eclipse + Android SDK)* uBuntu 為主。

二、具備下例條件時,建議就用ubuntu來開發Android:
 (一)、不懂怎麼從Windows之下連入Android裝置。(ubuntu下連結Android裝置簡單多了)
 (二)、Windows下使用Eclipse啟動Android模擬器時,模擬器極其遲鈍。
 (三)、稍懂得怎麼使用 adb 指令及linux指令。

三、簡述步驟:
 (一)、安裝Java SDK For Linux(下載頁面)
 (二)、Android SDK installer,安裝後可隨時下載各版本Android API(下載頁面)
 (三)、Eclipse IDE For Java EE Develop (Indigo On Linux下載頁面)
 (四)、可下、可不下:ADT(Android Development Tools ADT 設定頁面)

四、請記得,ubuntu要更新,若為64位元系統時,則必要安裝ia32-libs元件(ubuntu指令:$ sudo apt-get install ia32-libs)。

五、使用adb前,下載Android SDK後,可在 /platform-tools/下找到 adb(參考頁面)

六、有點ubuntu及eclipse使用經驗的,下載完後,應該能將Android開發環境建立完成,沒經驗的...詳細步驟我再找時間寫~XD