Build android fail with cocos2d-x js in the newest android studio?

I am trying to build cocos2d-x js version 3.17.2 with the newest Android Studio. I have installed all of the compatible versions of ndk (19.2) and cmake (3.6). So far I can compile by using Android Studio to open the proj.android (not through cocos compile command, I don’t know whether it is the root cause or not). After running on my physical device, all I can see is a black screen whose problem stems from the asset folder is not created. How can I fix this error and what is the right way to build apk from cocos2d-x js version 3.17?