Key GNUSTL_STATIC is missing

Hi there,

I want to start development with AndroidStudio.
When opening the project from the Projucer, AndroidStudio shows me this error message after the first Build

For the NDK, I added ndkVersion ‘22.0.7026061’ in the “Extra module’s build.gradle content” but I have an error that persists

In this topic, I saw that we could add in the build.gradle

android.ndk {
        moduleName = "juce_jni"
        //toolchain = "clang"
        toolchain = "gcc"
        //stl = "c++_static"
        stl = "gnustl_static"

In my build.gradle, there is something that look like this

defaultConfig {
        applicationId "com.yourcompany.newproject"
        minSdkVersion    23
        targetSdkVersion 29
        externalNativeBuild {
            cmake {
                arguments "-DANDROID_TOOLCHAIN=gcc",
                        "-DANDROID_PLATFORM=android-23",
                        "-DANDROID_STL=gnustl_static", 
                        "-DANDROID_CPP_FEATURES=exceptions rtti",
                        "-DANDROID_ARM_MODE=arm",
                        "-DANDROID_ARM_NEON=TRUE",
                        "-DCMAKE_CXX_STANDARD=14",
                        "-DCMAKE_CXX_EXTENSIONS=OFF"
            }
        }
    }

How can i fix this error?

Thank you :slight_smile:

Also I don’t have a module to Run/Debug the project

What do I have to do to add a module?

I’m not sure what’s going on there sorry. Can you open the DemoRunner Android Studio project in examples/DemoRunner/Builds/Android/?

1 Like

It’s perfect !
By opening the demo runner, missing modules have been downloaded and now everything works!
Thank you !