I changed my computer a few days ago and set up a new Android development environment. But some errors occurred when I imported my previous project!
Error
Error message printed:Android requires compiler compliance level 5.0 or 6.0. Found '1. 4' instead. Please use Android tools> fix project properties.
First, clean up the project, and then follow the steps below:
1. right-click a project and choose Android tools fix project
2.If not, checkProject->Properties->Java compiler
Verify that JDK compliance is set1.6AndEnable specific seetings.
After these two steps, the problem is basically solved.
Another Error
After updating the android SDK, you will often encounter an error such as "sdk manager: failed to install" and "tools can't write" that means the tools file cannot be written. Later, with the help of Google's great god, I found a blog post for Daniel. The following describes a solution:
If "sdk manager: failed to install" is prompted during the installation process, do not rush. Quit first and then
1.import the tempfile folder of sdkand download tools_r06-windows.zip (the name may be different)
2. Unzip this file and the tools_r06-windows folder appears
3. Enter and copy all the files in the tools_r06-windows and overwrite the files in the tools folder in the SDK root directory
Using Google helps us solve many problems.