魅族应用市场之--自动化测试Umeng分享报错

打完包,用360加固完成,上传到魅族应用市场。

魅族反馈,测试化不通过,报错:

{
        "brandName":"魅族",
        "failMsg":"// CRASH: com.moreunion.zhenghao (pid 8391)
// Short Msg: java.lang.RuntimeException
// Long Msg: java.lang.RuntimeException: Don't support type,UMImage构造类型只支持bitmap 二进制字节流 本地文件,资源文件和网络链接,您传入的格式错误
// Build Label: Meizu/meizu_PRO7S/PRO7S:7.0/NRD90M/1508730219:user/release-keys
// Build Changelist: 1508730219
// Build Time: 1508730217000
// java.lang.RuntimeException: Don't support type,UMImage构造类型只支持bitmap 二进制字节流 本地文件,资源文件和网络链接,您传入的格式错误
// at com.umeng.socialize.media.UMImage.a(UMImage.java:182)
// at com.umeng.socialize.media.UMImage.a(UMImage.java:131)
// at com.umeng.socialize.media.UMImage.<init>(UMImage.java:85)
// at com.moreunion.zhenghao.utils.UtilShare.share(UtilShare.java:70)
// at com.moreunion.zhenghao.ui.activity.WebViewActivity$1.getInt(WebViewActivity.java:127)
// at com.moreunion.zhenghao.model.manage.viewManege.PopManage$11$1$1.onItemClick(PopManage.java:1004)
// at com.example.yilibrary.common.CommonRecycleViewHolder$1.onClick(CommonRecycleViewHolder.java:65)
// at android.view.View.performClick(View.java:5727)
// at android.view.View$PerformClick.run(View.java:22762)
// at android.os.Handler.handleCallback(Handler.java:836)
// at android.os.Handler.dispatchMessage(Handler.java:103)
// at android.os.Looper.loop(Looper.java:203)
// at android.app.ActivityThread.main(ActivityThread.java:6436)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
// 
",
        "modelName":"PRO7 标准版",
        "osVersion":"2.1.1"
    }

umeng SDK的问题,只能求助Umeng的客服了,得到回复下载并使用最新的SDK。

项目中替换完成,满怀期待的打包,加固上传。

还是没通过,报错:

{
        "brandName":"魅族",
        "failMsg":"// CRASH: com.moreunion.zhenghao (pid 13492)
// Short Msg: java.lang.NullPointerException
// Long Msg: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
// Build Label: Meizu/meizu_PRO7S/PRO7S:7.0/NRD90M/1501691279:user/release-keys
// Build Changelist: 1501691279
// Build Time: 1501691278000
// java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
// at com.umeng.socialize.media.UMImage.a(UMImage.java:182)
// at com.umeng.socialize.media.UMImage.a(UMImage.java:131)
// at com.umeng.socialize.media.UMImage.<init>(UMImage.java:85)
// at com.moreunion.zhenghao.utils.UtilShare.share(UtilShare.java:70)
// at com.moreunion.zhenghao.ui.activity.WebViewActivity$1.getInt(WebViewActivity.java:127)
// at com.moreunion.zhenghao.model.manage.viewManege.PopManage$11$1$1.onItemClick(PopManage.java:1004)
// at com.example.yilibrary.common.CommonRecycleViewHolder$1.onClick(CommonRecycleViewHolder.java:65)
// at android.view.View.performClick(View.java:5727)
// at android.view.View$PerformClick.run(View.java:22762)
// at android.os.Handler.handleCallback(Handler.java:836)
// at android.os.Handler.dispatchMessage(Handler.java:103)
// at android.os.Looper.loop(Looper.java:203)
// at android.app.ActivityThread.main(ActivityThread.java:6412)
// at java.lang.reflect.Method.invoke(Native Method)
// at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1113)
// at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:974)
// 
",
        "modelName":"PRO7 标准版",
        "osVersion":"2.1.1"
    },

想办法解决,于是继续跟umeng的客服沟通,给出的反馈:

打开http://bbs.umeng.com/thread-25569-1-1.html


划重点。

解决方案:替换res下的所有资源文件。

相关文章
相关标签/搜索