question

Mr. P. Law avatar image
Mr. P. Law asked

GameCircle and Unity5 - AndroidManifest.xml issues

Hi, I'm trying to implement GameCircle in my game, using Unity 5.2 and the latest GameCircleSDK 2.5.2, but setting up the AndroidManifest.xml is giving me a headache. I'm using the one that came with the SDK - renamed to AndroidManifest.xml [code] [/code] (I have change the package name to be the correct one, I'm just unsure if it is safe to share) However, when I build I'm getting the following error: [code]AndroidManifest.xml:20: error: Error: No resource found that matches the given name (at 'theme' with value '@style/GCOverlay'). AndroidManifest.xml:22: error: Error: No resource found that matches the given name (at 'theme' with value '@style/GCAlert').[/code] I've been following this guide https://developer.amazon.com/public/apis/engage/gamecircle/docs/unity-setup to setup GameCircle, however where it talks about the Android Manifest, there are 3 lines highlighted (line #2, 13 and 14) but it doesn't say if/ what lines #2 and #14 need replacing with ... if anything at all - if nothing, then why are they highlighted? Message was edited by: Mr. P. Law
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amazon Customer avatar image
Amazon Customer answered
Same problem here. I wonder if this is something to do with Unity 5.2? I've had this working fine (with the same setup) on previous Unity versions... Ben
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Amazon Customer avatar image
Amazon Customer answered
Yes, it's that 5.2 has made including resource files in the Plugins folder obsolete. We need to build the GameCircle stuff into an Android library and then import that. Amazon folks, please could you update the Unity plugin to do this? It's totally unusable in the latest version of Unity. Thanks, Ben
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mr. P. Law avatar image
Mr. P. Law answered
Thanks for replying Ben. Any chance of a reply/ update/ fix from someone at Amazon?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Mr. P. Law avatar image
Mr. P. Law answered
Thanks to some very helpful people over on the Unity forums, a solution has been found. Posted by NoN33d: -------------------------- 1) First create a folder under Plugins/Android, call it AmazonGameCircleCustomLib. 2) Then put the res folder into it (move Plugins/Android/res to Plugins/Android/AmazonGameCircleCustomLib/res). 3) Then create an AndroidManifest.xml file in AmazonGameCircleCustomLib folder (keep only the basic things inside it). 4) Then create a project.properties file in AmazonGameCircleCustomLib then edit it and add "android.library=true". The Plugins/Android/AmazonGameCircleCustomLib/ should contain: - res - AndroidManifest.xml - project.properties More details: AndroidManifest.xml: project.properties android.library=true
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, Thanks for posting the solution, and apologies for the delay in response. I've passed this information on to the relevant team for further investigation, but I would suggest to keep using this as a workaround for the time being. I will update as I know more information for a proper solution. Regards, Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.