The solution to writing Java programs under Eclipse suddenly does not automatically generate files and packages _java

Source: Internet
Author: User

Here are some of the more common solutions, the details are as follows:

1. Sometimes eclipse does not compile automatically, clean project and let regenerate

2. Select Menu Project >> Clean, provided that the Bulid automatically (automatically build deployment) is checked, and the project is rebuilt after clean, because in general, The file will update the build side at this time, and if the project is wrong, it will not be generated automatically.

3. Select Engineering, right-click Android Tools >> fix Project Properties This operation can sometimes fix some errors.

4. The previous version of the 1.5/1.6/2.1 SDK Layout_height did not see match_parent this attribute, android:layout_height= "Match_parent" This attribute will result in XML not being compiled and cannot be generated

This is an advanced version of the downgrade may occur, the solution is to replace match_parent with Fill_parent

When you import other source code, first of all to ensure that the source of the SDK version and your eclipse default version is consistent.

5. When there are other XML and class errors in the project, they are not compiled automatically, and the jar bundle reference is not automatically compiled when there are errors.

Also attached:

View the source version of the method: Open the file, see target=android-7 After this number is how much.

Version correspondence: Target=android-3 <---> Android 1.5, target=android-4 <---> Android 1.6,

Target=android-7 <---> Android 2.1, target=android-8 <---> Android 2.2, target=android-10 <---> Android 2.3.3,

TARGET=ANDROID-14 <---> Android 4.0, target=android-15 <---> Android 4.0.3, target=android-16 <---> Android 4.1, TARGET=ANDROID-17 <---> Android 4.2 other tests.

The above introduces the eclipse to write Java program will not automatically generate files and packages of solutions, I hope this article to share can help everyone.

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: 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.