Remove usage of this variable.
Please check: https://developer.android.com/studio/releases/gradle-plugin Build Tools 27.0.3 or higher. Keep in mind, you no longer need to specify a version for the build tools using the android.buildToolsVersion property—the plugin uses the minimum required version by default
Did you download the cocos2d-x 3.17.1 from the official website or GitHub, if GitHub, you must update submodule, and re-download the external deps libs.
Another point, please confirm you have executed setup.py again to update cocos command line Env path, if the path is wrong you will copy wrong files when cocos new.
also you should check your <cocos2d-x>/external/uv/prebuilt/android path, do it existed?
I noticed that 3.17 is no longer available anywhere to download. Please add it to https://cocos2d-x.org/download/version like all other previous releases are added to.
I am newly using cocos2d-x 3.17.1. This version always build with cmake, can’t build with ndk-build by changing PROP_BUILD_TYPE=ndk-build.
This line don’t any effect on cocos compile or run command. Please pay attention about that.
N.B I am using cmake 3.12.3, ndk r19b(also test with r16b but result is same), android studio 3.1.
Thanks in advance
Thanks for your reply.
Actually I can’t figure out the problem till now. But I think the value of PROP_BUILD_TYPE which is defined from gradle.properties changes from cocos2d library settings that is default cmake. The logic behind my assumption is when I change the variable name to any other except PROP_BUILD_TYPE like PROP_BUILD_TYPE_2 then everything is look good.
Finally I need to use ndk-build cause our existing projects using ndk-build where we maintain Android.mk file. That’s why we don’t want to change the build technology.