Hello everyone, has any of you encountered this is...
# multiplatform
r
Hello everyone, has any of you encountered this issue for iOS project on CI? My issue is like this, Gradle execution failed on CI for iOS project, which Android’s SDK doesn’t exist, as the CI image is for iOS build only.
Copy code
* What went wrong:
A problem occurred configuring project ':ninegag-shared-lib'.
> Could not create task ':ninegag-shared-lib:lint'.
   > SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/distiller/project/under9-shared-kmm/local.properties'
Is it possible to bypass this
:lint
task creation? And also there is an interesting part,
./gradlew
execution failed with above error for the first run, where it tries to download Gradle wrapper. Once the
~/.gradle
cache is created, if I call
./gradlew
again, it success without the above error. It only happens when
gradlew
is being downloaded for the first time.
My current workaround on CI is that 1. Added a step to call
./gradlew
, let it fail silently 2. Build my iOS project
I am using Kotlin 1.6.10 & gradle 7.3.2