Chilkat Software Chilkat Software Chilkat Software
Chilkat Software Chilkat Software







Chilkat for Android™ Library Download and Install Instructions


(For Chilkat C/C++ Android native libs, click HERE.)

v9.5.0.72 01-Feb-2018MD5 Sum: dd90e50f4d5acfb3c0cdee0626f0eec6
Chilkat for Android™ Java Library

Getting Started

Download and Unzip to any directory.

To use Chilkat in an Android project, the Java classes and shared libraries should be copied into the project's directory structure.

Using Chilkat in an Android Studio Project

The Chilkat Android download ( has this directory structure.

The directories under libs (in the Chilkat download) will be copied to the jniLibs directory in the Android Studio project. (You'll likely need to create the jniLibs directory.) The chilkatsoft directory will be copied to the com directory in the Android Studio project.

Here is a snapshot of the sample Android Studio project showing the locations of the jniLibs and chilkatsoft directories.

Here is a snapshot of the Android Studio directory structure in Windows Explorer

Adding Chilkat Related Java Code to an Android Studio Source File

The Chilkat-related code is shown in boldface below. The Chilkat shared library must be loaded via System.loadLibrary when the application starts.

package com.test;

import com.chilkatsoft.*;

import android.widget.TextView;
import android.os.Bundle;

public class SimpleActivity extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        TextView tv = new TextView(this);
        CkCrypt2 crypt = new CkCrypt2();
        // Display the version of the CkCrypt2 class
    static {
        // IMPORTANT: If one of the Chilkat subset shared libs is used, the name
        // passed to loadLibrary must match the share lib name.  For example, if the
        // shared lib is, then pass "chilkatcrypt" to System.loadLibrary.

Using Chilkat for Android in an Eclipse Project

The procedure is the same for Eclipse, except the location and names of the directories are different. The Eclipse directory for the native libraries is libs instead of jniLibs

After copying the libs and Java sources to the correct locations, your Eclipse project should look like this:

Additional Notes

  • The Chilkat Android library supports Android Platform 2.0 (API Level 5) and above.
  • If the incorrect library name is passed to System.loadLibrary, then you will see the following error message at application startup: "The application <your-application-name> has stopped unexpectedly. Please try again."

Privacy Statement. Copyright 2000-2018 Chilkat Software, Inc. All rights reserved.

(Regarding the usage of the Android logo) Portions of this page are reproduced from work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

Send feedback to

Software components and libraries for Linux, MAC OS X, iOS, Android™, Solaris, RHEL/CentOS, FreeBSD, MinGW
Azure, Windows 10, Windows 8, Windows Server 2012, Windows 7, 2003 Server, 2008 Server, etc.