Reputation: 125
I currently have an ionic app and everything works fine locally when I try to build, it generates the apk file fine.
But when I try to run it on my ci/cd to build the app and upload it, it fails. Here is the error I get:
FAILURE: Build failed with an exception.
* Where:
Script '/builds/haleoclinic/private/frontend-vue/node_modules/cordova.plugin.zoom/src/android/build-extras.gradle' line: 2
* What went wrong:
A problem occurred evaluating script.
> Plugin with id 'org.jetbrains.compose' not found.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 31s
This same code and build was working fine a week or two ago, but all of a sudden, I am getting this error. This is coming from a npm plugin I use and it has this has build-extras.gradle:
apply plugin: 'org.jetbrains.compose'
apply plugin: 'kotlin-android'
android {
compileSdk 35
buildToolsVersion '31'
defaultConfig {
minSdkVersion 31
targetSdkVersion 35
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
}
packagingOptions {
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
repositories {
google()
mavenCentral()
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
flatDir {
dirs 'libs/android'
}
}
dependencies {
implementation "androidx.security:security-crypto:1.1.0-alpha05"
implementation "com.google.crypto.tink:tink-android:1.7.0"
implementation "com.google.android.exoplayer:exoplayer-core:2.17.1"
implementation "com.google.android.exoplayer:exoplayer-ui:2.17.1"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation "androidx.appcompat:appcompat:1.6.1"
implementation "androidx.constraintlayout:constraintlayout:2.1.0"
implementation "com.google.android.material:material:1.11.0"
implementation "androidx.multidex:multidex:2.0.1"
implementation "com.google.code.gson:gson:2.11.0"
implementation "com.github.bumptech.glide:annotations:4.11.0"
implementation "com.github.bumptech.glide:glide:4.11.0"
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "com.airbnb.android:lottie:4.0.0"
implementation "androidx.window:window:1.1.0"
implementation "androidx.window:window-java:1.1.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.7.20"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2"
implementation "androidx.core:core-ktx:1.8.0"
implementation "androidx.core:core:1.13.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.6.2"
implementation "androidx.fragment:fragment-ktx:1.4.1"
implementation "com.davemorrissey.labs:subsampling-scale-image-view:3.10.0"
implementation "androidx.core:core-splashscreen:1.0.1"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:2.6.2"
implementation "io.reactivex.rxjava3:rxandroid:3.0.2"
implementation "androidx.compose.material3:material3:1.2.1"
implementation "androidx.compose.material3:material3-window-size-class:1.2.1"
implementation "androidx.compose.ui:ui-tooling-preview:1.6.0"
implementation "androidx.constraintlayout:constraintlayout-compose:1.0.1"
implementation "androidx.activity:activity-compose:1.6.1"
implementation "androidx.lifecycle:lifecycle-runtime-compose:2.6.2"
implementation "androidx.navigation:navigation-compose:2.7.7"
implementation "io.coil-kt:coil-compose:2.3.0"
implementation "androidx.webkit:webkit:1.9.0"
implementation "org.jetbrains:annotations:23.0.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.7.1"
implementation(name:'mobilertc', ext:'aar')
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
My understanding was that, because this file is there, it will dnowload all the necessary packages no?
I tried adding the id of the plugin but it didn't work.
I tried changing the build.gradle to try and include this and it woudn't work either.
I am at lost, I spent a day on this without any progress. This code that I have used to work, I am not sure what happend to it. I reset everything on the branch to how it was when it was last working and even then running hte pipeline returns this error.
Upvotes: 0
Views: 12