Matthew Nogas
08/26/2023, 10:16 PMCommand PhaseScriptExecution failed with a nonzero exit code
Android app is building successfullyMatthew Nogas
08/26/2023, 10:23 PMPhaseScriptExecution [CP-User]\ Build\ shared /Users/<redacted>/StudioProjects/KaMPKit/build/ios/Pods.build/Debug-iphonesimulator/shared.build/Script-46EB2E00000380.sh (in target 'shared' from project 'Pods')
kpgalligan
08/26/2023, 10:26 PMMatthew Nogas
08/27/2023, 1:58 PM./gradlew build
:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'KaMPKit'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve app.cash.sqldelight:gradle-plugin:2.0.0-rc01.
Required by:
project : > app.cash.sqldelight:app.cash.sqldelight.gradle.plugin:2.0.0-rc01
> No matching variant of app.cash.sqldelight:gradle-plugin:2.0.0-rc01 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.6' but:
- Variant 'apiElements' capability app.cash.sqldelight:gradle-plugin:2.0.0-rc01 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
- Variant 'runtimeElements' capability app.cash.sqldelight:gradle-plugin:2.0.0-rc01 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
> Could not resolve com.android.tools.build:gradle:7.4.2.
Required by:
project : > com.android.library:com.android.library.gradle.plugin:7.4.2
> No matching variant of com.android.tools.build:gradle:7.4.2 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.6' but:
- Variant 'apiElements' capability com.android.tools.build:gradle:7.4.2 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
- Variant 'javadocElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
- Variant 'runtimeElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
- Variant 'sourcesElements' capability com.android.tools.build:gradle:7.4.2 declares a runtime of a component, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')
Matthew Nogas
08/27/2023, 1:59 PMkpgalligan
08/27/2023, 2:18 PMMatthew Nogas
08/27/2023, 3:20 PM./gradlew build
still fails (error attached). Builds are launching successfully on Simulator/Emulator though. I did need to switch iOS version from 13.2 to 14 since StateObject
has min version 14kpgalligan
08/29/2023, 9:08 PMkpgalligan
08/30/2023, 3:02 PM