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

这个插件支持android7嘛?(内附解决方案) #1

Open
haoning7788 opened this issue May 12, 2018 · 6 comments
Open

这个插件支持android7嘛?(内附解决方案) #1

haoning7788 opened this issue May 12, 2018 · 6 comments

Comments

@haoning7788
Copy link

我在网上看到很多这个插件,基本是一样的,但是不支持android7,请问你的可以吗?

@DmcSDK
Copy link
Owner

DmcSDK commented Jun 19, 2018

是安卓7还是cordova 7啊,能描述的具体点吗,在7上出现了什么错误呢?

@K68
Copy link

K68 commented Jun 20, 2018

lz 指的应该是 cordova-andorid 7.0 以上版本,这个版本对cordova项目platform下android的目录结构进行了调整,导致很多插件都有问题;目前我在用的cordova-android 6.4 没什么问题。

PS:dmcBig你好棒,媒体选择那个插件真的清爽好用

@DmcSDK
Copy link
Owner

DmcSDK commented Jun 21, 2018

@K68 真是感谢赞美呀,多帮我宣传宣传让更多人用起来,媒体选择插件这种类型的项目安卓会有很多兼容性问题,在github上几千星的项目点开Issues [多数是机器兼容性问题(没办法国内手机厂商对安卓系统改动蛮多的),所以需要更多人使用更多人发现问题来防止意外。

@DmcSDK
Copy link
Owner

DmcSDK commented Jun 21, 2018

@haoning7788 我在readme上给出了解决方案,你可以参考下。

@DmcSDK DmcSDK changed the title 这个插件支持android7嘛? 这个插件支持android7嘛?(内附解决方案) Jun 21, 2018
@mingdong88
Copy link

:app:splitsDiscoveryTaskDebug UP-TO-DATE
:app:processDebugResources UP-TO-DATE
:app:generateDebugSources UP-TO-DATE
:app:javaPreCompileDebug UP-TO-DATE
:app:compileDebugJavaWithJavacE:\test\myalipay\platforms\android\app\src\main\java\com\dmc\alipay\AlipayPlugin.java:15: ����: �����com.alipay.sdk.app������
import com.alipay.sdk.app.PayTask;
^
E:\test\myalipay\platforms\android\app\src\main\java\com\dmc\alipay\AlipayPlugin.java:46: ����: �Ҳ�������
PayTask alipay = new PayTask(cordova.getActivity());
^
����: �� PayTask
E:\test\myalipay\platforms\android\app\src\main\java\com\dmc\alipay\AlipayPlugin.java:46: ����: �Ҳ�������
PayTask alipay = new PayTask(cordova.getActivity());
^
����: �� PayTask
3 ������

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.
FAILED
27 actionable tasks: 1 executed, 26 up-to-date

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s
(node:15408) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
E:\test\myalipay\platforms\android\app\src\main\java\com\dmc\alipay\AlipayPlugin.java:15: ����: ��� ��com.alipay.sdk.app������
import com.alipay.sdk.app.PayTask;
^
E:\test\myalipay\platforms\android\app\src\main\java\com\dmc\alipay\AlipayPlugin.java:46: ����: �Ҳ�������
PayTask alipay = new PayTask(cordova.getActivity());
^
����: �� PayTask
E:\test\myalipay\platforms\android\app\src\main\java\com\dmc\alipay\AlipayPlugin.java:46: ����: �Ҳ�������
PayTask alipay = new PayTask(cordova.getActivity());
^
����: �� PayTask
3 ������

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 3s
at ChildProcess.whenDone (E:\test\myalipay\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5)
(node:15408) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15408) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@mingdong88
Copy link

按照Android7解决方案出现如上错误,没有得到解决

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

4 participants