Java Question Help with an error

holdemadvantage

Active Member
Licensed User
Longtime User
Please, someone can help me to find what's worong with this error.

The app stops on Activity.loadlayout and don't know why (all was ok before last saving

LogCat connected to: emulator-5554
--------- beginning of /dev/log/system


--------- beginning of /dev/log/main
** Activity (main) Create, isFirst = true **
(Main, 49) FullScreen or IncludeTitle properties in layout file do not match the activity attributes settings. (warning #1004)
main_activity_create (B4A line: 49)
Activity.LoadLayout("Puzzle151")
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:151)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.holdemadvantage.MS15P.main._activity_create(main.java:287)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.holdemadvantage.MS15P.main.afterFirstLayout(main.java:89)
at com.holdemadvantage.MS15P.main.access$100(main.java:16)
at com.holdemadvantage.MS15P.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)


at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Field moves was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:281)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
... 17 more
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


** Activity (main) Create, isFirst = true **


main_activity_create (B4A line: 49)


Activity.LoadLayout("Puzzle151")
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:151)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.holdemadvantage.MS15P.main._activity_create(main.java:287)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.holdemadvantage.MS15P.main.afterFirstLayout(main.java:89)
at com.holdemadvantage.MS15P.main.access$100(main.java:16)
at com.holdemadvantage.MS15P.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Field moves was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:281)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
... 17 more
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


** Activity (main) Create, isFirst = true **


main_activity_create (B4A line: 47)


Activity.LoadLayout("Puzzle151")
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:151)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.holdemadvantage.MS15P.main._activity_create(main.java:281)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.holdemadvantage.MS15P.main.afterFirstLayout(main.java:89)
at com.holdemadvantage.MS15P.main.access$100(main.java:16)
at com.holdemadvantage.MS15P.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Field moves was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:281)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
... 17 more
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


** Activity (main) Create, isFirst = true **


main_activity_create (B4A line: 47)


Activity.LoadLayout("Puzzle151")
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:151)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.holdemadvantage.MS15P.main._activity_create(main.java:281)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.holdemadvantage.MS15P.main.afterFirstLayout(main.java:89)
at com.holdemadvantage.MS15P.main.access$100(main.java:16)
at com.holdemadvantage.MS15P.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Field moves was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:281)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
... 17 more
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


** Activity (main) Create, isFirst = true **


main_activity_create (B4A line: 47)


Activity.LoadLayout("Puzzle151")
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:151)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.holdemadvantage.MS15P.main._activity_create(main.java:281)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.holdemadvantage.MS15P.main.afterFirstLayout(main.java:89)
at com.holdemadvantage.MS15P.main.access$100(main.java:16)
at com.holdemadvantage.MS15P.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Field moves was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:281)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
... 17 more
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


** Activity (main) Create, isFirst = true **


main_activity_create (B4A line: 47)


Activity.LoadLayout("Puzzle151")
java.lang.RuntimeException: java.lang.RuntimeException: Field moves was declared with the wrong type.


at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:151)
at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:191)
at com.holdemadvantage.MS15P.main._activity_create(main.java:281)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at com.holdemadvantage.MS15P.main.afterFirstLayout(main.java:89)
at com.holdemadvantage.MS15P.main.access$100(main.java:16)
at com.holdemadvantage.MS15P.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:880)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:638)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: Field moves was declared with the wrong type.
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:281)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:305)
at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:129)
... 17 more


Thanks in advance
 

stevel05

Expert
Licensed User
Longtime User
Try addressing this one first:

FullScreen or IncludeTitle properties in layout file do not match the activity attributes settings. (warning #1004)

The attributes are in the Activity attributes in the Main activity in the IDE and in the designer, make sure they match.
 
Top