crash - App Crashes after moving an image button! android -
So my app has been developing lately, it's getting great, and I just want the image in the background of the app I'm updating. Well the app was working properly before I tweaked an image button to make the line with this image I made. Immediately after transferring it, the app will no longer work and I do not have any success have tried. Here is the XML of the activity
& lt; Relative layout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http: // Schemas.android.com/tools" android: layout_width = "fill_parent" Android: layout_height = "Fill_parent" Android: background = "@drawable / title_screen" tool: reference = ".title skin" & gt; & Lt; Android: layout_height = "wrap_content" android: layout_alignParentRight = "true" android: layout_alignParentTop = "true" android: layout_marginRight = "18dp" Android: Layout_marginTop: TextView Android: id = "@ + id / txtCoins" Android: layout_width = "wrap_content" = "Lldp" android: text = "000" android: text Aprerens = "? Android: ATR / text Aprerens small" android: text collar = "# F 3 C 50 D" android: text size = "12 SP" / Gt; & Lt; ImageButton android: id = "@ + id / imageBtnPlay" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_below = "@ + id / txtCoins" Android: layout_centerHorizontal = "true" Android: layout_marginTop = "51 DP "Android: background =" null "Android: src =" @drawable / btn_play "/> & Lt; / RelativeLayout & gt; Edit: Here is my logcat
03-20 17: 08: 29.847: W / dalvikum (2892): thread = 1: Unexpected exception (group = 0x416282a0) 03-20 17: 08: 29.852: E / AndroidRuntime (28692): Fatal Exception: Main 03-20 17: 08: 29.852: E / AndroidRuntime (28692): java .lang.RuntimeException: unable activity ComponentInfo {com.ChonBonStudios.Tidbits / com.ChonBonStudios.Tidbits.TitleScreen} to start: java.lang.ClassCastException: 08: 29.852: android.widget.TextView android.widget.ImageButton 03- 20 can not be molded into 17 E / AndroidRuntime (28692): android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2100) on 03-20 17: 08: 29.852: E / And roidRuntime (28692): android.app.ActivityThread.handleLaunchActivity (on ActivityThread.java: 2125) 03-20 17: 08: 29.852: E / Android Rentaim (28 9 2): Android. App ActivatedTradeAccess $ 600 (ActivityTrad.Javier40) 03-20 17: 08: 29.852: E / Android Time (2892): Android. App ActiveTrade $ H Hondal Message (ActivityTrad.Java 227) 03-20 17: 08: 29.8 52: E / Android Random (2892): Android.OS Handler's Dispect Message (Handler. Java: 99) 03-20 17: 08: 29.852: E / Android Random (2892): Android.OS Lopper. On the Loop (Looper .java: 137) 03-20 17: 08: 29.852: E / Android Random (2892): Android. App Aktivtitredkmain (Gtividhitredkjawaathr 98) 03-20 17: 08: 29.852: E / Androidrentaim (28692) on JavaklangkreflectkMethodkinvokeNative (Native Method) 03-20 17: 08: 29.852: E / AndroidTime (2892): at java.lang.reflect.Method.invoke (method Java 0511) 03 -20 17: 08: 29.852: E / Android Random (28 9 2): com.android.internal.os. ZygoteInit 03-20 17 to $ MethodAndArgsCaller.run (ZygoteInit.java:1008): 08: 29.852: E / AndroidRuntime (28692)): at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:775) 03 -20 17: 08: 29.852: E / Android Runtime (2892): On Dalvik.system.NativeStart.main (Basic Method) 03 -20 17: 08: 29.852: E / AndroidRuntime (28692): java.lang. ClassCastException: Because of 08: 29.852: android .widget.TextView android.widget.ImageButton 03-20 17 can not be molded into E / AndroidRuntime (28692): com.ChonBonStudios.Tidbits.TitleScreen.onCreate at (TitleScreen.java20) 03-20 17: 08: 29.852: E / AndroidTime (2892): Android.ap.active.form creative (activity.java191) 03-20 17: 08: 29.852: E / Android Randomime (2892): Android. App Instrumentation. Call Activation Online (Instrumentation. Java 0994) 03-20 17: 08: 29.852: E / Android Time (2892): on Android .app.ActivityThread.performLaunchActivity (ActivityThread.java:2064) 03-20 17: 08: 29.852 : E / AndroidRuntime (28692): ... 11 more
android .widget.TextView can not be inserted on Android.widget.ImageButton
You can enter the wrong class in your activity from TextView to ImageButton somewhere In com.ChonBonStudios.Tidbits.TitleScreen category.
Comments
Post a Comment