与cordova插件的贝宝付款
我试图在我的cordova
应用程序中使用paypal
付款。 为此,我用这个贝宝cordova插件 。 我遵循所有提到的说明,但是我得到这些错误:
01-13 05:18:06.650: E/PluginManager(2112): Uncaught exception from plugin 01-13 05:18:06.650: E/PluginManager(2112): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.example.hello/com.paypal.android.sdk.payments.PaymentActivity}; have you declared this activity in your AndroidManifest.xml? 01-13 05:18:06.650: E/PluginManager(2112): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628) 01-13 05:18:06.650: E/PluginManager(2112): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424) 01-13 05:18:06.650: E/PluginManager(2112): at android.app.Activity.startActivityForResult(Activity.java:3424) 01-13 05:18:06.650: E/PluginManager(2112): at android.app.Activity.startActivityForResult(Activity.java:3385) 01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.CordovaActivity.startActivityForResult(CordovaActivity.java:748) 01-13 05:18:06.650: E/PluginManager(2112): at com.paypal.cordova.sdk.PayPalMobileCordovaPlugin.renderSinglePaymentUI(PayPalMobileCordovaPlugin.java:226) 01-13 05:18:06.650: E/PluginManager(2112): at com.paypal.cordova.sdk.PayPalMobileCordovaPlugin.execute(PayPalMobileCordovaPlugin.java:54) 01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:84) 01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.PluginManager.exec(PluginManager.java:147) 01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) 01-13 05:18:06.650: E/PluginManager(2112): at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:40) 01-13 05:18:06.650: E/PluginManager(2112): at com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native Method) 01-13 05:18:06.650: E/PluginManager(2112): at com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:27) 01-13 05:18:06.650: E/PluginManager(2112): at android.os.Handler.dispatchMessage(Handler.java:102) 01-13 05:18:06.650: E/PluginManager(2112): at android.os.Looper.loop(Looper.java:136) 01-13 05:18:06.650: E/PluginManager(2112): at android.os.HandlerThread.run(HandlerThread.java:61)
任何人都可以帮我弄清楚这个问题吗?
我解决了这个问题。 在installation of the plugin
的过程中出现了问题。 所以我引用了paymnt.html
页面中的文件cdv-plugin-paypal-mobile-sdk.js
,它现在可以工作了。