0

我正在尝试从这里http://docs.nativescript.org/angular/tutorial/ng-chapter-1在 android 模拟器上启动 sample-Groceries 并收到以下消息“不幸的是,Groceries 已停止”

这是来自控制台的调试消息

I/DEBUG   ( 1142):     #12 pc 005c13b1  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::CompileIrregexp(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, bool)+673)
I/DEBUG   ( 1142):     #13 pc 005c1605  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpPrepare(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>)+165)
I/DEBUG   ( 1142):     #14 pc 005c1b23  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+51)
I/DEBUG   ( 1142):     #15 pc 005c1cd0  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::Exec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+144)
I/DEBUG   ( 1142):     #12 pc 005c13b1  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::CompileIrregexp(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, bool)+673)
I/DEBUG   ( 1142):     #13 pc 005c1605  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpPrepare(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>)+165)
I/DEBUG   ( 1142):     #14 pc 005c1b23  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+51)
I/DEBUG   ( 1142):     #15 pc 005c1cd0  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::Exec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+144)
I/DEBUG   ( 1142):     #12 pc 005c13b1  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::CompileIrregexp(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, bool)+673)
I/DEBUG   ( 1142):     #13 pc 005c1605  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpPrepare(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>)+165)
I/DEBUG   ( 1142):     #14 pc 005c1b23  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::IrregexpExec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+51)
I/DEBUG   ( 1142):     #15 pc 005c1cd0  /data/app/org.nativescript.groceries-1/lib/x86/libNativeScript.so (v8::internal::RegExpImpl::Exec(v8::internal::Handle<v8::internal::JSRegExp>, v8::internal::Handle<v8::internal::String>, int, v8::internal::Handle<v8::internal::JSArray>)+144)

我尝试使用 Genymotion 和原生 android 模拟器

Ubuntu 16.04 node.js 4.5.0 tns --version 2.2.1

4

1 回答 1

0

我查看了给定的场景,但是我无法在入门项目和新创建的项目中重现这样的问题。您能否按照以下附加步骤验证这是否有帮助。

  1. tns create sampleProject --ng

  2. 手动启动安卓模拟器

  3. tns prepare android

  4. tns run android

于 2016-08-19T06:20:00.387 回答