Search code examples
androidimportandroid-studiochilkat

How to import the Chilkat Android libs to Android Studio?


I am using using Android Studio 0.8.9 and I am trying to import Chilkat Android libs to my project by following the instructions given here. I have done all the imports and my project structure looks something like this.

but the statement

import com.chilkatsoft.*; 

gives the error

Error:(8, 1) error: package com.chilkatsoft does not exist

Can anyone help me to integrate the Chilkat Android libs and help me to create the first instance of CkXml class?

enter image description here


Solution

  • Seems like a subModule why dont you add its as a Module, you can add it in File->Import Module and select the folder under src. It will be added as a module, then go to project settings or project structure and in your main module click on the Dependencies tab and in the green Plus Icon you can add a submodule as Dependency, select that module and Rebuild if necesary this has to be enough.

    Otherwise if this dont work add the folder and be sure to hit Build->Rebuild Project so android studio recognize the new classes.

    Good Luck