收藏
回答

调用iwxapi.sendReq(request) 并且返回true;但是微信支付页面没出来?

boolean v = iwxapi.sendReq(request);
LogUtil.longlog("微信支付跳转:" + v);

Writing exception to parcel

    java.lang.SecurityException: com.tencent.mm was not granted  this permission: android.permission.WRITE_SETTINGS.

        at android.provider.Settings.isCallingPackageAllowedToPerformAppOpsProtectedOperation(Settings.java:14236)

        at android.provider.Settings.checkAndNoteWriteSettingsOperation(Settings.java:14118)

        at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1564)

        at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1539)

        at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:511)

        at android.content.ContentProvider$Transport.call(ContentProvider.java:465)

        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:282)

        at android.os.Binder.execTransact(Binder.java:752)

2021-12-09 10:44:09.502 908-1996/? E/ContentProviderNative: onTransact error from {P:15384;U:10521}

2021-12-09 10:44:09.502 908-1996/? E/DatabaseUtils: Writing exception to parcel

    java.lang.SecurityException: com.tencent.mm was not granted  this permission: android.permission.WRITE_SETTINGS.

        at android.provider.Settings.isCallingPackageAllowedToPerformAppOpsProtectedOperation(Settings.java:14236)

        at android.provider.Settings.checkAndNoteWriteSettingsOperation(Settings.java:14118)

        at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1564)

        at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1539)

        at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:511)

        at android.content.ContentProvider$Transport.call(ContentProvider.java:465)

        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:282)

        at android.os.Binder.execTransact(Binder.java:752)

2021-12-09 10:44:09.509 908-11293/? E/ContentProviderNative: onTransact error from {P:15384;U:10521}

2021-12-09 10:44:09.509 908-11293/? E/DatabaseUtils: Writing exception to parcel

    java.lang.SecurityException: com.tencent.mm was not granted  this permission: android.permission.WRITE_SETTINGS.

        at android.provider.Settings.isCallingPackageAllowedToPerformAppOpsProtectedOperation(Settings.java:14236)

        at android.provider.Settings.checkAndNoteWriteSettingsOperation(Settings.java:14118)

        at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1564)

        at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1539)

        at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:511)

        at android.content.ContentProvider$Transport.call(ContentProvider.java:465)

        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:282)

        at android.os.Binder.execTransact(Binder.java:752)

2021-12-09 10:44:09.515 908-2026/? E/ContentProviderNative: onTransact error from {P:15384;U:10521}

2021-12-09 10:44:09.516 908-2026/? E/DatabaseUtils: Writing exception to parcel

    java.lang.SecurityException: com.tencent.mm was not granted  this permission: android.permission.WRITE_SETTINGS.

        at android.provider.Settings.isCallingPackageAllowedToPerformAppOpsProtectedOperation(Settings.java:14236)

        at android.provider.Settings.checkAndNoteWriteSettingsOperation(Settings.java:14118)

        at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1564)

        at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1539)

        at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:511)

        at android.content.ContentProvider$Transport.call(ContentProvider.java:465)

        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:282)

        at android.os.Binder.execTransact(Binder.java:752)

2021-12-09 10:44:09.516 908-1996/? E/ContentProviderNative: onTransact error from {P:15384;U:10521}

2021-12-09 10:44:09.516 908-1996/? E/DatabaseUtils: Writing exception to parcel

    java.lang.SecurityException: com.tencent.mm was not granted  this permission: android.permission.WRITE_SETTINGS.

        at android.provider.Settings.isCallingPackageAllowedToPerformAppOpsProtectedOperation(Settings.java:14236)

        at android.provider.Settings.checkAndNoteWriteSettingsOperation(Settings.java:14118)

        at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1564)

        at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1539)

        at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:511)

        at android.content.ContentProvider$Transport.call(ContentProvider.java:465)

        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:282)

        at android.os.Binder.execTransact(Binder.java:752)

2021-12-09 10:44:09.521 908-11293/? E/ContentProviderNative: onTransact error from {P:15384;U:10521}

2021-12-09 10:44:09.521 908-11293/? E/DatabaseUtils: Writing exception to parcel

    java.lang.SecurityException: com.tencent.mm was not granted  this permission: android.permission.WRITE_SETTINGS.

        at android.provider.Settings.isCallingPackageAllowedToPerformAppOpsProtectedOperation(Settings.java:14236)

        at android.provider.Settings.checkAndNoteWriteSettingsOperation(Settings.java:14118)

        at com.android.providers.settings.SettingsProvider.mutateSystemSetting(SettingsProvider.java:1564)

        at com.android.providers.settings.SettingsProvider.insertSystemSetting(SettingsProvider.java:1539)

        at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:511)

        at android.content.ContentProvider$Transport.call(ContentProvider.java:465)

        at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:282)

        at android.os.Binder.execTransact(Binder.java:752)

