• Any suggestions how to use this with Kotlin? I get errors when Building (I guess I miss some deps)

  • Manuel Di Cerbo @manuel.dicerbo ·

    Hi

    First of all thanks @lortet for sharing this configuration. I too had issues getting my kotlin code to compile.

    While I am not sure this will fix it for you, it seemed to work as soon as I added

      - export PATH=$PATH:$PWD/android-sdk-linux/platform-tools/

    to the before_script section.

    Let me know if that fixes it for you.

    Thanks again and keep up the good work

    Manuel

  • Getting a "Job's log exceeded limit of 4194304 bytes." when running these lines, log was too long:

      - echo y | sdkmanager "platform-tools"
      - echo y | sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}"
      - echo y | sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}"
      - echo y | sdkmanager "extras;google;m2repository"
      - echo y | sdkmanager "extras;android;m2repository"
      - echo y | sdkmanager "extras;google;google_play_services"
      - echo y | sdkmanager --update

    Fixed with:

      - echo y | sdkmanager "platform-tools" > platform-tools.log
      - echo y | sdkmanager "platforms;android-${ANDROID_COMPILE_SDK}" > android-sdk.log
      - echo y | sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" > android-build-tools.log
      - echo y | sdkmanager "extras;google;m2repository" > google-repo.log
      - echo y | sdkmanager "extras;android;m2repository" > android-repo.log
      - echo y | sdkmanager "extras;google;google_play_services" > google-play-services.log
      - echo y | sdkmanager --update > update-sdk.log
    Edited by Muruthi Thuita
  • Now, among the 8 shared runners available, there is not one with the 'do' tag (system which supports KVM for the Android implementation test job). What can I do?

  • If anyone else has issues compiling Kotlin source and the solution @manuel.dicerbo proposed didn't work, try setting an absolute path for ANDROID_HOME. For example, this worked for me: ANDROID_HOME: "/android-tools-linux/".

    Thanks for the template @lortet!

  • Additionally, it would be super if anybody has any ideas on how to cache between jobs so we don't have to pull down and install the android sdk tools each time.

  • @sugarmanz As much as I'd like this too, I don't it's possible using shared runners - the get cleaned up after every run iirc.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment