Reputation: 29436
An Android app project is using two library projects as dependencies, Each of the library project has some layout resources and has "R" class auto generated. However, the IDE is getting confused with two inherited "R" classes . Is it possible to change the name of output "R" class by overriding some ANT properties ?
I've already changed dependency order, So IDE looks for main source first and then the library project but it didn't help.
Upvotes: 0
Views: 323
Reputation: 3613
No you cannot. The R
class is generated by aapt
, and there is no option on it to use other name. If you are using resources from different projects in the same file you have to use fully qualified names to resources, like CommonsWare said.
Upvotes: 0
Reputation: 1007369
Is it possible to change the name of output "R" class by overriding some ANT properties ?
Not that I am aware of. Simply fully qualify one (or both) of the R
references (e.g., com.wingman.libraryone.R
, so you are not relying upon import
statements.
Upvotes: 3