编译过程中的杂货示例app(' end' branch)错误

时间:2016-06-08 07:22:33

标签: android mobile nativescript

我正在努力开始使用NS,并希望看到最终的Groceries应用程序在Windows 10上的本地android模拟器中工作。但是,在尝试执行tns运行android后,我在命令窗口中获得以下内容 - 仿真器:

:processF0F1DebugResources
C:\Projects\fixxly\platforms\android\build\intermediates\res\merged\F0F1\debug\v
alues-v21\values-v21.xml:216 : AAPT: Error retrieving parent for item: No resour
ce found that matches the given name 'NativeScriptToolbarStyleBase'.

:processF0F1DebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processF0F1DebugResources'.
> com.android.ide.common.process.ProcessException:     org.gradle.process.internal.E
xecException: Process 'command 'C:\Users\Dboude\AppData\Local\Android\android-sd
k\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1

为了尝试让NS快乐,我执行了以下例程:

  1. 通过控制面板卸载我的JDK,通过Android Manager卸载Android SDK,卸载NS;走回NS'开始'教程并允许NS安装JDK和android
  2. 我用Google搜索了一下,无法确定真正的核心问题。如果有人对尝试什么有任何暗示,我会全力以赴!

    感谢。

1 个答案:

答案 0 :(得分:1)

我认为您的问题与此enter link description here

有关

但是,要解决此问题,请尝试以下步骤:

  • 升级到最新的NativeScript版本

    npm install nativescript -g

  • 样本中的
  • - Groiceries根文件夹删除 node_modules 平台

    rm -rf platforms / node_modules

  • 运行以下

    安装

  • 添加所需的平台

    tns平台添加android

  • 添加最新模块

    tns插件删除tns-core-mudules

    tns插件添加tns-core-modules @ latest

  • 重建您的应用

    运行android

基本上,这将清理您的项目形式的预先版本,并将安装最新的模块