android R.java generation

I would like the ability to generate my android application with a different package name.   I am able to update the package name with an ant task, however the problem that R.java is generated with the package name and all of the java classes that import R.java are now broken.

aapt has an option --custom-package that will accomplish this, is there a way to have the android plugin pass parameters to aapt ?

The reason i need to do this is to have different versions of the application installed on the same device (dev, uat, production, etc) at the same time.

thanks

1 comment
Comment actions Permalink

There is no such option in IDEA. Please file a request at http://youtrack.jetbrains.net/issues/IDEA.

0

Please sign in to leave a comment.