https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

Rohan Maity

06/05/2019, 11:39 AM
I have created KParser multiplatform lib. Locally it builds fine. But When I tried to configure for Travis CI, it's throwing the error for
SDK location not found . Setup sdk location by ANDROID_SDK_ROOT environment variable.
I did setup environment variable still no build . here the
travis.yml
Copy code
matrix:
  include:
    - language: java
      os: linux
      jdk: oraclejdk8
      script:
      - ./gradlew build
      env:
        global:
          ANDROID_SDK_ROOT=/usr/local/android-sdk
@gildor any help?
g

gildor

06/05/2019, 11:43 AM
apparently sdk is not installed on CI
Google it, there is about infinite number of guides how to configure Android build for Travis CI
r

Rohan Maity

06/05/2019, 11:44 AM
Its Multiplatform lib. What about java lib ?
g

gildor

06/05/2019, 11:44 AM
But you try to build app for android
you need Android compatible build config
so configure gradle for Android
any Android ready config can build pure java application
r

Rohan Maity

06/05/2019, 11:46 AM
ok so i will build for android.
Yeah android config worked thank you 😄