如何在意外删除后恢复预建文件?

时间:2015-08-12 02:12:39

标签: android c++ android-ndk cocos2d-x

我跑了命令:

$ git clean -fd
  

删除cocos2d / cocos / platform / android / java / gen /   删除cocos2d / cocos / platform / android / java / libs /   删除cocos2d / cocos / platform / android / java / local.properties   删除cocos2d / cocos / platform / android / java / res /   删除cocos2d / external / chipmunk / prebuilt / android / armeabi-v7a /   删除cocos2d / external / chipmunk / prebuilt / android / armeabi /   删除cocos2d / external / chipmunk / prebuilt / android / x86 /   删除cocos2d / external / chipmunk / prebuilt / ios /   删除cocos2d / external / chipmunk / prebuilt / linux /   删除cocos2d / external / chipmunk / prebuilt / mac /   删除cocos2d / external / chipmunk / prebuilt / win10 /   删除cocos2d / external / chipmunk / prebuilt / win32 /   删除cocos2d / external / chipmunk / prebuilt / winrt_8.1 /   删除cocos2d / external / chipmunk / prebuilt / wp_8.1 /   删除cocos2d / external / curl / prebuilt / android / armeabi-v7a /   删除cocos2d / external / curl / prebuilt / android / armeabi /   删除cocos2d / external / curl / prebuilt / android / x86 /   删除cocos2d / external / curl / prebuilt / ios /   删除cocos2d / external / curl / prebuilt / mac /   删除cocos2d / external / curl / prebuilt / win32 /   删除cocos2d / external / curl / prebuilt / winrt_8.1 /   删除cocos2d / external / curl / prebuilt / wp_8.1 /   删除cocos2d / external / freetype2 / prebuilt / android / armeabi-v7a /   删除cocos2d / external / freetype2 / prebuilt / android / armeabi /   删除cocos2d / external / freetype2 / prebuilt / android / x86 /   删除cocos2d / external / freetype2 / prebuilt / ios /   删除cocos2d / external / freetype2 / prebuilt / linux /   删除cocos2d / external / freetype2 / prebuilt / mac /   删除cocos2d / external / freetype2 / prebuilt / win10 /   删除cocos2d / external / freetype2 / prebuilt / win32 /   删除cocos2d / external / freetype2 / prebuilt / winrt_8.1 /   删除cocos2d / external / freetype2 / prebuilt / wp_8.1 /   删除cocos2d / external / glfw3 / prebuilt /   删除cocos2d / external / jpeg / prebuilt / android / armeabi-v7a /   删除cocos2d / external / jpeg / prebuilt / android / armeabi /   删除cocos2d / external / jpeg / prebuilt / android / x86 /   删除cocos2d / external / jpeg / prebuilt / ios /   删除cocos2d / external / jpeg / prebuilt / linux /   删除cocos2d / external / jpeg / prebuilt / mac /   删除cocos2d / external / jpeg / prebuilt / win32 /   删除cocos2d / external / linux-specific / fmod / prebuilt /   删除cocos2d / external / png / prebuilt / android / armeabi-v7a /   删除cocos2d / external / png / prebuilt / android / armeabi /   删除cocos2d / external / png / prebuilt / android / x86 /   删除cocos2d / external / png / prebuilt / ios /   删除cocos2d / external / png / prebuilt / mac /   删除cocos2d / external / png / prebuilt / win32 /   删除cocos2d / external / sqlite3 / libraries /   删除cocos2d / external / tiff / prebuilt / android / armeabi-v7a /   删除cocos2d / external / tiff / prebuilt / android / armeabi /   删除cocos2d / external / tiff / prebuilt / android / x86 /   删除cocos2d / external / tiff / prebuilt / ios /   删除cocos2d / external / tiff / prebuilt / linux /   删除cocos2d / external / tiff / prebuilt / mac /   删除cocos2d / external / tiff / prebuilt / win32 /   删除cocos2d / external / webp / prebuilt / android / armeabi-v7a /   删除cocos2d / external / webp / prebuilt / android / armeabi /   删除cocos2d / external / webp / prebuilt / android / x86 /   删除cocos2d / external / webp / prebuilt / ios /   删除cocos2d / external / webp / prebuilt / linux /   删除cocos2d / external / webp / prebuilt / mac /   删除cocos2d / external / webp / prebuilt / win32 /   删除cocos2d / external / websockets / prebuilt / android / armeabi-v7a /   删除cocos2d / external / websockets / prebuilt / android / armeabi /   删除cocos2d / external / websockets / prebuilt / android / x86 /   删除cocos2d / external / websockets / prebuilt / ios /   删除cocos2d / external / websockets / prebuilt / linux /   删除cocos2d / external / websockets / prebuilt / mac /   删除cocos2d / external / websockets / prebuilt / win10 /   删除cocos2d / external / websockets / prebuilt / win32 /   删除cocos2d / external / websockets / prebuilt / winrt_8.1 /   删除cocos2d / external / websockets / prebuilt / wp_8.1 /   删除cocos2d / external / win10-specific / OggDecoder / prebuilt /   删除cocos2d / external / win10-specific / angle / prebuilt /   删除cocos2d / external / win10-specific / zlib / prebuilt /   删除cocos2d / external / win32-specific / MP3Decoder / prebuilt /   删除cocos2d / external / win32-specific / OggDecoder / prebuilt /   删除cocos2d / external / win32-specific / OpenalSoft / prebuilt /   删除cocos2d / external / win32-specific / gles / prebuilt /   删除cocos2d / external / win32-specific / icon / prebuilt /   删除cocos2d / external / win32-specific / zlib / prebuilt /   删除cocos2d / external / winrt-specific / angle / prebuilt /   删除cocos2d / external / winrt-specific / zlib / prebuilt /   删除cocos2d / external / winrt_8.1-specific / OggDecoder / prebuilt /   删除cocos2d / external / winrt_8.1-specific / angle / prebuilt /   删除cocos2d / external / winrt_8.1-specific / zlib / prebuilt /   删除cocos2d / external / wp_8.1-specific / OggDecoder / prebuilt /   删除cocos2d / external / wp_8.1-specific / angle / prebuilt /   删除cocos2d / external / wp_8.1-specific / zlib / prebuilt /   删除cocos2d / external / zlib / prebuilt / android / armeabi-v7a /   删除cocos2d / external / zlib / prebuilt / android / armeabi /   删除cocos2d / external / zlib / prebuilt / android / x86 /   删除cocos2d / external / zlib / prebuilt / mac /   删除cocos2d / plugin / plugins / qh360 / proj.android / CLibs /   删除proj.android/assets/   删除proj.android/gen/   删除proj.android/libs /

现在我跑的时候:

  

cocos run -p android

编译失败,错误:

  

Android NDK:错误:/Users/power/Documents/Projects/spacegame/proj.android /../ cocos2d / external / freetype2 / prebuilt / android / Android.mk:cocos_freetype2_static:LOCAL_SRC_FILES指向丢失的文件
  Android NDK:检查/Users/power/Documents/Projects/spacegame/proj.android/../cocos2d/external/freetype2/prebuilt/android/armeabi/libfreetype.a是否存在或其路径是否正确
  make:输入目录/Users/power/Documents/Projects/spacegame/proj.android' /Applications/android-ndk-r10c/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting . Stop. make: Leaving directory / Users / power / Documents / Projects / spacegame / proj.android'   运行命令时出错,返回码:2。

我该如何解决这个问题?我以前做过git clean,但我没有遇到这个问题。

1 个答案:

答案 0 :(得分:1)

我刚用cocos new创建了一个新项目,并复制了丢失的目录。似乎工作。