title: How do I get Android Studio to include resources in a .jar file?
body: <p>I'm using Unity 5. It still expects java plugins to be a .jar file built with JDK 1.6.</p>
  
  <p>I had this working under Unity 4, but they changed something. Now I get this error while building the apk from Unity:</p>
  
  <blockquote>
    <p>OBSOLETE - Providing Android resources in Assets/Plugins/Android/res
    is deprecated, please move your resources to an Android Library. See
    "Building Plugins for Android" section of the Manual.</p>
  </blockquote>
  
  <p>How do I get AS to put the resources into classes.jar? The "Building Plugins for Android" doesn't mention resources.</p>
  
  <p>Additional information about my project:</p>
  
  <p>The project references Google Play Services, so I need version.xml in there</p>
  
  <pre><code>&lt;integer name="google_play_services_version"&gt;6587000&lt;/integer&gt;
  </code></pre>
  
  <p>Which contains the version number for the reference in the Manifest.</p>
  
  <pre><code>&lt;meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /&gt;
  </code></pre>
  
  <p>But if I include this file in res/values in my AS library project, it's still output as an xml file in res/values next to the classes.jar.</p>
  
  <p>Incidentally, I'm digging the .jar file out of</p>
  
  <p><code>/ApplicationName/build/intermediates/exploded-aar/ProjectName/LibararyName/unspecified/classes.jar</code></p>
  
  <p>after building the project.</p>