Tinker.UncaughtHandler: TinkerUncaughtHandler catch exception:java.lang.RuntimeException: Unable to

最近切换分支后,重新打包, 就改了几个资源文件,替换了几张图片,发现,打包的时候报了以下这个错误:

01-29 14:03:10.320 9288-9288/com.mobile.wwww E/Tinker.UncaughtHandler: TinkerUncaughtHandler catch exception:java.lang.RuntimeException: Unable to get provider android.support.v4.content.FileProvider: java.lang.IllegalArgumentException: Missing android.support.FILE_PROVIDER_PATHS meta-data
        at android.app.ActivityThread.installProvider(ActivityThread.java:5211)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4803)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4743)
        at android.app.ActivityThread.access$1600(ActivityThread.java:154)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1409)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:153)
        at android.app.ActivityThread.main(ActivityThread.java:5472)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
     Caused by: java.lang.IllegalArgumentException: Missing android.support.FILE_PROVIDER_PATHS meta-data
        at android.support.v4.content.FileProvider.parsePathStrategy(Unknown Source)
        at android.support.v4.content.FileProvider.getPathStrategy(Unknown Source)
        at android.support.v4.content.FileProvider.attachInfo(Unknown Source)
        at android.app.ActivityThread.installProvider(ActivityThread.java:5208)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:4803)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4743)
        at android.app.ActivityThread.access$1600(ActivityThread.java:154)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1409)
        at android.os.Handler.dispatchMessage(Handler.java:102)
        at android.os.Looper.loop(Looper.java:153)
        at android.app.ActivityThread.main(ActivityThread.java:5472)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

还有这个错误:

Duplicate zip entry [116.jar:cn/jiguang/a/a/a/a.class]

编译打包的时候出现了这些错误,导致无法发布热更新,当时感觉心情糟透了,关于第一个错误.对比了一下之前的Git提交日志,发现和以前的一模一样,为啥之前的可以,切换分支后就是不行呢,  第二个对比了之前的git日志也是一样,莫名其妙的就报错了,我只是添加了几张资源图标,然后切换了原来的realse分支,导致了这么多的编译错误,运行的时候还闪退,后来发现,重新打开Android studio 并且清除缓存后,  竟然好了,因为我切换之前的分支,改了jiguang分享的依赖,然后,修改了很多东西,当切换完毕后,可能应As有缓存导致相关错误,重新多重启几次,结果问题就莫名其妙的解决了,通过上述事件描述,感觉Android studio 有时候也有些问题 以上问题做个记录. 为以后遇到相同问题做一个参考

你可能感兴趣的:(安卓Bug)