Android: Import static/shared library

Could this please somehow be fixed?
Right now I need to add something along these lines in my CMakelists and build.gradle:

CMakeLists

add_library(“aws-cpp-sdk-core” SHARED IMPORTED)
set_target_properties(“aws-cpp-sdk-core” PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/…/…/…/Dependencies/aws/${ANDROID_ABI}/libaws-cpp-sdk-core.so)

CMakeLists

target_link_libraries( ${BINARY_NAME}
${log}
${android}
${glesv2}
${egl}
“cpufeatures”
“aws-cpp-sdk-core” ← here
“aws-cpp-sdk-sns” ← here
)

build.gradle (the aws dir contains subdirs for each ABI)

sourceSets {
main.jniLibs.srcDirs +=
[“…/…/…/Dependencies/aws”]
}

All these changes are overwritten each time I resave my projucer project.