Eclipse Version: Indigo Service Release 2
android-sdk_r18-linux
Ubuntu 12.04
Problem
import android.support.v4.app.Fragment;
there is no file android-support-v4.jar
Solution
right-click on the project > Android Tools > Add Support Library...
Ref: http://code.google.com/p/android/issues/detail?id=21488
Instead, follow the (widely available) instructions for importing the third-party library, then adding it using Build Path (which makes it known to Eclipse for compilation purposes). Here is the step-by-step:
PDT/Installation
3.7 url: download.eclipse.org/release/indigo
Ref: wiki.eclipse.org
menu Run > Run Configurations...
or right click at the project and select Properties > Run / Debug Settings
select environment tab > new button
ที่มา:desy.de/
ทำกาติดตั้ง CDT ให้กับ Eclipse โดยไปที่เมนู Help > Software Updates > Find and Install
จากนั้นตรง Name ให้ใส่คำว่า CDT
ส่วนตรง URL ให้ใส่ url ของ CDT ให้ตรงกับ เวอร์ชั่นของ Eclipse ที่เราใช้อยู่ โดยดู url นี้ได้จาก http://www.eclipse.org/cdt/downloads.php
ที่มา: CDT Downloads, C++ Development using eclipse IDE
เมื่อทำการติดตั้ง Eclipse เรียบร้อยแล้ว จะสามารถใช้งานภาษาไทยใน Eclipse ได้ทันที แต่ถ้ามีปัญหาไม่สามารถใช้ได้ ให้ไปกำหนด Default Encoding ของ Eclipse ซะใหม่
โดยไปที่ Window > Preferences > General > Workspace แล้วทำการเปลี่ยน Text file encoding ดังรูป