中找到一些建议
07-17 19:00:53.681: E/AndroidRuntime(7912): FATAL EXCEPTION: main
07-17 19:00:53.681: E/AndroidRuntime(7912): java.lang.NullPointerException
07-17 19:00:53.681: E/AndroidRuntime(7912): at java.io.StringReader.<init>(StringReader.java:47)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.text.HtmlToSpannedConverter.convert(Html.java:435)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.text.Html.fromHtml(Html.java:138)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.text.Html.fromHtml(Html.java:101)
07-17 19:00:53.681: E/AndroidRuntime(7912): at al.instantiateItem(HomeScreen.java:533)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.support.v4.view.PagerAdapter.instantiateItem(PagerAdapter.java:110)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.support.v4.view.ViewPager.addNewItem(ViewPager.java:832)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.support.v4.view.ViewPager.populate(ViewPager.java:982)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.support.v4.view.ViewPager.populate(ViewPager.java:914)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.support.v4.view.ViewPager.setAdapter(ViewPager.java:442)
07-17 19:00:53.681: E/AndroidRuntime(7912): at com.vserv.kasakusuk.HomeScreen.a(HomeScreen.java:444)
07-17 19:00:53.681: E/AndroidRuntime(7912): at ai.run(HomeScreen.java:401)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.os.Handler.handleCallback(Handler.java:615)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.os.Handler.dispatchMessage(Handler.java:92)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.os.Looper.loop(Looper.java:137)
07-17 19:00:53.681: E/AndroidRuntime(7912): at android.app.ActivityThread.main(ActivityThread.java:4921)
07-17 19:00:53.681: E/AndroidRuntime(7912): at java.lang.reflect.Method.invokeNative(Native Method)
07-17 19:00:53.681: E/AndroidRuntime(7912): at java.lang.reflect.Method.invoke(Method.java:511)
07-17 19:00:53.681: E/AndroidRuntime(7912): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
07-17 19:00:53.681: E/AndroidRuntime(7912): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
07-17 19:00:53.681: E/AndroidRuntime(7912): at dalvik.system.NativeStart.main(Native Method)
我得到了这个异常,当我创建一个构建与proguard启用和设备上运行。有人能在这个问题上提供帮助吗?我可能在proguard配置文件中缺少什么?
Html.fromHtml的参数变为null。假设,您的程序正在从处理的代码中找不到的资源中读取它。例如,混淆类的包名可能已经更改,而资源文件的包名可能保持不变。
您可以在ProGuard手册>故障排除> MissingResourceException或NullPointerException