1

Titanium module is not an Android project, there is no Android Dependencies.

How can I add a jar which has to be added to Android Dependencies. I tries to add it to the Referenced Libraries but the sdk cannot be referenced.

Icarus
  • 1,335
  • 1
  • 11
  • 24

1 Answers1

0

You can move any *.jar files to android/lib directory and any binary *.so to android/libs directory. Libs will be include in the final module distribution.

farwayer
  • 3,872
  • 3
  • 21
  • 23
  • I have added it to the android/lib folder, but it cannot be referred. It will be added to Referenced library folder but not the Android Dependencies folder. – Icarus May 29 '15 at 03:03
  • http://docs.appcelerator.com/platform/latest/#!/guide/Android_Module_Project-section-43289002_AndroidModuleProject-ProjectStructure What does mean "but it cannot be referred"? Please provide build log with error. – farwayer May 30 '15 at 15:16
  • 1
    Thanks. When I added the jar to the android/lib, the class in the jar cannot be referred, no class found error. – Icarus May 31 '15 at 03:37