Problem when running Android with Multi-OS Engine

Sorry, I’m
new in the forum, so maybe I don’t do things correctly. My problem is the
following:

I have just
installed Multi-OS Engine and now, when I run Android, it always appears this
warning: Path to Multi-OS Engine SDK unset or invalid. If
not specified set INTEL_MULTI_OS_ENGINE_HOME system environment variable.

I have seen
the paths and I think they are correct. What may be the problem?:

ANDROID_HOME
= C:\Users\USUARIO\AppData\Local\Android\sdk

JAVA_HOME =
C:\Program Files\Java\jdk1.8.0_77

INTEL_MULTI_OS_ENGINE_HOME
= C:\Intel\multi_os_engine\

Thanks

Dear Francisco,

it looks like you are using an old version of the Multi-OS Engine.

You should upgrade to MOE 1.1.x by first uninstalling the old version and then installing the new version. The instructions are in the documentation.

Please let us know, if you are running into any issues.

Best Regards,
Gergely

Thanks, I thought it could be that the problem but I don’t know where to download the new version 1.1.x from. All the links direct me to GitHub where the zip I download doesn’t have an exe file to run. Could you tell me another link?
Thank you, Gergely.

Which links are you following? I gave you a link in the previous post, and there is a big Get Started link on the website as well.

FYI: you no longer need to download the SDK, just install the IDE plugins and the SDK will be downloaded by Gradle. But first you have to uninstall the old version, see the documentation I linked.

Dear Francisco,

Also the old projects need to be migrated to the new plugins.

In your MOE module’s build.gradle file change the buildscript phase to the following:

buildscript {
    // Add central and local Maven repos
    repositories {
        jcenter()
        mavenLocal()
    }
    dependencies {
        // MOE plugin
        classpath group: 'org.multi-os-engine', name: 'moe-gradle', version: '1.1.+'
    }
}

Also, in your source files, you need to change the com.intel.moe packages to org.moe.

Dear Gergely, I’m sorry but in the links you sent me first I could only see updated samples, not the MOE program. And the same in the Get Started link on the website. Can you send me another one to download not the SDK but the MOE 1.1.x?
Thanks.

Starting with MOE 1.1.x, you no longer need to download MOE itself. You just install the plugins into Android Studio, and then you can either create a new project from AS, or import an existing project, e.g. a sample.

When you import the project, Gradle will download the necessary files automatically. No manual installation necessary, except for the Android Studio plugins, as shown on the Get Started page.

At last I got it thanks to you, Gergely! Now, the only thing I don’t understand, if this is necessary, is:
Clone the samples repository from GitHub
** git clone https://github.com/multi-os-engine/moe-samples-java**
I hope to take advantage of Multi-OS Engine. Thanks.