This is because the import project does not have the default. properties file, which records the environment information required by the project, such as the Android version. General default. properties FileCodeAs shown below, the comments in the Code have clearly explained default. properties. If a project does not have the default. properties file, we can directly copy it from other projects for use. "Target = Android-8" indicates development on the Android 2.2 platform.
# This file is automatically generated by Android tools. <br/> # do not modify this file -- your changes will be erased! <Br/> # This file must be checked in version control systems. <br/> # to customize properties used by the ant build system use, <br/> # "build. properties ", and override values to adapt the script to your <br/> # project structure. <br/> # project target. <br/> Target = Android-8
Note:
If default is added to ecplise. properties, the project may still have an error. We need to re-import this project. This ecplise will automatically generate a Gen folder for the project and add the library folder "Android 2.2.