JUCE6 - Demo GUI App crash on Android

On latest JUCE6: Created a new GUI app, didn’t change anything, added Android exporter, compiled successfully and the app crashes on startup.

Any ideas? Found this on the logs:

java.lang.RuntimeException: Unable to instantiate application com.rmsl.juce.JuceApp: java.lang.ClassNotFoundException: Didn’t find class “com.rmsl.juce.JuceApp” on path: DexPath

Did you use the JUCE 6 Projucer to create the project? If not, you’ll need to open the existing project in the JUCE 6 Projucer and re-save.

make sure

sourceSets {
    main.java.srcDirs +=
        ["../../../juce-6.0.8-linux/JUCE/modules/juce_core/native/javacore/init",
         "../../../juce-6.0.8-linux/JUCE/modules/juce_core/native/javacore/app",
         "../../../juce-6.0.8-linux/JUCE/modules/juce_gui_basics/native/javaopt/app"]

    main.res.srcDirs +=
        []
}

points to the correct location, otherwise the java files won’t be uploaded.

Could happen mostly if you move the juce folder from place to place. In my opinion the juce folder should be inserted into the project