<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Android sdk failure in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Android-sdk-failure/m-p/61624#M36047</link>
    <description>&lt;P&gt;I try to integrate authorize android sdk with my mobile android application.&lt;BR /&gt;I have&lt;BR /&gt;compileSdkVersion 25&lt;BR /&gt;minSdkVersion 19 (when tested, I temporarily changed it to 21 but I got the same errors that with 19)&lt;BR /&gt;targetSdkVersion 25&lt;/P&gt;&lt;P&gt;I added in gradle:&lt;BR /&gt;compile 'net.authorize:anet-java-sdk:1.9.5'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and create class with test code which I took from your page:&lt;BR /&gt;//Common code to set for all requests&lt;BR /&gt;ApiOperationBase.setEnvironment(Environment.SANDBOX);&lt;BR /&gt;.........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tried to run application to check authorize.net.&lt;/P&gt;&lt;P&gt;First I get:&lt;BR /&gt;Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.&lt;BR /&gt;&amp;gt; More than one file was found with OS independent path 'META-INF/DEPENDENCIES'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, I added this to gradle:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;packagingOptions {&lt;BR /&gt;exclude 'META-INF/DEPENDENCIES'&lt;BR /&gt;exclude 'META-INF/LICENSE'&lt;BR /&gt;exclude 'META-INF/LICENSE.txt'&lt;BR /&gt;exclude 'META-INF/license.txt'&lt;BR /&gt;exclude 'META-INF/NOTICE'&lt;BR /&gt;exclude 'META-INF/NOTICE.txt'&lt;BR /&gt;exclude 'META-INF/notice.txt'&lt;BR /&gt;exclude 'META-INF/ASL2.0'&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The android app started and I launched test code with my login.&lt;BR /&gt;And when was executing this line of sample code:&lt;BR /&gt;controller.execute();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I got:&lt;BR /&gt;E/HttpUtility: Execution error for http post Message: 'java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/JAXBContext;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Later I tried to add some JAXB libraries but i got different other errors with JAXB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What to do?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2018 15:00:44 GMT</pubDate>
    <dc:creator>AlexeyS8</dc:creator>
    <dc:date>2018-02-12T15:00:44Z</dc:date>
    <item>
      <title>Android sdk failure</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Android-sdk-failure/m-p/61624#M36047</link>
      <description>&lt;P&gt;I try to integrate authorize android sdk with my mobile android application.&lt;BR /&gt;I have&lt;BR /&gt;compileSdkVersion 25&lt;BR /&gt;minSdkVersion 19 (when tested, I temporarily changed it to 21 but I got the same errors that with 19)&lt;BR /&gt;targetSdkVersion 25&lt;/P&gt;&lt;P&gt;I added in gradle:&lt;BR /&gt;compile 'net.authorize:anet-java-sdk:1.9.5'&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and create class with test code which I took from your page:&lt;BR /&gt;//Common code to set for all requests&lt;BR /&gt;ApiOperationBase.setEnvironment(Environment.SANDBOX);&lt;BR /&gt;.........&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tried to run application to check authorize.net.&lt;/P&gt;&lt;P&gt;First I get:&lt;BR /&gt;Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.&lt;BR /&gt;&amp;gt; More than one file was found with OS independent path 'META-INF/DEPENDENCIES'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, I added this to gradle:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;packagingOptions {&lt;BR /&gt;exclude 'META-INF/DEPENDENCIES'&lt;BR /&gt;exclude 'META-INF/LICENSE'&lt;BR /&gt;exclude 'META-INF/LICENSE.txt'&lt;BR /&gt;exclude 'META-INF/license.txt'&lt;BR /&gt;exclude 'META-INF/NOTICE'&lt;BR /&gt;exclude 'META-INF/NOTICE.txt'&lt;BR /&gt;exclude 'META-INF/notice.txt'&lt;BR /&gt;exclude 'META-INF/ASL2.0'&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;The android app started and I launched test code with my login.&lt;BR /&gt;And when was executing this line of sample code:&lt;BR /&gt;controller.execute();&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I got:&lt;BR /&gt;E/HttpUtility: Execution error for http post Message: 'java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/xml/bind/JAXBContext;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Later I tried to add some JAXB libraries but i got different other errors with JAXB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What to do?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2018 15:00:44 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Android-sdk-failure/m-p/61624#M36047</guid>
      <dc:creator>AlexeyS8</dc:creator>
      <dc:date>2018-02-12T15:00:44Z</dc:date>
    </item>
  </channel>
</rss>

