[AC-6106] Building module with Android SDK using Kotlin
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Won't Fix |
Resolution Date | 2019-02-01T21:28:58.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Appcelerator Modules |
Labels | kotlin, module, sdk |
Reporter | Jose |
Assignee | Shak Hossain |
Created | 2019-01-15T16:08:54.000+0000 |
Updated | 2019-02-01T21:28:58.000+0000 |
Description
We have an Android SDK which is developed using kotlin.
Currently we are not able to build module using the SDK. Please suggest steps on how to build module using kotlin SDK.
Building process gets stuck during Dexter process.
Hello, Are you using Appcelerator studio to build your module? Please send the "appc ti setup check" log in here. Thanks.
Yes here the result: ──────────────────┤ Check Environment ├─────────────────── Node.js ✓ node installed (v8.9.1) ✓ npm installed (v5.5.1) Titanium CLI ★ cli new version v5.2.0 available (currently v5.1.1) Titanium CLI Dependencies ✓ acs up-to-date (v2.0.12) ✓ alloy up-to-date (v1.13.4) ✓ appc-cli-titanium up-to-date (v4.4.20) ✓ appc-inquirer up-to-date (v0.1.10) ✓ appc-logger up-to-date (v1.1.27) ✓ appc-platform-sdk up-to-date (v3.1.0) ✓ appcd up-to-date (v1.1.3) ✓ arrow up-to-date (v3.2.7) ✓ async up-to-date (v1.5.2) ✓ chalk up-to-date (v1.1.3) ✓ char-spinner up-to-date (v1.0.1) ✓ columnify up-to-date (v1.5.4) ✓ commander up-to-date (v2.9.0) ✓ debug up-to-date (v2.6.9) ✓ dtrace-provider up-to-date (v0.8.7) ✓ ejs up-to-date (v2.6.1) ✓ fields up-to-date (v0.1.24) ✓ fs-extra up-to-date (v0.26.7) ✓ inquirer up-to-date (v0.11.4) ✓ ip up-to-date (v1.1.5) ✓ jsonpath up-to-date (v1.0.0) ✓ jwt-simple up-to-date (v0.3.1) ✓ lodash up-to-date (v3.10.1) ✓ node-appc up-to-date (v0.2.48) ✓ node-forge up-to-date (v0.6.49) ✓ node-ios-device up-to-date (v1.6.3) ✓ npm-conf up-to-date (v1.1.3) ✓ pac-proxy-agent up-to-date (v2.0.2) ✓ plural up-to-date (v0.2.1) ✓ progress up-to-date (v1.1.8) ✓ recursive-readdir up-to-date (v2.2.2) ✓ request up-to-date (v2.88.0) ✓ retire up-to-date (v1.6.2) ✓ semver up-to-date (v5.5.0) ✓ tar up-to-date (v4.4.6) ✓ tiapp.xml up-to-date (v0.2.2) ✓ titanium up-to-date (v5.1.1) ✓ version-bump-prompt up-to-date (v3.1.2) ✓ which up-to-date (v1.3.1) ✓ wrench up-to-date (v1.5.9) Titanium SDK ✓ latest sdk installed (v7.5.1.v20181210141225) ! selected sdk latest Titanium SDK "v4.0.0.GA" is not the selected SDK (currently v7.5.0.GA) Mac OS X Environment ✓ CLI Tools installed iOS Environment ✓ Xcode installed (10.1) ✓ iOS SDK installed (12.1) ✓ WWDR cert installed ✓ developer cert installed (6 found) ✓ distribution cert installed (5 found) ✓ dev provisioning installed (5 found) ✓ dist provisioning installed (8 found) Android Environment ✓ sdk installed (/Users/rajeshmone/android) ✓ tools installed (v26.1.1) ✓ platform tools installed (v28.0.0) ✓ build tools installed (v27.0.2) ✓ adb installed /Users/rajeshmone/android/platform-tools/adb ✕ android "android" executable not found; please reinstall Android SDK ✓ emulator installed /Users/rajeshmone/android/emulator/emulator ✓ mksdcard installed /Users/rajeshmone/android/tools/mksdcard ✓ zipalign installed /Users/rajeshmone/android/build-tools/26.0.3/zipalign ✓ aapt installed /Users/rajeshmone/android/build-tools/26.0.3/aapt ✓ aidl installed /Users/rajeshmone/android/build-tools/26.0.3/aidl ✓ targets installed (7 found) ! avds no avds found ✓ ndk installed (11.2.2725575) ✓ ndk-build installed (/Volumes/HDD/Misc/Softwares/android-ndk-r11c/ndk-build) Java Development Kit ✓ jdk installed (v1.8.0) ✓ java installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/java ✓ javac installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/javac ✓ keytool installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/keytool ✓ jarsigner installed /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin/jarsigner Intel® Hardware Accelerated Execution Manager (HAXM) ✓ compatible ✓ installed Network ✓ online - no proxy server configured ✓ Network connection test ✓ Java-based connection test Directory Permissions ✓ home directory ✓ titanium config directory ✓ titanium sdk install directory ✓ temp directory ──────────────────────┤ Main Menu ├─────────────────────── 1) quick Quick Setup 2) check Check Environment 3) user User Information 4) app New App Defaults 5) network Network Settings 6) cli Titanium CLI Settings 7) sdk Titanium SDK Settings 8) ios iOS Settings 9) android Android Settings 10) exit Exit Where do you want to go?
Hi any update?
The Titanium SDK does not currently support "compiling" modules coded in Kotlin. Our build system is currently limited to Java 7 code. But you can include pre-compiled Kotlin JAR files as a "libs" dependency into your module instead.