2013-10-05 103 views
1

我正在嘗試運行帶有PushPlugin的phonegap應用程序。 我阿迪插件使用此命令:帶PushPlugin編譯失敗的Phonegap Android

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

,並通過OK去了。 我將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. 

什麼,似乎這裏是什麼問題? 謝謝。

回答