从github导入电报源代码时发生NDK错误 [英] NDK Error occured while importing telegram source code from github

查看:25
本文介绍了从github导入电报源代码时发生NDK错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从以下链接下载了 android 的电报开源代码 https://github.com/DrKLO/电报.导入项目时出现以下错误:

I downloaded telegram open source code for android from the following the link https://github.com/DrKLO/Telegram. While importing the project am getting the following errors:

  External Native Build Issues
  Build command failed.
  Error while executing process C:\Users\user\AppData\Local\Android\sdk\ndk 
  -bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Android.mk 
 NDK_APPLICATION_MK=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a 
 NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-14 
 NDK_OUT=C:/Users/user/AndroidStudioProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/armv7/release/obj 
 NDK_LIBS_OUT=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\build\intermediates\ndkBuild\armv7\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\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Android.mk:WebRtcAec: LOCAL_SRC_FILES points to a missing file    
Android NDK: Check that C:/Users/user/AndroidStudioProjects/Telegram-master/TMessagesProj/jni/./libtgvoip/external/libWebRtcAec_android_armeabi-v7a.a exists  or that its path is correct   
process_begin: CreateProcess(NULL, "", ...) failed.
Error:executing external native build for ndkBuild 
C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Android.mk
Build command failed.
Error while executing process C:\Users\user\AppData\Local\Android\sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null 
APP_BUILD_SCRIPT=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Android.mk 
NDK_APPLICATION_MK=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 
APP_PLATFORM=android-23 
NDK_OUT=C:/Users/user/AndroidStudioProjects/Telegram-master/TMessagesProj/build/intermediates/ndkBuild/x86_SDK23/debug/obj 
NDK_LIBS_OUT=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\build\intermediates\ndkBuild\x86_SDK23\debug\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\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Android.mk:WebRtcAec: LOCAL_SRC_FILES points to a missing file

我该如何解决这些问题?

How do I fix these?

推荐答案

你的错误原因是 libtgvoip 是一个子模块,你没有递归地克隆存储库,所以需要的库没有被检出.

The reason for your error is that the libtgvoip is a submodule and you did not clone the repository recursively so the required library has not been checked out.

要解决此问题,请转到克隆项目并运行的文件夹

To fix this go to the folder where you cloned the project and run

 git submodule update --init --recursive

这将检查所需的子模块

这篇关于从github导入电报源代码时发生NDK错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