简体   繁体   English

如何将Chilkat Android库导入Android Studio?

[英]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 . 我正在使用Android Studio 0.8.9并且按照此处给出的说明尝试将Chilkat Android libs导入到我的项目中。 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? 谁能帮助我集成Chilkat Android libs并帮助我创建CkXml类的第一个实例?

在此处输入图片说明

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. 似乎不像subModule,为什么不将其添加为模块,则可以在File->Import Module添加它,然后选择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. 它将作为模块添加,然后转到project settingsproject structure然后在主模块中单击“ Dependencies选项卡,并在绿色的加号图标中,您可以将子模块添加为“依赖关系”,选择该模块并在必要时重新构建。足够。

Otherwise if this dont work add the folder and be sure to hit Build->Rebuild Project so android studio recognize the new classes. 否则,如果这不起作用,请添加文件夹,并确保点击Build->Rebuild Project以便android studio识别新类。

Good Luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM