Archived Forum Post

Index of archived forum posts

Question:

I Can't run a Android example

Jan 05 '13 at 13:19

Dear...

I tried to run a Android example from a Chilkat web page (http://www.chilkatsoft.com/chilkatAndroid.asp) and I recieved a error message:

The method CkCgi_LastErrorHtml(long, CkCgi, long, CkString) is undefined for the type chilkatJNI CkCgi.java /SimpleActivity/src/com/chilkatsoft line 51 Java Problem

Whats wrong? How to fix?

Thanks in advance mBarbiero


Answer

The solution is to do this: after unzipping, delete the src/com/chilkatsoft/CkCgi.java file.

The problem arises because of importing "*", like this:

import com.chilkatsoft.*;

The CkCgi class was removed from the Android build because it never made sense to have it there in the first place. I have removed the "CkCgi.java" file from the "All Classes" Android download.


Answer

I resolved this problem download a Chilkat for Androidâ„¢ Java Library (Crypt-Only).