简体   繁体   English

我有一个缺少gen文件夹的现有android项目。 我如何运行这个项目?

[英]I have an existing android project in which gen folder is missing. How can i run this project?

II have an existing android project in which gen folder is missing. II有一个现有的android项目,其中缺少gen文件夹。 How can i run this project? 我如何运行这个项目? Eclipse is give me following error. Eclipse给了我以下错误。

Make the resources ID non constant. 使资源ID不固定。 This is required to make an R java class that does not contain the final value but is used to make reusable compiledlibraries that need to access resources. 这是制作不包含最终值的R java类所必需的,而R java类用于制作需要访问资源的可重用编译库。

Description Resource Path Location Type Error generating final archive: java.io.FileNotFoundException: C:\\Users\\Bilal\\Desktop\\Lecture05\\bin\\resources.ap_ does not exist Lecture05 Unknown Android Packaging Problem 说明资源路径位置类型生成最终归档文件时出错:java.io.FileNotFoundException:C:\\ Users \\ Bilal \\ Desktop \\ Lecture05 \\ bin \\ resources.ap_不存在Lecture05未知的Android包装问题

Please Help me. 请帮我。 Thanks in advance. 提前致谢。

The Android Ressource Manager is responsible for creating the R.java file in the gen folder. Android Ressource Manager负责在gen文件夹中创建R.java文件。 This happens when the project is build, either automatically or via the "clean" command. 在自动或通过“ clean”命令构建项目时,会发生这种情况。

Check the Properties of the project to see if the Android Resource Manager is properly included as a Builder for this project. 检查项目的属性,以查看Android资源管理器是否正确包含为该项目的生成器。 There should be four builders registered in the "Builders" section: 在“构建器”部分中应该注册了四个构建器:

  • Android Resource Manager Android资源管理器
  • Android Pre Compiler Android预编译器
  • Java Builder Java生成器
  • Android Package Builder Android Package Builder

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 greenDAO:我可以在android-project中使用gen文件夹吗? - greenDAO: can I use gen folder in android-project? 我创建了一个新的android项目,它在gen文件夹中有buildconfig.java - I have created a new android project and it has buildconfig.java in gen folder 在Eclipse中导入现有的Android项目:没有gen源文件夹? - Import existing Android project in Eclipse: no gen source folder? Eclipse无法清除说缺少gen文件夹的Android项目 - Eclipse not able to clean a Android project saying missing gen folder Android项目的Gen文件夹为空 - Gen folder is empty for Android project 如何将本地 android studio 项目推送到 master 分支现有文件夹中的 gitlab? - How can I push a local android studio project to gitlab in an existing folder in the master branch? 当我在eclipse中清理并构建android项目时,删除bin文件夹和gen文件夹并重新生成空的gen和bin文件夹 - when i clean and build android project in eclipse it delete bin folder and gen folder and regenerate empty gen and bin folder 关于重命名Android项目gen文件夹中的包的一些问题 - Some questions about rename a package which is in the gen folder for Android project Android(maven)自动重新创建“ gen”文件夹。无法运行项目 - Android (maven) recreates “gen” folder automatically.Can't run project 当我在eclipse中清理并构建android项目时,删除bin文件夹和gen文件夹内容 - when i clean and build android project in eclipse it delete bin folder and gen folder contents
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM