Default. properites, JDK version, and unknown command crunch are missing for importing the android project to ADT.

Source: Internet
Author: User

When I try to import an android project to eclipse at home today, an error is reported that the default. properites file is missing. This project is compiled on the company's computer, so it is estimated that there is a problem with the compiling environment at home. It is useless to set the project attributes. The Android SDK version is not old and the settings are normal. Later I finally guessed that the ADT version was too old, so I upgraded the ADT.

Directly use the menu check update to check and upgrade all the plug-ins of the main program. I only want to upgrade the ADT. Therefore, I will reinstall the ADT, that is, execute help | install new software, and then run.

After the upgrade, compile and run again. The error "Unknown command crunch" is returned. This is because the android SDK tools and Android SDK platform-tools need to be upgraded. Therefore, the SDK manager is used to upgrade these two tools to the latest version, and the problem is solved.

Sometimes, errors that do not match the Java version will be reported during project import. Most of them are installed with multiple JDK and the JDK version is outdated by default. In this case, you only need to find the Java compiler in the project attribute, set compiler level to 1.5 or above.

Sometimes, after the project is imported, a compilation and running error is always prompted, but there is no problem in the setting. You can try to clear the project re-compilation and modify the Android version from 2.1 to 2.2 If the problem persists, then, it is automatically re-compiled.

Some mobile phone configurations are slow in deployment and installation, resulting in timeout during debugging. You can modify window | perferences | Android | ddms | ADB connection time out to increase the time. My experience is that it is easy to time out when debugging with poor quality USB cables or unstable USB ports on the computer. So now I usually use wireless ADB software directly (available in XX market). Remote debugging via wifi is convenient and fast, on the premise that I have root permissions.

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.