收藏
回答

运行demo功能出错

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 Bug Android 安卓9.0 魅族16s 7.0.17

原封不动运行demo,分享文本 时 报告签名有误

把 constants.java的 appid替换成我自己的appid时 错误信息为

Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"}  


logcat 内容如下:

2020-08-16 12:02:19.388 18358-1l8358/? I/Zygote: ForkAndSpecializeCommon: fork is finished, pid=0 

2020-08-16 12:02:19.392 18358-18358/? I/Zygote: ForkAndSpecializeCommon: Beginning of SetGids

2020-08-16 12:02:19.392 18358-18358/? I/Zygote: ForkAndSpecializeCommon: End of SetGids

2020-08-16 12:02:19.398 18358-18358/? I/ceforge.simcpu: Late-enabling -Xcheck:jni

2020-08-16 12:02:19.447 18358-18358/net.sourceforge.simcpux I/ceforge.simcpu: The ClassLoaderContext is a special shared library.

2020-08-16 12:02:19.499 18358-18358/net.sourceforge.simcpux I/Perf: Connecting to perf service.

2020-08-16 12:02:19.511 18358-18358/net.sourceforge.simcpux W/ExceptionMonitor: getExceptionConfig type=0,package=net.sourceforge.simcpux

2020-08-16 12:02:19.554 18358-18358/net.sourceforge.simcpux I/FlymeFontsHelper: UserId == 0

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at android.content.res.flymetheme.FlymeThemeHelper.getMetaDataFromApp(FlymeThemeHelper.java:1036)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at android.content.res.ResourcesImpl.loadDrawable(ResourcesImpl.java:710)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at android.content.res.Resources.getDrawableForDensity(Resources.java:899)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at android.content.res.Resources.getDrawable(Resources.java:838)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at android.content.res.Resources.getDrawable(Resources.java:813)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.ApplicationPackageManager$Injector.getDefaultFlymeActivityIcon(ApplicationPackageManager.java:3007)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.ApplicationPackageManager.getDefaultActivityIcon(ApplicationPackageManager.java:1324)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2738)

2020-08-16 12:02:19.580 18358-18358/net.sourceforge.simcpux W/System.err:     at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:424)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.Activity.setContentView(Activity.java:2804)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at net.sourceforge.simcpux.MainActivity.onCreate(MainActivity.java:29)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.Activity.performCreate(Activity.java:7187)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.Activity.performCreate(Activity.java:7178)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1273)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3116)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3276)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1963)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:106)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.os.Looper.loop(Looper.java:223)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:7035)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at java.lang.reflect.Method.invoke(Native Method)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)

2020-08-16 12:02:19.581 18358-18358/net.sourceforge.simcpux W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:937)

2020-08-16 12:02:19.654 18358-18418/net.sourceforge.simcpux I/Adreno: QUALCOMM build                   : 8984de8, Ie50a6ff6b2

    Build Date                       : 02/20/19

    OpenGL ES Shader Compiler Version: EV031.26.00.00

    Local Branch                     : 

    Remote Branch                    : quic/gfx-adreno.lnx.1.0.r50

    Remote Branch                    : NONE

    Reconstruct Branch               : NOTHING

2020-08-16 12:02:19.654 18358-18418/net.sourceforge.simcpux I/Adreno: Build Config                     : S P 6.0.9 AArch64

2020-08-16 12:02:19.656 18358-18418/net.sourceforge.simcpux I/Adreno: PFP: 0x016ee181, ME: 0x00000000

2020-08-16 12:02:19.660 18358-18418/net.sourceforge.simcpux I/OpenGLRenderer: Initialized EGL, version 1.4

2020-08-16 12:02:19.705 18358-18358/net.sourceforge.simcpux W/Choreographer: Already have a pending vsync event.  There should only be one at a time.

2020-08-16 12:02:19.709 18358-18358/net.sourceforge.simcpux I/Choreographer: Skipped 3 frames!  The application may be doing too much work on its main thread.

2020-08-16 12:02:19.714 18358-18358/net.sourceforge.simcpux I/Choreographer: Skipped 3 frames!  The application may be doing too much work on its main thread.

2020-08-16 12:02:21.550 18358-18434/net.sourceforge.simcpux I/MID: read mid from InternalStorage

2020-08-16 12:02:21.552 18358-18434/net.sourceforge.simcpux I/MID: read mid from InternalStorage:xjgD6zAYj0803BeA0pxH43WbIZl673m8SnAJpFaX2PhicUBmi+vXgrY0Hzb7T3EJQUN0x+dWSUxuQyNK+VLTNgAAzPE5sJGVULOjFnzw4u13+vRAdNFgXEcxon4aQRApIAZox+SCzb5cMVcywU+AZ2SlNEDu

2020-08-16 12:02:22.705 18358-18358/net.sourceforge.simcpux W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@38f1136

2020-08-16 12:02:24.072 18358-18366/net.sourceforge.simcpux I/ceforge.simcpu: Compiler allocated 4MB to compile void android.widget.TextView.(android.content.Context, android.util.AttributeSet, int, int)

2020-08-16 12:02:24.502 18358-18390/net.sourceforge.simcpux I/ceforge.simcpu: Profile saver ProcessProfilingInfo for first launch ....

2020-08-16 12:02:25.181 18358-18358/net.sourceforge.simcpux W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.

2020-08-16 12:02:25.665 18358-18358/net.sourceforge.simcpux W/ContentCapture: sendLongClick1 error, captureResult: null

2020-08-16 12:02:25.926 18358-18390/net.sourceforge.simcpux I/ceforge.simcpu: Profile saver ProcessProfilingInfo done for first launch ....

2020-08-16 12:02:27.095 18358-18358/net.sourceforge.simcpux I/MicroMsg.SDK.WXApiImplV10: sendReq, req type = 2

2020-08-16 12:02:27.112 18358-18358/net.sourceforge.simcpux I/MicroMsg.SDK.WXApiImplV10: getTokenFromWX token is OpenSdkToken@1597550547108

2020-08-16 12:02:27.155 18358-18358/net.sourceforge.simcpux I/Choreographer: Skipped 3 frames!  The application may be doing too much work on its main thread.

2020-08-16 12:02:31.801 18358-18444/net.sourceforge.simcpux E/MtaSDK: [pool-4-thread-1(7162): null:689] - Server response error code:404, error:{"ret":-1, "msg":"invalid appkey"}

2020-08-16 12:03:48.146 18358-18444/net.sourceforge.simcpux E/MtaSDK: org.apache.http.conn.ConnectTimeoutException: Connect to /113.96.208.29:80 timed out

        at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:126)

        at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:149)

        at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:170)

        at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124)

        at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:366)

        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:598)

        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:516)

        at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:494)

        at com.tencent.wxop.stat.i.a(Unknown Source:412)

        at com.tencent.wxop.stat.k.run(Unknown Source:6)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)

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


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

1 个回答

  • 俞哄哄💻
    俞哄哄💻
    2020-08-17

    明确提示 invalid appkey 这个参数不正确

    2020-08-17
    有用
    回复
登录 后发表内容
问题标签