I try to upgrade my application from JUCE 4.02 to JUCE 4.1. After getting all the latest files from GitHub, my application was able to build and work well in Mac, Window, iOS device. When I try to build for Android using command line "ant", I got the following compile error.
Is there something I missed that I need to do when upgrading to 4.1?
-pre-build:
[exec] [armeabi] Compile++ thumb: juce_jni <= juce_core.cpp
[exec] [armeabi] Compile++ thumb: juce_jni <= juce_graphics.cpp
[exec] [armeabi] Compile++ thumb: juce_jni <= juce_gui_basics.cpp
[exec] [armeabi] Compile++ thumb: juce_jni <= juce_gui_extra.cpp
[exec] In file included from jni/../../../JuceLibraryCode/modules/juce_core/juce_core.cpp:232:0:
[exec] jni/../../../JuceLibraryCode/modules/juce_core/native/juce_android_RuntimePermissions.cpp: In function 'void juce::{anonymous}::handleAndroidCallback(bool, juce::RuntimePermissions::Callback*)':
[exec] jni/../../../JuceLibraryCode/modules/juce_core/native/juce_android_RuntimePermissions.cpp:40:9: error: 'unique_ptr' is not a member of 'std'
[exec] std::unique_ptr<RuntimePermissions::Callback> uptr (callbackPtr);
[exec] ^
[exec] jni/../../../JuceLibraryCode/modules/juce_core/native/juce_android_RuntimePermissions.cpp:40:53: error: expected primary-expression before '>' token
[exec] std::unique_ptr<RuntimePermissions::Callback> uptr (callbackPtr);
[exec] ^
[exec] jni/../../../JuceLibraryCode/modules/juce_core/native/juce_android_RuntimePermissions.cpp:40:72: error: 'uptr' was not declared in this scope
[exec] std::unique_ptr<RuntimePermissions::Callback> uptr (callbackPtr);
[exec] ^
[exec] make: *** [obj/local/armeabi/objs-debug/juce_jni/__/__/__/JuceLibraryCode/modules/juce_core/juce_core.o] Error 1
[exec] make: *** Waiting for unfinished jobs....
BUILD FAILED
/Users/eddie/Data/XilicaSoftware/SolaroControl/Builds/Android/build.xml:23: exec returned: 2