2021-12-09 10:44:09.572 15384-15463/? E/ReflectionUtils: 'com.tencent.tbs.core.webkit.tencent.TencentCacheManager' invoke static method 'init' failed

    java.lang.reflect.InvocationTargetException

        at java.lang.reflect.Method.invoke(Native Method)

        at com.tencent.common.utils.ReflectionUtils.invokeStaticMethod(TbsJavaCore:197)

        at com.tencent.tbs.tbsshell.common.e.c.a(TbsJavaCore:371)

        at com.tencent.tbs.tbsshell.common.e.c.c(TbsJavaCore:307)

        at com.tencent.tbs.tbsshell.c.onX5InitCompletedCallbackImpl(TbsJavaCore:728)

        at com.tencent.tbs.tbsshell.c$4.doRun(TbsJavaCore:756)

        at com.tencent.common.threadpool.BrowserExecutorSupplier$BackgroundRunable.run(TbsJavaCore:817)

        at com.tencent.common.threadpool.MyThreadPoolExecutor.a(TbsJavaCore:1093)

        at com.tencent.common.threadpool.MyThreadPoolExecutor$a.run(TbsJavaCore:581)

        at java.lang.Thread.run(Thread.java:764)

        at com.tencent.common.threadpool.QBThreadFactory$1.run(TbsJavaCore:48)

     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.util.concurrent.FutureTask.isDone()' on a null object reference

        at org.chromium.base.PathUtils.b(TbsJavaCore:71)

        at org.chromium.base.PathUtils.a(TbsJavaCore:178)

        at com.tencent.tbs.core.webkit.tencent.TencentCacheManager.init(TbsJavaCore:76)

        at java.lang.reflect.Method.invoke(Native Method) 

        at com.tencent.common.utils.ReflectionUtils.invokeStaticMethod(TbsJavaCore:197) 

        at com.tencent.tbs.tbsshell.common.e.c.a(TbsJavaCore:371) 

        at com.tencent.tbs.tbsshell.common.e.c.c(TbsJavaCore:307) 

        at com.tencent.tbs.tbsshell.c.onX5InitCompletedCallbackImpl(TbsJavaCore:728) 

        at com.tencent.tbs.tbsshell.c$4.doRun(TbsJavaCore:756) 

        at com.tencent.common.threadpool.BrowserExecutorSupplier$BackgroundRunable.run(TbsJavaCore:817) 

        at com.tencent.common.threadpool.MyThreadPoolExecutor.a(TbsJavaCore:1093) 

        at com.tencent.common.threadpool.MyThreadPoolExecutor$a.run(TbsJavaCore:581) 

        at java.lang.Thread.run(Thread.java:764) 

        at com.tencent.common.threadpool.QBThreadFactory$1.run(TbsJavaCore:48) 

2021-12-09 10:44:09.602 567-567/? E/SELinux: avc:  denied  { find } for interface=android.hardware.memtrack::IMemtrack sid=u:r:untrusted_app:s0:c9,c258,c512,c768 pid=15384 scontext=u:r:untrusted_app:s0:c9,c258,c512,c768 tcontext=u:object_r:hal_memtrack_hwservice:s0 tclass=hwservice_manager permissive=0

2021-12-09 10:44:09.602 15384-15490/? E/memtrack: Couldn't load memtrack module

2021-12-09 10:44:09.613 15384-15458/? E/libc: Access denied finding property "net.dns1"

2021-12-09 10:44:09.617 15384-15458/? E/libc: Access denied finding property "net.dns1"

2021-12-09 10:44:09.627 15524-15524/? E/cent.mm:toolsm: Not starting debugger since process cannot load the jdwp agent.

2021-12-09 10:44:09.661 15524-15524/? E/LoadedApk: Unable to instantiate appComponentFactory

    java.lang.ClassNotFoundException: Didn't find class "androidx.core.app.CoreComponentFactory" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.tencent.mm-7g9LrRRY7n02DrvYZL9s6g==/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.mm-7g9LrRRY7n02DrvYZL9s6g==/lib/arm64, /data/app/com.tencent.mm-7g9LrRRY7n02DrvYZL9s6g==/base.apk!/lib/arm64-v8a, /system/lib64]]

        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

        at android.app.LoadedApk.createAppFactory(LoadedApk.java:226)

        at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:739)

        at android.app.LoadedApk.getClassLoader(LoadedApk.java:818)

        at android.app.LoadedApk.getResources(LoadedApk.java:1041)

        at android.app.ContextImpl.createAppContext(ContextImpl.java:2394)

        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5948)

        at android.app.ActivityThread.access$1300(ActivityThread.java:207)

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1758)

        at android.os.Handler.dispatchMessage(Handler.java:106)

        at android.os.Looper.loop(Looper.java:193)

        at android.app.ActivityThread.main(ActivityThread.java:6898)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:537)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

2021-12-09 10:44:10.215 15524-15524/? E/cent.mm:toolsm: No package ID 7f found for ID 0x7f0a0005.

回答关注问题邀请回答
收藏

1 个回答

  • 支付社区运营
    支付社区运营
    2021-12-10

    您好,如果您在接入微信支付的过程中遇到问题,可以通过我们的技术支持进行咨询反馈:https://support.pay.weixin.qq.com/online-service?from=wechatpay



    2021-12-10
    有用
    回复 1
    • D
      D
      发表于移动端
      2021-12-10
      后面知道问题了,是由于appid后台合成是使用错误,导致但是微信没有提示错误,这就很不人性化
      2021-12-10
      1
      回复
登录 后发表内容