2016-09-07 26 views
0

サンプルのGroceriesチュートリアルを実行しようとしていますが、すべてがiOSプラットフォームで正常に機能しますが、試してみるとCannot read property 'targetNum' of undefinedというエラーメッセージが表示されます。未定義のプロパティ 'targetNum'を読み取ることができません

私は./gradlew buildapk --debugをすれば、私はエラーでこれらの行を取得:

23:35:07.082 [LIFECYCLE] [class org.gradle.TaskExecutionLogger] :processDebugResources FAILED 
23:35:07.083 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] :processDebugResources (Thread[main,5,main]) completed. Took 0.45 secs. 
23:35:07.083 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker [Thread[main,5,main]] finished, busy: 1.491 secs, idle: 0.011 secs 
23:35:07.089 [ERROR] [org.gradle.BuildExceptionReporter] 
23:35:07.090 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception. 
23:35:07.090 [ERROR] [org.gradle.BuildExceptionReporter] 
23:35:07.090 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: 
23:35:07.090 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':processDebugResources'. 
23:35:07.090 [ERROR] [org.gradle.BuildExceptionReporter] > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/local/opt/android-sdk/build-tools/23.0.3/aapt'' finished with non-zero exit value 1 
23:35:07.091 [ERROR] [org.gradle.BuildExceptionReporter] 
23:35:07.091 [ERROR] [org.gradle.BuildExceptionReporter] * Try: 
23:35:07.091 [ERROR] [org.gradle.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 
23:35:07.092 [LIFECYCLE] [org.gradle.BuildResultLogger] 
23:35:07.092 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED 

は、私はすでにtns doctorを実行し、ANDROID_HOME変数を検証しました。また、最新のコアモジュールにアップグレードし、いくつかのcocoapodsバージョンで試してみました。なぜなら、tns doctorは悪いCocoaPodsインストールについての警告を私に送ってきたからです。

編集:解決策を見つけるための@dennisありがとうございました。それはありますが、私はその大きな水色の警告ボックスを逃した:

enter image description here

答えて

1

は、あなたは、Android仮想デバイス(AVD)を設定することがありますか?接続するAndroidエミュレータがないため、このエラーが発生する可能性があります。 AVDが設定されていない新鮮なレポでエラーを再現することができましたが、tns run android --emulatorをスムーズに処理した後に再設定できました。

あなたはAVDのセットアップを持っていない場合、あなたは立ち上がって実行するには、Android Studioおよびこのガイドを使用することができます。https://developer.android.com/studio/run/managing-avds.html

+0

は非常に多くのデニスありがとうございました。私は彼らのチュートリアルでこれを含めないことについてTelerikのドキュメントを非難するつもりでしたが、その後私は二重チェックし、そこに明るい青色の大きな警告があることに気付きました。 – zJorge

+0

@zJorgeあなたがそれを整理してうれしい! –

関連する問題