Android - How is gen folder generated?

Asked

Viewed 118 times

0

I created a program that uses a base project to generate other projects. The applications have the same functionality, what changes is the layout, the images, the names of the packages, etc. The problem is that when I open a new project, I open the eclipse and give a 'clean' the package where the R file is still with the same name of the base project, instead of the new project name, which obviously results in a build error. I thought that by cleaning the project the package name in the gen folder would be changed to the same package name in the src folder. inserir a descrição da imagem aqui Would someone tell me where the meta-information is extracted for the generation of the gen folder?

  • Breno, how’s your file AndroidManifest? Because apt uses the packageName at the root of this file to create all self-generated code in this module.

  • Wakin, thank you so much! There really was a line on Androidmanifest that I was forgetting to change.

1 answer

1

To change the package where auto-generated classes are created, just change the packageName on Androidmanifest.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.