Project has no default.properties file! Edit the project properties to set one

前端 未结 22 683
耶瑟儿~
耶瑟儿~ 2020-11-28 10:50

While configuring MJAndriod I have got an error as follows:

Project has no default.properties file! Edit the project properties to set one.

相关标签:
22条回答
  • 2020-11-28 11:47

    For me this problem occurred because I develop in two different environments with the same files. The newer environment converts the file structure and works fine then when I go back to the old environment I get this error. After messing around for a while trying to figure this out here is the solution I use:

    1) rename project.properties to default.properties

    2) edit .classpath file to remove the line:

    <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
    

    4) Restart eclipse and/or clean the projects (may not be necessary)

    0 讨论(0)
  • 2020-11-28 11:48

    I have nothing to do something special.Only Open the debug.properties file edit target=android-APILEVEl.Like suppose it is default target=android-8 you can edit it target=android-4.Then build the project.Again edit target=android-8.Again edit it.Now you can see there have no error in your project.

    0 讨论(0)
  • 2020-11-28 11:51

    See project.properties in android project. In ADT 14, default.properties was renamed to project.properties.

    Quote from the changelog:

    default.properties which is the main project’s properties file containing information such as the build platform target and the library dependencies has been renamed project.properties.

    *Note: Per the above link, if you don't have a default.properties file, likely you should upgrade your tools.

    See build changes in revision 14, at the bottom under "Project Setup"

    0 讨论(0)
  • 2020-11-28 11:51

    "default.properties" is renamed as "project.properties". You can reach "Package Explorer" -> "MyXXXXXApp" -> "project.properties"

    0 讨论(0)
提交回复
热议问题