A problem occurred configuring project ':ios'

A problem occurred configuring project ‘:ios’.

Could not resolve all files for configuration ‘:ios:classpath’.
Could not find any version that matches org.multi-os-engine:moe-gradle:1.5.+.
Versions that do not match:
2.0.0-alpha-1
1.4.4
1.4.3
1.4.2
1.4.1
+ 26 more
Searched in the following locations:
Required by:
project :ios

Android Studio 4.1.1

Xcode 10.0

Multi-OS Plugin 1.4.9

Trying to setup the Calculator Project, newest from Github

[Update plugin version to 1.5.+]

Not sure where to get 1.5.+ version of the plugin?

Hope im not too much of a beginner. I am trying to get the Calculator sample to build.

I replaced this line in the build file: classpath ‘com.android.tools.build:gradle:1.4.3’ with

classpath group: ‘org.multi-os-engine.community’, name: ‘moe-gradle’, version: ‘1.7.1’

Now I get the following error:

A problem occurred evaluating project ‘:android’.
Plugin with id ‘com.android.application’ not found.

Thanks for the help.

1 Like

moe plugin should only be used in iOS module, not the android one.

Ok! I think I almost got it, I used the ios module for the Tic Tac Toe sample. Now getting: Task ‘wrapper’ not found in project ‘:ios’.

This error also occurs when using your samples with the code from the resource https://github.com/multi-os-engine/moe-samples-java

When I open a project in Idea I get an error:

A problem occurred configuring project ‘:ios’.

Could not resolve all files for configuration ‘:ios:classpath’.
Could not find any version that matches org.multi-os-engine:moe-gradle:1.5.+.
Versions that do not match:
2.0.0-alpha-1
1.4.4
1.4.3
1.4.2
1.4.1
+ 26 more
Searched in the following locations:
https://jcenter.bintray.com/org/multi-os-engine/moe-gradle/maven-metadata.xml
file:/C:/Users/prog/.m2/repository/org/multi-os-engine/moe-gradle/maven-metadata.xml
Required by:
project :ios

Possible solution:

I think the samples are heavily outdated and haven’t been updated for some time.

Please try updating the MOE gradle plugin to the latest community version:

1 Like

Now on iMac Java 8 or 15 + XCode

###########
5 actionable tasks: 1 executed, 4 up-to-date

ERROR LOG

###########

Retrolambda 2.0.2-SNAPSHOT
Bytecode version: 51 (Java 7)
Default methods: true
NatJ support: true
Input directory: /Users/admin/Desktop/TicTacToe/ios/build/moe/main/retro/input
Output directory: /Users/admin/Desktop/TicTacToe/ios/build/moe/main/retro/output
Classpath: /Users/admin/Desktop/TicTacToe/ios/build/moe/main/retro/input:/Users/admin/.moe-community/moe-sdk-1.7.2/sdk/moe-core.jar:/Users/admin/.moe-community/moe-sdk-1.7.2/tools/java8support.jar:/Users/admin/.moe-community/moe-sdk-1.7.2/sdk/moe-ios.jar
Error! Failed to transform some classes
java.lang.IllegalStateException: Cannot initialize dumper; unexpected JDK implementation. Please run Retrolambda using the Java agent (enable forking in the Maven plugin).
at net.orfjackal.retrolambda.lambdas.LambdaClassDumper.install(LambdaClassDumper.java:38)
at net.orfjackal.retrolambda.Retrolambda.run(Retrolambda.java:53)
at net.orfjackal.retrolambda.Main.main(Main.java:26)
Caused by: java.lang.NoSuchFieldException: modifiers
at java.base/java.lang.Class.getDeclaredField(Class.java:2569)
at net.orfjackal.retrolambda.lambdas.LambdaClassDumper.makeNonFinal(LambdaClassDumper.java:59)
at net.orfjackal.retrolambda.lambdas.LambdaClassDumper.install(LambdaClassDumper.java:32)
… 2 more

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:ios:moeMainRetrolambda’.

Task failed, you can find the log file here: /Users/admin/Desktop/TicTacToe/ios/build/moe/main/retro/Retrolambda.log

  • 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 853ms
Multi-OS Engine module build failed

Make sure you use java 8.

Nope. This error is just JavaSE 8.2.
See…


Examples on GitHub are still not working?