2

In my Android project I've created an additional source-code folder called src-plugins. I added it to build.properties and building the project works fine.

However, now and then my gen folder won't regenerate and the solution is always to do an Eclipse Project > Clean.... However, this also removes the deepest sub-folder of src-plugins -- including all of its files.

Question: Is there a way to fix this?

I'll preemptively answer the most likely comment: I'm not using a subpackage because I need access to package-private class members. But I still feel I need to group these files in a separate folder.

4

2 回答 2

1

如果没有任何日志或布局文件、活动文件等,它的重现甚至会有所不同,但这可能与相同的旧 R.java 问题有关,当您在某些布局文件中遇到问题时。您说它是零星的,但是您必须跟踪在正常行为和文件夹消失期间已修改的内容。这可能只是一件非常小而简单的事情。

于 2013-02-12T14:46:30.153 回答
-1

在您的 IDE 中选择Build > Clean Project./gradlew clean或从控制台中使用。

于 2016-01-20T14:01:47.087 回答