Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating multiple R.java and combine them?

I'm doing custom build, but I'm trying to integrate UnityAds. Unityads has its own resources and hence it generates its own Resources classes R.java with its own package. My game uses its own resources too, and it generates R.Java with it's package name. Now the current situation is that I combine all the resources into the game's resources with its package name. But the problem is that Unity Ads needs it's own resources.How can I combine them in the build so that each plugin use it's own resources with its package name and not generating conflicts with dex classes?

like image 404
andre Avatar asked Sep 24 '26 13:09

andre


1 Answers

I would assume that UnityAds should be integrated as a separate library project, which means it has its own separate resources. You should not mix your application code/resources with UnityAds' in the same application project.

Please see their guide.

like image 88
JHH Avatar answered Sep 27 '26 04:09

JHH



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!