Failed to recompile unity project when google play services added
<p>On google developer console my app has the package name <code>com.ultpult.catch.o</code> (new name) for getting xml to integrate google play services in my game</p>

<p>I had been successfully using google play services like (in app purchases) with package name <code>com.ultpult.catcho</code> (old name), but that time I had used <code>android native plugin</code> but now I am trying this with <strong>default plugins of google for unity</strong>.</p>

<p>Now when I import google play game services into unity and compile my unity project, i get error.</p>

<p>I have update my SDK manager to latest version</p>

<p>I also checked my environmental variables path, they are fine too.</p>

<p>But still getting following error when compiling/building the project on step <code>packaging and recompiling files</code></p>

<blockquote>
  <p>CommandInvokationFailure: Failed to recompile android resource files.
  C:/Program Files/Java/jdk1.8.0_91\bin\javac.exe -bootclasspath "C:/Users/imran.farooq/AppData/Local/Android/sdk\platforms\android-23\android.jar" -d "C:\Users\imran.farooq\Documents\Co\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "android\support\v4\R.java" "android\support\v7\appcompat\R.java" "com\google\android\gms\R.java" "com\google\android\gms\ads\R.java" "com\google\android\gms\ads\impl\R.java" "com\google\android\gms\base\R.java" "com\google\android\gms\clearcut\R.java" "com\google\android\gms\drive\R.java" "com\google\android\gms\games\R.java" "com\google\android\gms\nearby\R.java" "com\google\android\gms\tasks\R.java" "com\google\example\games\mainlibproj\R.java" "com\ultpult\catch\o\R.java"</p>
</blockquote>

<pre><code>stderr
[
com\ultpult\catch\o\R.java:8: error: &lt;identifier&gt; expected
package com.ultpult.catch.o;
            ^
com\ultpult\catch\o\R.java:8: error: class, interface, or enum expected
package com.ultpult.catch.o;
                ^   
com\ultpult\catch\o\R.java:8: error: class, interface, or enum expected
package com.ultpult.catch.o;
                 ^
3 errors
]
stdout[]
</code></pre>

<blockquote>
  <p>UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
  UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg)
  UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources (UnityEditor.Android.PostProcessor.PostProcessorContext context)
  UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
  UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
  UnityEditor.HostView:OnGUI()</p>
</blockquote>