有错误到建立电报android源

时间:2019-05-31 12:38:38

标签: android android-ndk telegram

这是警告:

  

警告:以下项目选项已弃用并已删除:   android.useDeprecatedNdk   不再支持NdkCompile   受影响的模块:TMessagesProj

并在运行后出现此错误:

  

构建命令失败。   使用参数{NDK_PROJECT_PATH = null APP_BUILD_SCRIPT = H:\ Telegram-master \ Telegram-master \ TMessagesProj \ jni \ Android.mk NDK_APPLICATION_MK = H:\ Telegram执行进程H:\ sdk \ ndk-bundle \ ndk-build.cmd时出错-master \ Telegram-master \ TMessagesProj \ jni \ Application.mk APP_ABI = armeabi-v7a NDK_ALL_ABIS = armeabi-v7a NDK_DEBUG = 1 APP_PLATFORM = android-16 NDK_OUT = H:/ Telegram-master / Telegram-master / TMessagesProj / build / intermediates / ndkBuild / afat / debug / obj NDK_LIBS_OUT = H:\ Telegram-master \ Telegram-master \ TMessagesProj \ build \ intermediates \ ndkBuild \ afat \ debug \ lib NDK_APPLICATION_MK:= jni / Application.mk APP_PLATFORM:= android-16 -j8 APP_SHORT_COMMANDS = false LOCAL_SHORT_COMMANDS = false -B -n}

这:

  

process_begin:CreateProcess(NULL,“”,...)失败。   H:/ sdk / ndk-bundle / build //../ build / core / add-application.mk:178:*** Android NDK:不再支持APP_STL gnustl_static。请切换到c ++ _ static或c ++ _ shared。有关更多信息,请参见https://developer.android.com/ndk/guides/cpp-support.html。 。停止。

1 个答案:

答案 0 :(得分:1)

这可能是由您的本地 Decimal[] debit = { 1227472838000, 239613677000, 1280855526000, 235973794000, 916401761000, 778857860000, 613860937000, 323570932000, 1379077243000, 748734870000, 319293438000, 266363662000, 962885150000, 1386950860000, 24497296322000, 1497287074000, 371579620000 }; Decimal[] credit = { 1227452838000, 239613641000, 1235410585000, 235973795000, 916342194000, 778887860000, 613859937000, 323660931000, 1379080221000, 748734871000, 319293436000, 200648963000, 962885151000, 1430250860000, 16577296322000, 1446583769000, 371579628000 }; 配置引起的。

要解决此问题,我从gradle.properties删除了行android.useDeprecatedNdk