Một số chú ý với Libgdx

Bắt đầu với loạt bài này để nắm các khái niệm đơn giản: http://www.serivn.com/2014/06/lap-trinh-game-voi-libgdx-phan-3-cach.html

Tuy nhiên cần chú ý:

1. Ở phần 3 (tạo project), đến lúc import các project vào eclípe, nếu bị lỗi ở <project>.html thì quay lại phần 2 (cài plugin software cho eclipse): http://www.serivn.com/2014/06/lap-trinh-game-voi-libgdx-phan-2-cai-at.ht
Lap+trinh+libgdx+-+phan+1+-+16

Tại chỗ này, chọn hết.
Sau đó tải GWT SDK tại : http://www.gwtproject.org/download.html
Sau đó làm theo chỉ dẫn này:
Looking inside the class that was giving the problem made Eclipse to point straight to the problem: the compiler compliance required to be 1.5 or greater but Eclipse had by default 1.4. I changed it throughWindow > Preferences > Java > Compiler > Compiler compliance level, where I put the correct one, 1.7, and everything compiled cleanly.

Nếu là lỗi: The GWT SDK JAR gwt-servelt.jar is missing...
bạn chọn tab "Problems" trong Eclipse, mở "Errors" ra, bạn tìm lỗi "The GWT SDK JAR gwt-servelt.jar is missing...", click chuột phải vào lỗi đó và lựa chọn "Quick Fix", 1 cửa sổ mới hiển thị ra, bạn lựa chọn "Synchronize /WEB-INF/lib with SDK libraries" và click "Finish"

Nhận xét