您好我输入了Telegram的Github源代码。但是当我尝试构建apk时,我得到了两种类型的错误 - 首先是 - 外部原生构建问题,其中包含以下详细信息 -
Build command failed. Error while executing process C:\Users\The\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-23 NDK_OUT=C:/Users/The/Desktop/ProjectXYZ/Appcode1/TMessagesProj/build/intermediates/ndkBuild/armv7_SDK23/release/obj NDK_LIBS_OUT=C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\build\intermediates\ndkBuild\armv7_SDK23\release\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: ERROR:C:\Users\The\Desktop\ProjectXYZ\Appcode1\TMessagesProj\jni\Android.mk:WebRtcAec: LOCAL_SRC_FILES points to a missing file Android NDK: Check that C:/Users/The/Desktop/ProjectXYZ/Appcode1/TMessagesProj/jni/./libtgvoip/external/libWebRtcAec_android_armeabi-v7a.a exists or that its path is correct process_begin: CreateProcess(NULL, "", ...) failed.
第二个错误指向文件 - C:\ Users \ The \ AppData \ Local \ Android \ sdk \ ndk-bundle \ build \ core \ prebuilt-library.mk 其中包含此内容 - < / p>
Error:(44, 0) *** Android NDK: Aborting. Stop. Open File
预建的代码--library.mk文件 - https://gist.github.com/AmitSinghLive/39ecc66092cc23aa9d30abef3b013dfa
我正在使用最新的android工作室和源代码可以在这里找到 - https://github.com/DrKLO/Telegram
答案 0 :(得分:0)
1.缩短文件路径。 2.Build -> 刷新链接的 C++ 项目