[英]App runs fine on emulator but crashes on device
I have an application of which i have two codes, one the latest one and the other is old one.我有一个应用程序,我有两个代码,一个是最新的,另一个是旧的。 i am merging my latest code with old one using DiffMerge utility.
我正在使用 DiffMerge 实用程序将我的最新代码与旧代码合并。 When I run the app on emulator after merging it runs fine but crashes on the device at the very first activity.
当我在合并后在模拟器上运行应用程序时,它运行良好,但在第一次活动时在设备上崩溃。 the LogCat shows me the following:
LogCat 显示以下内容:
I am Just showing the exception that is thrown when i run the app from Eclipse on my device.我只是显示当我在我的设备上从 Eclipse 运行应用程序时引发的异常。
06-29 10:34:09.554: WARN/System.err(1296): java.lang.RuntimeException: native typeface cannot be made 06-29 10:34:09.554: WARN/System.err(1296): java.lang.RuntimeException: 无法制作原生字体
any help please.请提供任何帮助。
Finally, i have got an answer myself, the solution is name of font file i mean.ttf file must be same in both the codes, even case must be same.最后,我自己得到了答案,解决方案是字体文件的名称,我的意思是.ttf文件在两个代码中必须相同,甚至大小写必须相同。 It has worked me after a lot of research on this small but really irritating problem, hope this works for others as well:-)
在对这个小但真正令人恼火的问题进行了大量研究之后,它对我很有用,希望这也适用于其他人:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.