title: Unity gradle build failed to transform aar
body: <p>Unity gradle build fail with error. How can i fix it?</p>
  
  <p>I use </p>
  
  <pre><code>android.useAndroidX = true
  android.enableJetifier = true
  </code></pre>
  
  <p>Build fail with error:</p>
  
  <p>Failed to transform '...\Temp\gradleOut\libs\com.android.support.support-v4-26.1.0.aar' using Jetifier. Reason: The given artifact contains a string literal with a package reference 'android.support.v4' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)</p>
  
  <p>That's my dependencies:</p>
  
  <pre><code>&lt;dependencies&gt;
    &lt;packages&gt;
      &lt;package&gt;com.android.support:appcompat-v7:24.0.+&lt;/package&gt;
      &lt;package&gt;com.android.support:support-v4:26.1.+&lt;/package&gt;
      &lt;package&gt;com.google.android.gms:play-services-ads:15.0.1&lt;/package&gt;
      &lt;package&gt;com.google.games:gpgs-plugin-support:0.9.62&lt;/package&gt;
      &lt;package&gt;com.sglib.easymobile:easy-mobile:1.+&lt;/package&gt;
    &lt;/packages&gt;
    &lt;files&gt;
      &lt;file&gt;Assets/Plugins/Android/android.arch.core.common-1.0.0.jar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/android.arch.lifecycle.common-1.0.0.jar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/android.arch.lifecycle.runtime-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.annotation.annotation-1.0.0.jar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.arch.core.core-common-2.0.0.jar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.arch.core.core-runtime-2.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.asynclayoutinflater.asynclayoutinflater-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.browser.browser-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.collection.collection-1.0.0.jar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.coordinatorlayout.coordinatorlayout-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.core.core-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.cursoradapter.cursoradapter-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.customview.customview-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.documentfile.documentfile-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.drawerlayout.drawerlayout-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.fragment.fragment-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.interpolator.interpolator-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.legacy.legacy-support-core-ui-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.legacy.legacy-support-core-utils-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.lifecycle.lifecycle-common-2.0.0.jar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-2.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.lifecycle.lifecycle-livedata-core-2.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.lifecycle.lifecycle-runtime-2.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.lifecycle.lifecycle-viewmodel-2.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.loader.loader-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.localbroadcastmanager.localbroadcastmanager-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.print.print-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.slidingpanelayout.slidingpanelayout-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.swiperefreshlayout.swiperefreshlayout-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.versionedparcelable.versionedparcelable-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/androidx.viewpager.viewpager-1.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.animated-vector-drawable-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.appcompat-v7-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-annotations-26.1.0.jar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-compat-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-core-ui-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-core-utils-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-fragment-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-media-compat-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-v4-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.android.support.support-vector-drawable-26.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-ads-18.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-ads-base-18.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-ads-identifier-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-ads-lite-18.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-auth-16.0.1.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-auth-api-phone-16.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-auth-base-16.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-base-16.0.1.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-basement-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-drive-16.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-games-16.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-gass-18.1.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-measurement-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-measurement-base-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-measurement-impl-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-measurement-sdk-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-measurement-sdk-api-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-nearby-16.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-stats-17.0.0.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.android.gms.play-services-tasks-16.0.1.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.google.games.gpgs-plugin-support-0.9.62.aar&lt;/file&gt;
      &lt;file&gt;Assets/Plugins/Android/com.sglib.easymobile.easy-mobile-1.2.0.aar&lt;/file&gt;
    &lt;/files&gt;
  &lt;/dependencies&gt;
  </code></pre>