1

PushPlugin がインストールされた phonegap アプリケーションを実行しようとしています。次のコマンドでプラグインを追加します。

$ phonegap local plugin add https://github.com/phonegap-build/PushPlugin

そしてそれはうまくいきました。PushNotification.js ファイルを「www」フォルダーに追加し、index.html で参照しました。次に、通知を処理するコードを index.js ファイルに追加しました。私はアプリケーションを実行しようとしました:

$ phonegap local run android

そしてこれを得ました:

-compile:
[javac] Compiling 8 source files to /Users/nadavelyashiv/Code/PushNotificationSample/platforms/android/bin/classes
[javac] /Users/nadavelyashiv/Code/PushNotificationSample/platforms/android/src/com/plugin/gcm/GCMIntentService.java:96: cannot find symbol
[javac] symbol  : method getString(java.lang.String)
[javac] location: class com.plugin.gcm.GCMIntentService
[javac]                 .setTicker(getString("title"))
[javac]                            ^
[javac] /Users/nadavelyashiv/Code/PushNotificationSample/platforms/android/src/com/plugin/gcm/GCMIntentService.java:95: cannot find symbol
[javac] symbol  : method getString(java.lang.String)
[javac] location: class com.plugin.gcm.GCMIntentService
[javac]                 .setContentTitle(getString("title"))
[javac]                                  ^
[javac] 2 errors
BUILD FAILED
/usr/local/Cellar/android-sdk/r22.0.4/tools/ant/build.xml:720: The following error occurred while executing this line:
/usr/local/Cellar/android-sdk/r22.0.4/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

ここで何が問題になっているようですか?ありがとうございました。

4

1 に答える 1