简体   繁体   English

应用程序在模拟器上运行良好,但在设备上崩溃

[英]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.

相关问题 应用程序在模拟器上运行正常,但在真实设备上崩溃 - App runs fine on emulator, but crashes on real device 应用程序在模拟器上运行良好,但在真实设备上崩溃 - App working fine on emulator but crashes on real device APK错误:Android应用程序可以在模拟器/设备上完美运行,但是当我从PlayStore下载时,应用程序总是在启动时崩溃 - APK error: Android app runs perfectly fine on emulator/device but when I download from the PlayStore the app always crashes on startup 应用程序在设备上运行,但在模拟器上崩溃? - Application runs on Device but crashes on Emulator? Android在设备上运行,但在模拟器上崩溃 - Android runs on device but crashes on emulator Xamarin Forms / Android map app在模拟器上运行,但在物理设备上崩溃 - Xamarin Forms/Android map app runs on emulator, but crashes on physical device Android应用程式可在模拟器上正常运作,但在真实装置中当机 - Android app works fine in emulator but crashes in real device Android studio 可以很好地构建应用程序,但它在模拟器/设备上崩溃 - Android studio builds the app fine but it crashes on emulator/ device 应用程序在模拟器上运行,但不在设备上运行 - App runs on emulator but not on device 应用程序在设备中崩溃,但在模拟器中未崩溃 - app crashes in device but not in emulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM