I adopted Get began with Kotlin Multiplatform Cellular step-by-step type 1. Arrange an Atmosphere to 2. Create your first cross-platform app. For iOS I opted for default frameworks as a substitute of the cocoa pod as this one is a Whats up world Venture.
Whereas operating the android utility I confronted some Emulator-related points which had been resolved by updating the storage dimension. However when I’m operating an iOS utility I face the difficulty that claims:
Command PhaseScriptExecution failed with a nonzero exit code
Full exception log:
FAILURE: Construct failed with an exception.
* What went improper:
An issue occurred configuring root venture 'POCKMHelloWorld'.
Couldn't resolve all information for configuration ':classpath'.
Couldn't resolve com.android.instruments.construct:gradle:7.4.2.
Required by:
venture : > com.android.utility:com.android.utility.gradle.plugin:7.4.2
venture : > com.android.library:com.android.library.gradle.plugin:7.4.2
> No matching variant of com.android.instruments.construct:gradle:7.4.2 was discovered. The buyer was configured to discover a runtime of a library appropriate with Java 8, packaged as a jar, and its dependencies declared externally, in addition to attribute 'org.gradle.plugin.api-version' with worth '7.5' however:
- Variant 'apiElements' functionality com.android.instruments.construct:gradle:7.4.2 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible as a result of this element declares an API of a element appropriate with Java 11 and the buyer wanted a runtime of a element appropriate with Java 8
- Different appropriate attribute:
- Would not say something about org.gradle.plugin.api-version (required '7.5')
- Variant 'javadocElements' functionality com.android.instruments.construct:gradle:7.4.2 declares a runtime of a element, and its dependencies declared externally:
- Incompatible as a result of this element declares documentation and the buyer wanted a library
- Different appropriate attributes:
- Would not say something about its goal Java model (required compatibility with Java 8)
- Would not say something about its components (required them packaged as a jar)
- Would not say something about org.gradle.plugin.api-version (required '7.5')
- Variant 'runtimeElements' functionality com.android.instruments.construct:gradle:7.4.2 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible as a result of this element declares a element appropriate with Java 11 and the buyer wanted a element appropriate with Java 8
- Different appropriate attribute:
- Would not say something about org.gradle.plugin.api-version (required '7.5')
- Variant 'sourcesElements' functionality com.android.instruments.construct:gradle:7.4.2 declares a runtime of a element, and its dependencies declared externally:
- Incompatible as a result of this element declares documentation and the buyer wanted a library
- Different appropriate attributes:
- Would not say something about its goal Java model (required compatibility with Java 8)
- Would not say something about its components (required them packaged as a jar)
- Would not say something about org.gradle.plugin.api-version (required '7.5')
* Strive:
> Run with --stacktrace choice to get the stack hint.
> Run with --info or --debug choice to get extra log output.
> Run with --scan to get full insights.
* Get extra assist at https://assist.gradle.org
BUILD FAILED in 8s
Command PhaseScriptExecution failed with a nonzero exit code
** BUILD FAILED **
The next construct instructions failed:
PhaseScriptExecution Run Script /Customers/arpit/Work/Arpit/KotlinMultiplateform/construct/ios/iosApp.construct/Debug-iphonesimulator/iosApp.construct/Script-7555FFB5242A651A00829871.sh (in goal 'iosApp' from venture 'iosApp')
(1 failure)
Configurations:
MacOS
Xcode Model 14.2 (14C18)
Android Studio Electrical Eel | 2022.1.1 Patch 2
What I’ve tried: