我试图运行MyGame cocos的程序。错误 - 无法找到“libMyGame.so”
但是当我特林在Android Studio中运行它得到一个错误:
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/org.cocos2dx.SimpleGame-1/base.apk"],nativeLibraryDirectories=[/data/app/org.cocos2dx.SimpleGame-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libMyGame.so"
我读的地方,在Android工作室运行程序之前,我需要从运行游戏目录下的命令:
cocos compile -p android --android-studio
但后来我得到一个错误:
ANDROID_SDK_ROOT not defined. Please define it in your environment.
我需要什么怎么办? 谢谢。