DEV Community

loading...

Using Android Studio to develop Titanium modules

Michael Gangolf
App developer (Appcelerator Titanium) | Web developer (PHP, JavaScript, CSS) | Open Source fan
Updated on ・1 min read

Since Appcelerator Titanium SDK 9 the build system uses gradle to compile apps and modules. This also allows you to open build/ folders in Android Studio (4.x).

When you develop an Android module you can even use auto-completion and other Android Studio features. In order to do this you will have to do the following:

  • create a new module with appc new (select Ti module and follow the steps)
  • go into the module_name/android/ folder and compile it once with appc ti build -p android --build-only
  • open the module_name/android/build/ with Android Studio
  • wait till everything is loaded
  • go to the top left corner and select project in the drop-down Alt Text
  • find your source files Alt Text

Open them, start working and enjoy the benefits of Android Studio!

Discussion (0)