Neeloor Neeloor
Feb 22, 2018
11:03 am

Knox SDK complete mess

I have build the sample code and i am getting below error, the libs ( knoxsdk.jar supportlib.jar) given in the example code later than released version. I think it is copy past of engineer version. and it is not building whateve you do !

Error:(82, 62) error: cannot find symbol variable ERROR_NONE
Error:(90, 58) error: cannot find symbol variable ERROR_INTERNAL
Error:(93, 58) error: cannot find symbol variable ERROR_INTERNAL_SERVER
Error:(96, 58) error: cannot find symbol variable ERROR_INVALID_LICENSE
Error:(99, 58) error: cannot find symbol variable ERROR_INVALID_PACKAGE_NAME
Error:(102, 58) error: cannot find symbol variable ERROR_LICENSE_TERMINATED
Error:(105, 58) error: cannot find symbol variable ERROR_NETWORK_DISCONNECTED
Error:(108, 58) error: cannot find symbol variable ERROR_NETWORK_GENERAL

 

Now about license it is not clear ! do i need two license now ? . I think the Knox SDK release too premature and confusing, too many duplicate apis (eg hideStatusBar,  setStatusBarMode) no clarity. Also API search is impossible (When i search an API, the result window is too small and not showing relevant APIs )

Problems

1) No clarity in license and how to use with old/new/very old devices

2) I cannot include both libs in an app to support old and new devices, so many build conflict to resolve

3) Example codes is useless and not even building

4) Api search is impossible

5) Help provided in this forum is very minimum, also just give one answer and never answer follow-up questions

Samuel Goldwax
Feb 22, 2018
5:55 pm

Hi Neeloor,

I'm sorry to hear you're not happy with the new SDK release. I'll try to help solve these problems to the best of my ability.

The build errors you're running into too like they're actually an IDE issue. Normally invalidating the cache and running a clean build solves this problem. Also upon investigation it looks like the Getting Started app has not been changed to correctly use the new SKL license key. I'll make sure this is changed very soon.

As for how to use the license keys, all the information is available here, but I'll provide a quick summary:

  • If the device you're deploying to has Knox version 2.8 or above, you only need to activate the new SKL license key to use the Knox SDK
  • If the device you're deploying to has Knox version 2.7.1 or below, you need to activate both an SKL key and a backwards compatible key to use the Knox SDK
  • Both of these license keys are generated on the SEAP license key page, and the process is almost identical to generating ELM and KLM keys.

There is sample code available for using the Knox SDK on an older device here.

Thanks,
Sam