【问题标题】:NativeScript sampleGroceries app does not compileNativeScript sampleGroceries 应用程序无法编译
【发布时间】:2016-06-11 19:43:14
【问题描述】:

我开始学习 nativescript 并尝试按照主站点上的指南进行操作。但是当我试图用tns run android --emulator 编译这个helloworld 应用程序时,我的shell 卡住了 Building 54% > :mergeF0DebugResources

这是完整的输出http://pastebin.com/djyzRZHk

有什么想法吗?

【问题讨论】:

  • 看来android sdk和tns平台不匹配。完全删除platforms/android 目录,确保您的android sdk 正确更新,然后重试。另外,尝试自己运行 aapt 看看是否有错误。

标签: android node.js nativescript


【解决方案1】:

日志说:

Exception in thread "png-cruncher_20" java.lang.RuntimeException: Timed out while waiting for slave aapt process, make sure the aapt execute at /home/kirill/Загрузки/android-sdk-linux/build-tools/23.0.2/aapt can run successfully (some anti-virus may block it) or try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds

提示是杀毒,也提示解决方法: 将环境变量 SLAVE_AAPT_TIMEOUT 设置为大于 5 秒的值

【讨论】:

    猜你喜欢
    • 2021-11-01
    • 1970-01-01
    • 2022-10-17
    • 2022-01-17
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多