mac环境下cocos2d-x编译Android时出现的问题
2020-03-24 本文已影响0人
ablac
1、NDK环境变量,确保ndk路径没有问题(可能解压后还有个ndk版本号的路径,将这个路径下的文件直接复制到ndk下)
2、generateJsonModelDebug failed
按照官网 在Android Studio中,Build/Refresh Linked C++ Projects 后还是报错

brew install ninja
参考 https://blog.csdn.net/auccy/article/details/102897489
3、adb: error: failed to get feature set: no devices/emulators found
检查之后发现genimotion 设置里ADB路径不对,设置为本地sdk路径。
重新编译后还是报错
Performing Streamed Install adb: failed to install /projectPath/MyGame/bin/debug/android/MyGame-debug.apk: Failure [INSTALL_FAILED_NO_MATCHING_ABIS: Failed to extract native libraries, res=-113]
4、然后又出现了这个问题

待续