title: androidX jetifier - Is there a way to ignore jetifying a .JAR?
body: <p>Trying to update my app to <code>androidX</code> dependencies. Followed instructions <a href="https://developer.android.com/jetpack/androidx/migrate" rel="noreferrer">here</a>, and compilation failed.
  The error came from <code>JetifyTransform</code> task failing to process a certain .JAR dependency (FYI - <a href="https://developer.samsung.com/release-note/view.do?v=R000000009" rel="noreferrer">Samsungs Spass SDK</a>) :</p>
  
  <pre><code>FAILURE: Build failed with an exception.
  
  * What went wrong:
  Execution failed for task ':app:kaptGenerateStubsStandardNo_vendorDebugKotlin'.
  &gt; Could not resolve all artifacts for configuration ':app:standardNo_vendorDebugCompileClasspath'.
     &gt; Failed to transform file 'pass-v1.2.2.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
        &gt; Failed to transform '/Users/hanandann/StudioProjects/ArnakPaymentsAndroid/Payments/app/libs/pass-v1.2.2.jar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)
     &gt; Failed to transform file 'pass-v1.2.2.jar' to match attributes {artifactType=processed-jar} using transform JetifyTransform
        &gt; Failed to transform '/Users/hanandann/StudioProjects/ArnakPaymentsAndroid/Payments/app/libs/pass-v1.2.2.jar' using Jetifier. Reason: null. (Run with --stacktrace for more details.)
  </code></pre>
  
  <p>Trying to jetify with <code>jetifier-standalone</code> tool had similar results:</p>
  
  <pre><code>Hanans-MacBook-Pro:bin hanandann$ ./jetifier-standalone -i /Users/hanandann/StudioProjects/.../app/libs/pass-v1.2.2.jar -o /Users/hanandann/StudioProjects/.../app/libs/pass-v1.2.2jet.jar 
  Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 8
      at org.objectweb.asm.ClassReader.readFrameType(ClassReader.java:2313)
      at org.objectweb.asm.ClassReader.readFrame(ClassReader.java:2269)
      at org.objectweb.asm.ClassReader.readCode(ClassReader.java:1448)
      at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1126)
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:698)
      at org.objectweb.asm.ClassReader.accept(ClassReader.java:500)
      at com.android.tools.build.jetifier.processor.transform.bytecode.ByteCodeTransformer.runTransform(ByteCodeTransformer.kt:39)
      at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:443)
      at com.android.tools.build.jetifier.processor.archive.ArchiveFile.accept(ArchiveFile.kt:49)
      at com.android.tools.build.jetifier.processor.Processor.visit(Processor.kt:425)
      at com.android.tools.build.jetifier.processor.archive.Archive.accept(Archive.kt:76)
      at com.android.tools.build.jetifier.processor.Processor.transformLibrary(Processor.kt:421)
      at com.android.tools.build.jetifier.processor.Processor.transform(Processor.kt:247)
      at com.android.tools.build.jetifier.processor.Processor.transform$default(Processor.kt:234)
      at com.android.tools.build.jetifier.standalone.Main.run(Main.kt:157)
      at com.android.tools.build.jetifier.standalone.Main$Companion.main(Main.kt:109)
      at com.android.tools.build.jetifier.standalone.Main.main(Main.kt)
  </code></pre>
  
  <p>Now, I don't really mind if SDK's don't get jetified, so I tried setting <code>android.enableJetifier=false</code> in my <code>gradle.properties</code> file, but compilation failed again for a different reason- <code>SupportMapFragment</code> isn't compatible with androidX yet as is reported <a href="https://stackoverflow.com/a/51179606/4982218">here</a></p>
  
  <p>So I'm stuck. With jetify the .JAR won't transform. with it - SupportMapFarg is incompatible.</p>
  
  <p>Any suggestions?</p>
  
  <p>P.S. you know what would be nice? if there was an <code>ignore</code> option for the jetifying function </p>