Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报alipaySdk-20160223.jar not found!的错 #37

Open
wendy-92 opened this issue Sep 13, 2016 · 15 comments
Open

报alipaySdk-20160223.jar not found!的错 #37

wendy-92 opened this issue Sep 13, 2016 · 15 comments

Comments

@wendy-92
Copy link

报alipaySdk-20160223.jar not found!的错 官网的jar包已经更新了 我为我的项目添加了最新的jar包但是还是报错 是否是jar包名不一致造成的?现在的jar包是alipaySdk-20160825.jar

@TongChia
Copy link
Owner

是我很久没有更新了 近期我会花时间整理所有问题.

2016年9月13日 15:23,wendy-92 notifications@github.com写道:

报alipaySdk-20160223.jar not found!的错 官网的jar包已经更新了 我为我的项目添加了最新的jar包但是还是报错 是否是jar包名不一致造成的?现在的jar包是alipaySdk-20160825.jar


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com//issues/37, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFFEmTdhsB7y-nlG1w2u3UeIw5qB7LQ8ks5qpk95gaJpZM4J7XdO.

@rongself
Copy link

rongself commented Sep 16, 2016

我在安装时也遇到同样的问题:

Error during processing of action! Attempting to revert...
Failed to install 'me.tongchia.cordova.pingpp':CordovaError: Uh oh!
"F:\vm-shared\workspace\bilin-ui-beta-ng2\plugins\me.tongchia.cordova.pingpp\sdk\android\lib\pingpp\libs\alipaySdk-20160223.jar" not found!
    at copyFile (F:\vm-shared\workspace\bilin-ui-beta-ng2\platforms\android\cordova\lib\pluginHandlers.js:202:36)
    at copyNewFile (F:\vm-shared\workspace\bilin-ui-beta-ng2\platforms\android\cordova\lib\pluginHandlers.js:234:5)
    at install (F:\vm-shared\workspace\bilin-ui-beta-ng2\platforms\android\cordova\lib\pluginHandlers.js:37:17)
    at Object.process (F:\vm-shared\workspace\bilin-ui-beta-ng2\platforms\android\cordova\node_modules\cordova-common\src\ActionStack.js:56:25)
    at PluginManager.doOperation (F:\vm-shared\workspace\bilin-ui-beta-ng2\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:117:20)
    at PluginManager.addPlugin (F:\vm-shared\workspace\bilin-ui-beta-ng2\platforms\android\cordova\node_modules\cordova-common\src\PluginManager.js:147:17)
    at Api.addPlugin (F:\vm-shared\workspace\bilin-ui-beta-ng2\platforms\android\cordova\Api.js:198:10)
    at handleInstall (C:\tools\nvm\v6.5.0\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:611:6)
    at C:\tools\nvm\v6.5.0\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:407:28
    at _fulfilled (C:\tools\nvm\v6.5.0\node_modules\cordova\node_modules\q\q.js:787:54)
Error: Uh oh!
"F:\vm-shared\workspace\bilin-ui-beta-ng2\plugins\me.tongchia.cordova.pingpp\sdk\android\lib\pingpp\libs\alipaySdk-20160223.jar" not found!

@dong11
Copy link

dong11 commented Sep 18, 2016

需要将plugin.xml 中的 版本也改一下 就行了

@dong11
Copy link

dong11 commented Sep 18, 2016

<source-file src="sdk/android/lib/pingpp/libs/alipaySdk-20160223.jar" target-dir="libs"/>

@shuhanxu
Copy link

+1 希望@tongchina能花一些时间修复这几个问题。
非常感谢

@xinyi1989
Copy link

@TongChia @dong11 plugin.xml文件中总共有两个jar包名称需要替换,
1、alipaySdk-20160223.jar -> alipaySdk-20160825.jar
2、libpingpp-2.1.6.jar -> libpingpp-2.1.6.jar 我想知道,我是把工程复制了一份,修改后,cordova安装的时候,后面跟的是我的链接,你的是怎么修改的?

@dong11
Copy link

dong11 commented Oct 26, 2016

@xinyi1989 什么意思? 你也可以下载到本地安装

@xinyi1989
Copy link

@dong11 可以下载安装,不知道怎么使用呢,正在探索中

@dong11
Copy link

dong11 commented Oct 27, 2016

@xinyi1989 cordova plungin add "你本地插件的路径" 这样不行吗?

@xinyi1989
Copy link

@dong11 我是安装上了,不过现在在探索这个怎么使用,你现在调试到哪一步了?

@rongself
Copy link

我的解决办法是直接将pingpp文件夹包含进去,因为在使用过程会报一些资源文件未找到的错。希望这对你们有帮助:

<source-file src="src/android/PingppPlugin.java" target-dir="src/me/tongchia/cordova/"/>
<!--<source-file src="sdk/android/lib/pingpp/libs/alipaySingle-20160825.jar" target-dir="libs"/>
<source-file src="sdk/android/lib/pingpp/libs/libammsdk.jar" target-dir="libs"/>
<source-file src="sdk/android/lib/pingpp/libs/libpingpp-2.1.6.jar" target-dir="libs"/>
<source-file src="sdk/android/lib/pingpp/libs/armeabi/libpingpp.so" target-dir="libs"/>-->
<framework src="sdk/android/lib/pingpp" custom="true" />

@xinyi1989
Copy link

@rongself 谢谢,我得已经安装成功了,在程序中,在研究在程序中如何使用这个插件进行付款,你那边已经搞定了吗?

@rongself
Copy link

@xinyi1989 嗯,我上个月搞的,测试环境下可以成功调用

@ghost
Copy link

ghost commented Nov 15, 2016

@rongself 请问pingpp文件夹 是这个吗?https://github.com/PingPlusPlus/pingpp-android/tree/master/lib/pingpp 还有怎么包含?

@rongself
Copy link

rongself commented Nov 18, 2016

@zwj47 把插件clone下来,然后改plugin.xml
再安装clone下来的插件的本地版本
cordova plungin add "你本地插件的路径"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants