[1.5.2] Android Compilation not working - works fine with 1.3.2

Hi, @nantas @jyinkailej is there any issue with 1.5.2 Android compilation?
Whenever I try to compile my game, i got this error after a few minutes compiling:

native.log

    FAILURE: Build failed with an exception.

    * What went wrong:
    A problem occurred configuring project ':JewelsCollapse'.
    > NDK not configured. 
      Download it with SDK manager.) 

NDK it is configured because when I open the same project (with same compiling options) in the same computer with 1.3.2 I can build the game.

native.log
BUILD SUCCESSFUL

Total time: 38.187 secs
PREDEX CACHE HITS:   0
PREDEX CACHE MISSES: 5
Stopped 0 compiler daemon(s).

Anybody else is having issues building Android with 1.5.2?

search file local.properties in you project. Add new line ndk.dir=<path to folder ndk>

1 Like

So, It worked. But I have a few questions:

1-There are 2 local.properties in each project. Which one is the right one?
2-In case I have to build again, the file will be overwritten. And do I have to do this for every project? Why it is not taken the NDK properties from the configuration menu?

Thanks!

Since 1.5.0 we upgrade our build process to work with latest Android build tools and NDK version. You should open Android Studio/SDK Manager and upgrade NDK to 14+ and build tools to 25+, then configure the Cocos Creator sdk and ndk path to use the Android Studio SDK manager path.