Titanium - Android module - Failed to compile Java Source files
<p>I am having an issue of Android module compilation.</p>

<p>I have created a module for some compression/decompression task and therefore I need to use Base64 Java class and hence adding the required package to import Base64.</p>

<pre><code>import com.sun.org.apache.xml.internal.security.exceptions.Base64DecodingException;
import com.sun.org.apache.xml.internal.security.utils.Base64;
</code></pre>

<p>If I remove these classes and comment their codes, then module builds successfully, and if I use these classes to support Base64 encoding/decoding then module is failed to build.</p>

<p>Does anyone know here the reason or solution?</p>

<p>Here are some last log lines from build_android.log file:</p>

<p><strong><em>"/Users/jalvin/Documents/Appcelerator_Studio_Workspace/gziplibrary/android/build/classes" "-target" "1.6" "-g" "-source" "1.6" "@/Users/jalvin/Documents/Appcelerator_Studio_Workspace/gziplibrary/android/java-sources.txt" "-processor" "org.appcelerator.kroll.annotations.generator.KrollJSONGenerator" "-s" "/Users/jalvin/Documents/Appcelerator_Studio_Workspace/gziplibrary/android/build/generated/json" "-Akroll.jsonFile=gziplibrary.json" "-Akroll.jsonPackage=org.appcelerator.titanium.bindings" "-Akroll.checkTiContext=true"
[ERROR]  Failed to compile Java source files:</em></strong></p>