1. <tfoot id='xHGMk'></tfoot>
    2. <small id='xHGMk'></small><noframes id='xHGMk'>

        <bdo id='xHGMk'></bdo><ul id='xHGMk'></ul>
    3. <i id='xHGMk'><tr id='xHGMk'><dt id='xHGMk'><q id='xHGMk'><span id='xHGMk'><b id='xHGMk'><form id='xHGMk'><ins id='xHGMk'></ins><ul id='xHGMk'></ul><sub id='xHGMk'></sub></form><legend id='xHGMk'></legend><bdo id='xHGMk'><pre id='xHGMk'><center id='xHGMk'></center></pre></bdo></b><th id='xHGMk'></th></span></q></dt></tr></i><div id='xHGMk'><tfoot id='xHGMk'></tfoot><dl id='xHGMk'><fieldset id='xHGMk'></fieldset></dl></div>
      <legend id='xHGMk'><style id='xHGMk'><dir id='xHGMk'><q id='xHGMk'></q></dir></style></legend>

    4. “修复项目属性"命令是什么意思?究竟是做什么的?

      时间:2023-08-21
    5. <i id='2XCCt'><tr id='2XCCt'><dt id='2XCCt'><q id='2XCCt'><span id='2XCCt'><b id='2XCCt'><form id='2XCCt'><ins id='2XCCt'></ins><ul id='2XCCt'></ul><sub id='2XCCt'></sub></form><legend id='2XCCt'></legend><bdo id='2XCCt'><pre id='2XCCt'><center id='2XCCt'></center></pre></bdo></b><th id='2XCCt'></th></span></q></dt></tr></i><div id='2XCCt'><tfoot id='2XCCt'></tfoot><dl id='2XCCt'><fieldset id='2XCCt'></fieldset></dl></div>
        <tbody id='2XCCt'></tbody>
      • <bdo id='2XCCt'></bdo><ul id='2XCCt'></ul>
      • <small id='2XCCt'></small><noframes id='2XCCt'>

          <legend id='2XCCt'><style id='2XCCt'><dir id='2XCCt'><q id='2XCCt'></q></dir></style></legend>

                <tfoot id='2XCCt'></tfoot>
                本文介绍了“修复项目属性"命令是什么意思?究竟是做什么的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                Project->Android Tools->Fix Project Properties"Eclipse命令exaclty有什么作用?

                What does the "Project->Android Tools->Fix Project Properties" Eclipse command exaclty do?

                我已经阅读了很多次使用它,主要是在与 Eclipse 中的 Android R 生成问题相关的答案中,但对我来说它就像魔术一样,我按下它,我想它修复了一些项目属性,但没有任何反应... 没有视觉反馈,没有关于修复了哪些项目属性的信息......任何人都可以对它究竟做了什么提供一些见解?

                I have read many times to use it, mostly in answers related with Android R generation problems in Eclipse, but for me it is like magic, I press on it and I suppose it Fixs some Project Properties, but nothing happens... no visual feedback, no info on which project properties has been fixed... anyone can give a bit of insight on what does it exactly do?

                谢谢

                推荐答案

                通过查看 ADT 源代码,特别是 FixProjectAction 并阅读我们的源代码和评论可以看到它调用了:

                By looking into ADT source code, specifically into FixProjectAction and reading source and comments we can see that it calls:

                ProjectHelper.fixProject(project);
                ProjectHelper.fixProjectNatureOrder(project);
                AndroidNature.configureResourceManagerBuilder(project);
                AndroidNature.configurePreBuilder(project);
                AndroidNature.configureApkBuilder(project);
                

                ProjectHelper.fixProject(project) 做:

                • 创建 Java 项目
                • 修复类路径条目以确保:
                  • 该项目未引用任何旧的 android.zip/android.jar 存档
                  • 项目不使用其输出文件夹作为源文件夹
                  • 该项目未引用桌面 JRE
                  • 项目引用了 AndroidClasspathContainer.

                  ProjectHelper.fixProjectNatureOrder(project) 重新排序项目性质,使Android项目性质优先.

                  ProjectHelper.fixProjectNatureOrder(project) reorders project natures, so that Android project nature is first.

                  AndroidNature.configureResourceManagerBuilder(project) 添加 ResourceManagerBuilder,如果它不存在的话.它将自己作为第一个构建器插入.

                  AndroidNature.configureResourceManagerBuilder(project) adds the ResourceManagerBuilder, if its not already there. It'll insert itself as the first builder.

                  AndroidNature.configurePreBuilder(project) 如果 PreCompilerBuilder 不存在,则添加它.它会检查 ResourceManager 的存在并在之后立即插入.

                  AndroidNature.configurePreBuilder(project) adds the PreCompilerBuilder if its not already there. It'll check for presence of the ResourceManager and insert itself right after.

                  AndroidNature.configureApkBuilder(project) 如果 .apk 构建器不存在,则在末尾添加.

                  AndroidNature.configureApkBuilder(project) adds the .apk builder at the end if it's not already there.

                  最后三个调用可确保您的项目具有正确的构建器.当您查看 Eclipse 项目属性中的 Builders 部分时,您会看到:

                  Last three calls ensure that you have correct builder for your project. When you look at your Builders section in eclipse project properties you will see:

                  • Android 资源管理器优先
                  • 资源管理器之后的 Android 预编译器
                  • Android Package Builder 最后

                  这篇关于“修复项目属性"命令是什么意思?究竟是做什么的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何使用 maven 构建 Eclipse 插件? 下一篇:什么是 Eclipse PDT 中的“API 基线"

                相关文章

                  1. <small id='roxvs'></small><noframes id='roxvs'>

                    • <bdo id='roxvs'></bdo><ul id='roxvs'></ul>

                  2. <i id='roxvs'><tr id='roxvs'><dt id='roxvs'><q id='roxvs'><span id='roxvs'><b id='roxvs'><form id='roxvs'><ins id='roxvs'></ins><ul id='roxvs'></ul><sub id='roxvs'></sub></form><legend id='roxvs'></legend><bdo id='roxvs'><pre id='roxvs'><center id='roxvs'></center></pre></bdo></b><th id='roxvs'></th></span></q></dt></tr></i><div id='roxvs'><tfoot id='roxvs'></tfoot><dl id='roxvs'><fieldset id='roxvs'></fieldset></dl></div>
                    <legend id='roxvs'><style id='roxvs'><dir id='roxvs'><q id='roxvs'></q></dir></style></legend><tfoot id='roxvs'></tfoot>