Android prebuilt library! How solve?!

Open up the CMakeLists.txt file, and go through it. There are comments all over that file, and you’ll notice this:

# add cross-platforms source files and header files 
list(APPEND GAME_SOURCE
     Classes/AppDelegate.cpp
     Classes/HelloWorldScene.cpp
     )
list(APPEND GAME_HEADER
     Classes/AppDelegate.h
     Classes/HelloWorldScene.h
     )

If you’re not sure what to do with that, then you should read up on how CMake works. Also, it’s possible for you to grab all source files with a wildcard, but from what I recall, it is not recommended to use wildcards.

I have added all files. Any idea about this?

Unknown CMake command "cocos_build_app".

No, I’ve never come across that error before. Check that you are using Cocos2d-x 3.17, and that you haven’t made a typo in the CMakeLists.txt.

Read the output of CMake and see if it shows you any other errors, so it may not actually be the cocos_build_app that is the problem.

cocos_build_app exists in the cocos2d/cmake/Modules/CocosBuildHelpers.cmake file, so make sure that file exists, and open it and search for “cocos_build_app” to make sure it’s there.

Now work perfectly in android!
Thx Bro