C charlesg Member Licensed User Longtime User Oct 21, 2017 #1 I have at long last found the problem in my project and attach a barebones project. Screen with one button. When button text is "OK", project works fine in debug and release. When typeface is set to material icons and a tick chosen as icon then project compiles and runs in debug but crashes in release. "Unfortunately ... has stopped". #BridgeLogger shows "java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Button)." What am I doing wrong? Have tried on Android 4.4 and 5.0. Also two different desktops (win7 32bit and win7 64bit) Attachments tButton.zip tButton.zip 7.7 KB · Views: 608
I have at long last found the problem in my project and attach a barebones project. Screen with one button. When button text is "OK", project works fine in debug and release. When typeface is set to material icons and a tick chosen as icon then project compiles and runs in debug but crashes in release. "Unfortunately ... has stopped". #BridgeLogger shows "java.lang.RuntimeException: java.lang.RuntimeException: Object should first be initialized (Button)." What am I doing wrong? Have tried on Android 4.4 and 5.0. Also two different desktops (win7 32bit and win7 64bit)
BillMeyer Well-Known Member Licensed User Longtime User Oct 21, 2017 #2 Downloaded your Project, tested it and works 100% with me. Possible Problems: You don't have the latest SDK Make sure you have jdk1.8.0_111 Make sure you are running android-25\android.jar This information can be found at Tools --> Configure Paths Then Clean your project Tools --> Clean Project (or CTRL+P) Then read this: https://www.b4x.com/android/forum/t...-be-initialized-when-using-fontawesome.73709/ and follow the steps - note especially the two font files to download and install Now test your project again - should work. Upvote 0
Downloaded your Project, tested it and works 100% with me. Possible Problems: You don't have the latest SDK Make sure you have jdk1.8.0_111 Make sure you are running android-25\android.jar This information can be found at Tools --> Configure Paths Then Clean your project Tools --> Clean Project (or CTRL+P) Then read this: https://www.b4x.com/android/forum/t...-be-initialized-when-using-fontawesome.73709/ and follow the steps - note especially the two font files to download and install Now test your project again - should work.
KMatle Expert Licensed User Longtime User Oct 21, 2017 #3 BillMeyer said: Make sure you have jdk1.8.0_111 Click to expand... I'm on _152 (newest one). All good. Upvote 0
BillMeyer said: Make sure you have jdk1.8.0_111 Click to expand... I'm on _152 (newest one). All good.
C charlesg Member Licensed User Longtime User Oct 22, 2017 #4 Thank you both. That was the problem. Upvote 0