gpt4 book ai didi

java - 构建命令失败

转载 作者:行者123 更新时间:2023-12-04 17:49:38 25 4
gpt4 key购买 nike

我使用 android studio preview beta 4 并从 https://github.com/DrKLO/Telegram 获取 Telegram 源代码当我打开项目时,它会生成并出现此错误:

Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-23 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/armv7_SDK23/debug/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\armv7_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: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/x86/release/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\x86\release\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/x86/foss/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\x86\foss\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/fat/debug/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\fat\debug\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/armv7/foss/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\armv7\foss\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-23 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/x86_SDK23/debug/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-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: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-23 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/armv7_SDK23/release/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\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: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-23 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/x86_SDK23/release/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\x86_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: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/fat/foss/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\fat\foss\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-23 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/armv7_SDK23/foss/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\armv7_SDK23\foss\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-23 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/x86_SDK23/foss/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\x86_SDK23\foss\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/x86/debug/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\x86\debug\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/armv7/release/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-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: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/armv7/debug/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\armv7\debug\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. Build command failed. Error while executing process C:\Users\M\AppData\Local\Android\Sdk\ndk-bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=C:/Users/M/Desktop/app source code/Telegram-FOSS-master/TMessagesProj/build/intermediates/ndkBuild/fat/release/obj NDK_LIBS_OUT=C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\build\intermediates\ndkBuild\fat\release\lib NDK_APPLICATION_MK:=jni/Application.mk APP_PLATFORM:=android-14 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n} Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj\jni\Android.mk
process_begin: CreateProcess(NULL, "", ...) failed. C:\Users\M\AppData\Local\Android\sdk\ndk-bundle\build\core\add-application.mk Error:(183, 0) * Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) Android NDK: Aborting... . Stop. Open File Error:(183, 0) * Android NDK: Aborting... . Stop. Open File Error:(183, 0) *** Android NDK: Aborting... . Stop. Open File

我使用最新的 NDK android-ndk-r16-beta1-windows-x86 。错误在 add-application.mk 的第 100 行,它是:

ifndef _build_script
$(call __ndk_info,Your APP_BUILD_SCRIPT points to an unknown file:
$(APP_BUILD_SCRIPT))
$(call __ndk_error,Aborting...)
endif

所以我使用的 add-application.mk 就在这个 URL 中: https://android.googlesource.com/platform/ndk/+/froyo/build/core/add-application.mk

最佳答案

你把项目放在 C:\Users\M\Desktop\app source code\Telegram-FOSS-master\TMessagesProj 里面有空格。这不适用于 NDK。将您的项目移动到没有空格的路径。

关于java - 构建命令失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46131038/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com