Android: Some Operation Problems in the Eclipse Development Environment

Source: Internet
Author: User

This article is used to record minor issues that occur during compilation and debugging. These are not code problems. They are mainly caused by the failure to create an Android Project using Eclipse and run the simulator.

[Enable LogCat]

LogCat can display the printing of Log. d () or System. output. println (). It is a very useful debugging and tracking tool. Open Mode: Window => Show view-> LogCat


[Update ADT] The advantage Android upgrade requires eclipse to update ADT. Otherwise, when eclipse is enabled, the following dialog box is displayed: update ADT to latest version.

[Fix] eclipse Help: check update, so it may not be reflected. Note that the progress appears at the bottom of elicpse. Click it to see it, or simply be patient. Later, the encapsulated ADT provided by Google was used as the development environment.Help>Install NewSoftware-Fill in "Add" with https://dl-ssl.google.com/android/eclipse/. then, you can click it to start a name, for example, ADT.
Plugin, and then follow the prompts.


[Problem] The Other Android development environment that uses Eclipse has the following error: Android requires compiler compliance level 5.0. Please fix project properties.

[Fix] 1. right-click the Project and choose android tools> Fix Project. 2. if not, check Project-> Properties-> Java Compiler and confirm that JDK compliance is set to 1.6 and enable specific seetings.


[Problem] No error, but cannot be loaded to the simulator. Console includes: New package not yet registered with the system. Exit after three attempts have timed out.

[Fix] in Project-> clean, select the specified project. After I select clean all, the project's R. java file disappears.


[Problem] The automatically generated R. java in the project disappears.

[Fix] in Project-> clean, select the specified project to restore. You can also choose porject and right-click Andriod Tools> Fix Project Properties. However, there is no effect, which may be different from the reason that R. java disappears.


[Problem] error: Debug certificate expired on a previous date

[Fix] Check the Default debug keystore path in Windows> Preferences> Android> Build ~ /. Andriod/, delete debug. keystore and ddms. cfg under this directory. After deletion, Report "Re-installation failed due to different application signatures." During loading. Enter $./adb shell as prompted and run the DELETE command adb.
Uninstall xxx.

[Problem] Chinese font garbled characters

[Fix] converting a project in linux to windows may cause garbled Chinese characters, in Windows-> Preference-> Gerneral-> Workspace-> Text file encoding, select the desired font, such as the UTF-8.

[Problem] The @ override method is not allowed for Java Nested classes (inheriting an interfece ).

[Fix] This is because of Java compiler version issues. Android currently supports the inheritance and compatibility of interfaces in JDK 1.5 and JDK 1.6, and can be changed. Right-click the project and choose properties> Java Compiler.

Related Links: My Andriod development articles

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.