<div dir="ltr"><p>If I add the opensaml to pom.xml for my Android app then it results in this error.</p>

<p>Ill-advised or mistaken usage of a core class (java.* or javax.*)</p>

<p>I know that potential reason for this error is some conflict with the
 core-library. One conflict is the xcerces so I added an exception for 
that</p>

<pre><code><span>   </span><span>&lt;dependency&gt;</span><span>
        </span><span>&lt;groupId&gt;</span><span>org.opensaml</span><span>&lt;/groupId&gt;</span><span>
        </span><span>&lt;artifactId&gt;</span><span>opensaml</span><span>&lt;/artifactId&gt;</span><span>
        </span><span>&lt;version&gt;</span><span>2.5.3</span><span>&lt;/version&gt;</span><span>
        </span><span>&lt;exclusions&gt;</span><span>
            </span><span>&lt;exclusion&gt;</span><span>
                </span><span>&lt;groupId&gt;</span><span>xerces</span><span>&lt;/groupId&gt;</span><span>
                </span><span>&lt;artifactId&gt;</span><span>xercesImpl</span><span>&lt;/artifactId&gt;</span><span>                    
            </span><span>&lt;/exclusion&gt;</span><span>
        </span><span>&lt;/exclusions&gt;</span><span>
    </span><span>&lt;/dependency&gt;</span></code></pre>

But still the same error is coming. Any suggestion?</div>