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.