Android Studio构建失败,因为没有此类文件或目录

时间:2018-10-30 13:04:22

标签: android-studio cocos2d-x ndk-build

我正在使用Android Studio构建Cocos2d-x项目,并遇到问题:

[armeabi-v7a] Compile++ thumb: cocos2d_lua_android_static <= Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.cpp
[armeabi-v7a] StaticLibrary  : libui.a
[armeabi-v7a] StaticLibrary  : libextension.a
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar: E:/SnowKnifeBranches/proj_001_20170509/proj_001_client_3.10/frameworks/runtime-src/proj.android-studio-yougu/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/cocos_extension_static/GUI/CCControlExtension/CCControlSaturationBrightnessPicker.o: No such file or directory
make: *** [E:/SnowKnifeBranches/proj_001_20170509/proj_001_client_3.10/frameworks/runtime-src/proj.android-studio-yougu/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libextension.a] Error 1
make: *** Waiting for unfinished jobs....
[armeabi-v7a] StaticLibrary  : libluacocos2dandroid.a
C:/Users/admin/AppData/Local/Android/Sdk/ndk-bundle/build//../toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar: E:/SnowKnifeBranches/proj_001_20170509/proj_001_client_3.10/frameworks/runtime-src/proj.android-studio-yougu/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/cocos2d_lua_android_static/__/manual/platform/android/jni/Java_org_cocos2dx_lib_Cocos2dxLuaJavaBridge.o: No such file or directory
make: *** [E:/SnowKnifeBranches/proj_001_20170509/proj_001_client_3.10/frameworks/runtime-src/proj.android-studio-yougu/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libluacocos2dandroid.a] Error 1
make: *** Deleting file `E:/SnowKnifeBranches/proj_001_20170509/proj_001_client_3.10/frameworks/runtime-src/proj.android-studio-yougu/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/libluacocos2dandroid.a'

但是,当我进入目录/e/SnowKnifeBranches/proj_001_20170509/proj_001_client_3.10/frameworks/runtime-src/proj.android-studio-yougu/app/build/intermediates/ndkBuild/debug/obj/local/armeabi-v7a/objs-debug/cocos_extension_static/GUI/CCControlExtension时,我发现CCControlSaturationBrightnessPicker.o文件正好在其中。

那我该如何解决这个问题?

0 个答案:

没有答案