我正在努力开始使用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快乐,我执行了以下例程:
我用Google搜索了一下,无法确定真正的核心问题。如果有人对尝试什么有任何暗示,我会全力以赴!
感谢。
答案 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
基本上,这将清理您的项目形式的预先版本,并将安装最新的模块