Cocos2d-x 3.15 wrong logic in Android gradle - causing critical bug

Yep, you are right. I think there is not need to have PROP_TARGET_SDK_VERSION. minSdkversion can be set in gradle and in Application.xml. I think it is ok just set it in these two files.